
/* ==============================
   PROTEGER LOGO DEL HEADER
   ============================== */

.logo-header img {
    max-height: 70px;      /* ajusta si quieres un poco más grande */
    width: auto;
}

.logo-header {
    flex-shrink: 0;        /* ❌ evita que el logo se comprima */
}
/* ==============================
   MENÚ RESPONSIVO SIN TOCAR LOGO
   ============================== */

.header-nav {
    flex: 1;
    min-width: 0;
}

.header-nav .navbar-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    white-space: nowrap;
}

/* Tamaño base - reducido de 18px a 15px para caber en 1 línea */
.header-nav .navbar-nav > li > a {
    font-size: 15px;
    padding: 8px 7px;
    letter-spacing: -0.01em;
}

/* Agenda aquí: destacado como CTA pero compacto */
.header-nav .navbar-nav > li:last-child > a {
    font-size: 14px;
    padding: 6px 10px;
    background: #E4EDF4;
    color: #fff !important;
    border-radius: 4px;
    margin-left: 4px;
}
.header-nav .navbar-nav > li:last-child > a:hover {
    background: #22C55E;
}

@media (max-width: 1400px) {
    .header-nav .navbar-nav > li > a {
        font-size: 14px;
        padding: 8px 6px;
    }
}

@media (max-width: 1280px) {
    .header-nav .navbar-nav > li > a {
        font-size: 13px;
        padding: 6px 5px;
    }
}

@media (max-width: 1150px) {
    .header-nav .navbar-nav > li > a {
        font-size: 12px;
        padding: 6px 4px;
        letter-spacing: -0.02em;
    }
}

/* FIX MENU MOBILE FULL WIDTH */
@media (max-width: 991px) {

  .header-nav.w3menu {
    width: 100% !important;
    max-width: 100% !important;
  }

  .header-nav.w3menu.mo-left {
    left: -100%;
  }

  /*.header-nav.w3menu.mo-left.open {
    left: 0;
  }*/

  .menu-close.fade-overlay {
    width: 100% !important;
    height: 100vh !important;
  }

}

/* ===============================
   FIX MENU MOBILE (id="W3Menu")
   Usa .show en el panel y .open en el botón
   =============================== */

@media (max-width: 991px){

  /* Panel del menú */
  #W3Menu.header-nav.w3menu{
    position: fixed !important;
    top: 0 !important;
    left: -100% !important;             /* cerrado */
    width: 86% !important;              /* drawer */
    max-width: 420px !important;
    height: 100vh !important;
    overflow-y: auto !important;
    background: #fff !important;
    z-index: 99999 !important;
    transition: left .25s ease !important;
    -webkit-overflow-scrolling: touch;
  }

  /* Abierto */
  #W3Menu.header-nav.w3menu.show{
    left: 0 !important;
  }

  /* Overlay */
  .menu-close.fade-overlay{
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0,0,0,.45) !important;
    z-index: 99998 !important;
    display: none !important;
  }

  /* Mostrar overlay cuando el botón tenga .open (tu caso real) */
  .w3menu-toggler.open ~ .menu-close.fade-overlay{
    display: block !important;
  }

  /* (backup) mostrar overlay si el panel trae .show */
  #W3Menu.show ~ .menu-close.fade-overlay{
    display: block !important;
  }

  /* Evitar que el hero/interiores se “coman” el click */
  .dz-bnr-inr,
  .page-content{
    position: relative;
    z-index: 0 !important;
  }

  /* Botón hamburguesa siempre arriba */
  .w3menu-toggler{
    position: relative !important;
    z-index: 100000 !important;
  }
}

/* ==============================
   FIX MENÚ MOBILE EN COLUMNAS
   (evita que quede en 1 sola línea)
   ============================== */
@media (max-width: 991px){

  /* el UL ya no debe comportarse como flex horizontal */
  .header-nav .navbar-nav{
    display: block !important;
    white-space: normal !important;
  }

  /* cada item ocupa toda la línea */
  .header-nav .navbar-nav > li{
    display: block !important;
    width: 100% !important;
  }

  .header-nav .navbar-nav > li > a{
    display: block !important;
    width: 100% !important;
    padding: 14px 18px !important;
    font-size: 20px !important; /* ajusta 18–22 */
    line-height: 1.2 !important;
    white-space: normal !important;
  }

  /* submenús en columna */
  .header-nav .navbar-nav .sub-menu{
    position: static !important;
    width: 100% !important;
  }

  .header-nav .navbar-nav .sub-menu li a{
    display: block !important;
    padding: 12px 22px !important;
    white-space: normal !important;
    font-size: 18px !important;
  }

  /* el panel debe scrollear si es largo */
  #W3Menu{
    height: 100vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }
    
    @media (min-width: 1200px) {
    .fundacion-video-wrapper .ratio-16x9 {
        height: 450px !important; /* altura fija para que se vea más grande */
    }
}
    /* FUNDACION - Mejoras de legibilidad, hover y responsividad */
.fundacion-section .lead {
    line-height: 1.7;
    font-size: 1.15rem;
}

.fundacion-section .card {
    transition: all 0.35s ease;
    border: none;
}

.fundacion-section .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 90, 167, 0.15) !important;
}

.fundacion-section .btn-primary {
    background-color: #005aa7;
    border-color: #005aa7;
}

.fundacion-section .btn-primary:hover {
    background-color: #004a8c;
    border-color: #004a8c;
    transform: translateY(-3px);
}

.fundacion-section .ratio-16x9 {
    background: #f8f9fa; /* fallback gris claro si el iframe tarda */
    border: 1px solid #e9ecef;
}

/* Mobile: ajusta video y texto */
@media (max-width: 991px) {
    .fundacion-section .lead {
        font-size: 1.05rem;
    }
    .fundacion-section .card-body {
        padding: 1.5rem;
    }
}
    /* Video responsivo premium */
.ratio-16x9 {
    background: #f8f9fa; /* fallback gris claro mientras carga */
    min-height: 400px;   /* altura mínima en desktop para que no quede muy pequeño */
}
@media (max-width: 991px) {
    .ratio-16x9 {
        min-height: 280px; /* más pequeño pero proporcional en móvil */
    }
}
 

.premios {
  padding: 80px 0;
}

/* Asegurar que el contenedor Swiper oculte slides adyacentes */
.swiper {
  overflow: hidden;
}

/* Forzar cada slide a ocupar el 100% del ancho del contenedor */
.swiper-wrapper {
  display: flex;
}

.swiper-slide {
  height: auto;
  flex: 0 0 100% !important;
  width: 100% !important;
  box-sizing: border-box;
}

/* Ocultar slides que no estén activos solo en estos carousels */
.testimonial-swiper1 .swiper-slide:not(.swiper-slide-active),
.premios-swiper .swiper-slide:not(.swiper-slide-active) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 400ms ease;
  transform: translate3d(0,0,0);
}

.testimonial-swiper1 .swiper-slide-active,
.premios-swiper .swiper-slide-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
  transition: opacity 400ms ease;
}

.premio-card {
  display: flex;
  align-items: center;
  gap: 40px;

  background: #ffffff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

.premio-texto {
  flex: 1;

  .premio-titulo {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 6px;
  }

  .premio-subtitulo {
    display: block;
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 15px;
  }

  .premio-descripcion {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
  }
}

.premio-imagen {
  flex: 0 0 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.premio-imagen img {
  max-width: 180px;
  max-height: 120px;
  object-fit: contain;
  width: auto;
  height: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .premio-card {
    flex-direction: column;
    text-align: center;
    gap: 4px; /* mínimo */
    padding: 8px; /* reducido */
  }

  .premio-imagen {
    margin-top: 6px; /* mínimo */
    flex: 0 0 auto !important;
    width: 100% !important;
    display: flex;
    justify-content: center;
  }

  .premio-imagen img {
    width: 70%;
    max-width: 260px;
    height: auto;
    margin: 0 auto;
  }

  .premio-texto {
    padding-bottom: 4px; /* mínimo */
  }

  /* Ajustes específicos para testimonial/premios en móvil */
  .testimonial-1 {
    display: block;
  }

  /* Aumentar tamaño de imágenes en móvil dentro de los carousels */
  .premio-imagen img,
  .testimonial-media img {
    width: 70% !important;
    max-width: 260px !important;
    height: auto !important;
    margin-top: 4px; /* reducir espacio encima de la imagen */
  }
}


/* Anula reglas que puedan venir de hojas externas y fijan tamaño */
.premio-imagen img,
.testimonial-media img,
.img2 img,
.swiper .swiper-slide img {
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  max-height: none !important;
}

    

    

    /* Mejoras para condiciones */

    
    .hover-lift {
    transition: all 0.35s ease;
}
.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,90,167,0.15) !important;
}
.bg-primary {
    background-color: #005aa7 !important;
}
.text-primary {
    color: #005aa7 !important;
}
.btn-primary {
    background-color: #005aa7;
    border-color: #005aa7;
}
.btn-primary:hover {
    background-color: #004a8c;
    border-color: #004a8c;
}
    
}

/* FIX: Velocidad del marquee de síntomas */
.dz-marquee.style-1 .marquee-list {
    animation: ticker 60s linear infinite !important;
}

/* ============================================================
   HERO de sucursal (nivel de clase, todas las páginas)
   Bugs del tema: banner clavado en su alto (.style-1{max-height:1.2rem}
   + entry height fijo) y h1 a 5rem en bold pisando al .hero-title →
   "plasta" de texto sin jerarquía y desbordes en 27".
   Diseño (UX): el banner crece lo justo; el título se parte en
   jerarquía (nombre grande + descriptor ligero, vía custom.js) y
   queda centrado y consistente en TODAS las sucursales.
   ============================================================ */
.dz-bnr-inr.style-1 {
  max-height: none;            /* anula el max-height:1.2rem que bloqueaba el alto */
  padding-bottom: 0;           /* sin cola vacía: el centrado lo hace el entry */
}
/* El tema usa .container{display:table;height:100%} para centrar vertical en
   héroes full-height; ese height:100% hereda el 100vh de un ancestro y, sin el
   clamp roto, infla el banner a la altura del viewport. Para los banners
   interiores lo neutralizamos: el container se ajusta a su contenido. */
.dz-bnr-inr.style-1 .container {
  display: block;
  height: auto;
}
.dz-bnr-inr.style-1 .dz-bnr-inr-entry {
  height: auto;                /* antes: height fijo = no crecía con el título */
  min-height: var(--dz-banner-height);
  display: flex;               /* centrado vertical real (el truco table-cell del tema estaba desactivado) */
  flex-direction: column;
  justify-content: center;     /* contenido al MEDIO del área visible, no pegado arriba */
  align-items: center;
  /* El header es position:absolute (~82px) y tapa el inicio del banner;
     el padding-top lo libra y el centrado queda en el área visible. */
  padding-top: 82px;
  padding-bottom: 0;
}
@media (max-width: 991px) {
  .dz-bnr-inr.style-1 .dz-bnr-inr-entry { padding-top: 70px; }
}
/* Centrado consistente (custom.js marca el entry y quita text-start) */
.dz-bnr-inr-entry.hero-entry-centered { text-align: center; }
.dz-bnr-inr-entry.hero-entry-centered > .d-flex { justify-content: center; }
/* Título base (fallback sin JS): sensato, nunca titánico, sin capitalize */
.dz-bnr-inr h1.hero-title {
  display: block;
  max-width: 26ch;
  margin: 0 auto .9rem;
  font-size: clamp(2rem, 3.2vw, 3.1rem);
  font-weight: 800;
  line-height: 1.1;
  text-transform: none;
  text-wrap: balance;
  overflow-wrap: break-word;
}
/* Jerarquía: nombre de la sucursal (protagonista) */
.dz-bnr-inr h1.hero-title .hero-brand {
  display: block;
  font-size: clamp(2.1rem, 3.4vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -.015em;
}
/* Jerarquía: descriptor (ligero, secundario, no compite) */
.dz-bnr-inr h1.hero-title .hero-sub {
  display: block;
  margin-top: .5rem;
  font-size: clamp(1.05rem, 1.7vw, 1.55rem);
  font-weight: 400;
  line-height: 1.28;
  opacity: .9;
}

