/* ============================================
   Zerion — Custom Styles (sin tocar SCSS)
   ============================================ */

/* --- Utilidades --- */
.pt-40 { padding-top: 40px; }
.pt-60 { padding-top: 60px; }
.pt-80 { padding-top: 80px; }
.pt-100 { padding-top: 100px; }

/* --- Logo SVG — escala proporcional, idéntico en normal y sticky --- */
.te-standard-logo img,
.te-sticky-logo img {
  height: 60px;
  width: auto;
}
.te-header-menu-area.te-sticky_menu .te-logo .te-sticky-logo img {
  height: 60px;
  width: auto;
  transition: opacity 0.3s ease;
}
.te-header-menu-area .te-logo .te-standard-logo img {
  transition: opacity 0.3s ease;
}

/* --- Hero slider — texto en español no se corta --- */
.te-slider-title {
  font-size: 80px;
  line-height: 76px;
}
@media (min-width: 992px) and (max-width: 1500px) {
  .te-slider-title {
    font-size: 50px;
    line-height: 56px;
  }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .te-slider-title {
    font-size: 42px;
    line-height: 50px;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .te-slider-title {
    font-size: 36px;
    line-height: 44px;
  }
}
@media (max-width: 767px) {
  .te-slider-title {
    font-size: 34px;
    line-height: 40px;
  }
}

/* --- Feature Area — separación del slider --- */
.feature-area.style-1 {
  padding-top: 60px;
}
@media (max-width: 767px) {
  .feature-area.style-1 {
    padding-top: 30px;
  }
}

/* --- Info Cards — listas alineadas a la izquierda --- */
.te-info-card .content {
  align-items: flex-start;
}

/* --- About title — tamaño reducido, sin uppercase, cabe en 2 líneas --- */
.te-about-info-card .te-about-info-content .te-section-title .title {
  font-size: 42px;
  line-height: 48px;
  text-transform: none;
}
@media (min-width: 992px) and (max-width: 1199px) {
  .te-about-info-card .te-about-info-content .te-section-title .title {
    font-size: 36px;
    line-height: 42px;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .te-about-info-card .te-about-info-content .te-section-title .title {
    font-size: 30px;
    line-height: 38px;
  }
}
@media (max-width: 767px) {
  .te-about-info-card .te-about-info-content .te-section-title .title {
    font-size: 26px;
    line-height: 34px;
  }
}

/* --- Preloader SVG — JS calcula la longitud exacta de cada path --- */
.preloader-svg path {
  stroke-dasharray: 0;
  stroke-dashoffset: 0;
  fill: none;
}
@keyframes preloader-draw {
  90% { fill: none; }
  100% {
    stroke-dashoffset: 0;
    fill: #000000;
  }
}

/* Info card icons — sin borde, imágenes centradas */
.te-info-card .icon {
  border: none;
  background: transparent;
}
.te-info-card .icon img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 100%;
}

/* Footer logo — reducido 15% */
.te-footer-logo img {
  width: 85%;
  height: auto;
}

/* CTA about — imagen de fondo cubriendo toda la sección */
.cta-about {
  background-image: url('../images/cta/banner.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.cta-about::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 0;
}
.cta-about .container {
  position: relative;
  z-index: 1;
}

/* CTA service-1 — imagen de fondo cubriendo toda la sección */
.cta-about-service-1 {
  background-image: url('../images/service/service-1/banner_nubes_zerion.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.cta-about-service-1::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 0;
}
.cta-about-service-1 .container {
  position: relative;
  z-index: 1;
}

/* CTA service banner — imagen nubes Zerion para las 6 páginas de servicio */
.cta-service-banner {
  background-image: url('../images/cta/banner nubes zerion.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.cta-service-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 0;
}
.cta-service-banner .container {
  position: relative;
  z-index: 1;
}
.cta-service-banner .te-section-title {
  flex-direction: column;
  text-align: center;
  align-items: center;
}

/* Why Choose — solo padding superior, sin espacio inferior */
.why-choose-area.te-py-120 {
  padding-bottom: 0;
}

/* Footer — margen superior, copyright pegado al fondo */
footer {
  margin-top: 80px;
  margin-bottom: 0;
  padding-bottom: 0;
}
/* index.html — Latest Posts más separado de Why Choose */
.latest-posts-area {
  padding-top: 200px;
}

/* Footer — copyright pegado al fondo */
.te-footer-sec {
  padding-bottom: 0 !important;
}
.footer-bottom-area {
  padding: 30px 0 !important;
}
.why-choose-area.style-2 .why-choose-info {
  width: 100%;
  align-items: stretch;
  gap: 50px;
}
.why-choose-area.style-2 .why-choose-info .te-icon-card {
  width: 100%;
}
.why-choose-area.style-2 .why-choose-bg-area {
  width: 60%;
  z-index: 0;
}
.why-choose-area.style-2 .why-choose-bg-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.why-choose-area.style-2 .row {
  position: relative;
  z-index: 1;
}

/* Service page titles — tamaño ajustable sin afectar otras páginas */
.page-heading .service-page-title {
  font-size: 59px;
}
@media (min-width: 992px) and (max-width: 1199px) {
  .page-heading .service-page-title { font-size: 50px; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .page-heading .service-page-title { font-size: 42px; }
}
@media (max-width: 767px) {
  .page-heading .service-page-title { font-size: 35px; }
}

.client-logo {
  width: 140px;
  height: 70px;
  max-width: 100%;
}
.client-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ============================================
   Responsive fixes
   ============================================ */

/* Page titles — breakpoints para tablets/móviles */
@media (min-width: 768px) and (max-width: 991px) {
  .page-heading .page-title { font-size: 48px; }
}
@media (max-width: 767px) {
  .page-heading .page-title { font-size: 34px; }
}

/* Service images — no desbordan */
.service-details-page .image img { max-width: 100%; height: auto; }

/* Blog gallery + sidebar thumbs */
.post-gallery img { max-width: 100%; height: auto; }
.te-latest-post-thumb img { max-width: 100%; height: auto; }

/* Text overflow — word-break en títulos largos */
.te-info-card .te-title-wrapper .title,
.te-post-title a,
.breadcrumb-list a { word-break: break-word; overflow-wrap: break-word; }

/* Latest Posts — menos padding en móvil */
@media (max-width: 767px) {
  .latest-posts-area { padding-top: 80px; }
}

/* Footer — menos margen en móvil */
@media (max-width: 767px) {
  footer { margin-top: 40px; }
}

/* Header — contact info wrap en tablet */
@media (max-width: 991px) {
  .header-top .te-header-contact-info { flex-wrap: wrap; justify-content: center; gap: 5px; }
}

/* Why Choose bg — más sutil en móvil */
@media (max-width: 767px) {
  .why-choose-area .why-choose-bg-area { display: none; }
  .why-choose-area .row { position: relative; z-index: 1; }
}

/* Slider title — constrain en pantallas grandes */
@media (min-width: 1501px) and (max-width: 1800px) {
  .te-slider-title { font-size: 60px; line-height: 66px; }
}

/* Service details title — más compacto que el h2 global */
.service-details-title {
  font-size: 32px;
  line-height: 1.3;
}
@media (min-width: 992px) and (max-width: 1199px) {
  .service-details-title { font-size: 28px; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .service-details-title { font-size: 24px; }
}
@media (max-width: 767px) {
  .service-details-title { font-size: 22px; }
}

/* Service-1 CTA — textos más grandes */
.cta-about-service-1 h3 {
  font-size: 48px;
}
.cta-about-service-1 .cta-text p {
  font-size: 22px;
  line-height: 1.5;
}

/* Blog detail — lectura más cómoda */
.te-blog-details-wrapper {
  max-width: 800px;
  margin: 0 auto;
}
.te-blog-details-wrapper .te-post-thumbnail img {
  max-height: 400px;
  object-fit: cover;
  width: 100%;
}
.te-blog-details-wrapper .te-post-content p {
  font-size: 18px;
  line-height: 1.8;
}
.te-blog-details-wrapper section {
  margin-top: 40px;
  margin-bottom: 20px;
}

/* Barra de progreso de lectura */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: #3A6BFF;
  z-index: 99999;
  width: 0;
  transition: width 0.1s linear;
}

/* Volver al Blog */
.back-to-blog {
  display: inline-block;
  margin-bottom: 20px;
  color: #3A6BFF;
  font-family: "Nord", sans-serif;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  text-decoration: none;
}
.back-to-blog:hover { color: #fff; }

/* Post Navigation */
.te-post-nav {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.te-post-nav a {
  flex: 1;
  min-width: 200px;
  padding: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  text-decoration: none;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.te-post-nav a:hover { border-color: #3A6BFF; background: rgba(58,107,255,0.1); }
.te-post-nav .nav-label { font-size: 12px; color: #3A6BFF; text-transform: uppercase; letter-spacing: 1px; }
.te-post-nav .nav-title { font-size: 16px; font-family: "Nord", sans-serif; }

/* Blog CTA sutil */
.blog-cta {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 60px;
}
.blog-cta p { color: rgba(255,255,255,0.6); font-size: 16px; margin-bottom: 15px; }
.blog-cta a {
  display: inline-block;
  padding: 12px 30px;
  border: 1px solid #3A6BFF;
  color: #3A6BFF;
  text-decoration: none;
  font-family: "Nord", sans-serif;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  transition: all 0.3s;
}
.blog-cta a:hover { background: #3A6BFF; color: #040421; }

/* Thumbnail más grande */
.te-blog-details-wrapper .te-post-thumbnail img {
  max-height: 500px;
  object-fit: cover;
  width: 100%;
}

/* CTA about — h3 más compacto */
.cta-about .title h3 {
  font-size: 24px;
  line-height: 1.4;
}

/* Sticky menu — sin animar layout, sin salto */
.te-header-menu-area.te-sticky_menu {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Skip Link */
.skip-link:focus { top: 10px; }

/* Language Switcher */
.te-lang-btn {
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-family: "Nord", sans-serif;
  cursor: pointer;
  transition: all 0.3s;
  margin-right: 12px;
  flex-shrink: 0;
  text-decoration: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.te-lang-btn:hover,
.te-lang-btn:focus,
.te-lang-btn.te-lang-pressed {
  background: rgba(58, 107, 255, 0.15);
  border-color: rgba(58, 107, 255, 0.4);
  color: #3A6BFF;
}

/* i18n — data-i18n spans inherit parent text color (not blue) */
.title [data-i18n],
.te-section-content .title [data-i18n] {
  color: #fff;
}
/* Lang button on mobile */
.te-lang-btn-mobile {
  display: none;
}
/* Sidebar Nuestros Servicios nav menu */
.service-sidebar .widget.te_widget_nav_menu {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: rgba(0, 40, 100, 0.5) !important;
  border: 2px solid #3A6BFF !important;
  border-radius: 8px;
  padding: 24px !important;
  margin-top: 20px !important;
  margin-bottom: 30px !important;
  overflow: visible !important;
}
.service-sidebar .widget.te_widget_nav_menu .te-widget-title h4 {
  color: #fff !important;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}
.service-sidebar .widget.te_widget_nav_menu .te-widget-title h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: #3A6BFF;
}
.service-sidebar .widget.te_widget_nav_menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.service-sidebar .widget.te_widget_nav_menu ul li {
  margin-bottom: 0;
}
.service-sidebar .widget.te_widget_nav_menu ul li a {
  display: block;
  color: rgba(255,255,255,0.7) !important;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s;
}
.service-sidebar .widget.te_widget_nav_menu ul li a:hover {
  color: #3A6BFF !important;
  padding-left: 5px;
}

/* Card icon hover glow — no pointer cursor */
.te-info-card .icon,
.te-info-card .icon * {
  cursor: default !important;
}
.te-info-card:hover .icon img {
  filter: brightness(1.3) drop-shadow(0 0 12px rgba(58, 107, 255, 0.6));
  transform: scale(1.08);
}
.te-info-card .te-content-wrapper a:hover {
  cursor: pointer;
}

@media (max-width: 1199px) {
  .te-mobile-menu-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
  .te-lang-btn-mobile { display: inline-flex; margin-right: 55px; order: 1; }
  .te-mobile-menu-toggle-btn { order: 2; }
}

/* Sidebar CTA widget — prevent blue text on hover */
.te_widget_cta .contact-text a,
.te_widget_cta .contact-text a:hover,
.te_widget_cta .contact-text a:focus {
  color: #fff !important;
}