.horario-hero{
  position: relative;
  width: 100%;
  height: calc(100vh - var(--nav-h,72px));
  min-height: 520px;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #fff;
}
.horario-bg{
  position: absolute;
  inset: 0;
  z-index: -2;
}
.horario-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.18));
  z-index:-1;
}
.horario-inner{
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
}
.horario-title{
  text-align:center;
  font-weight:900;
  letter-spacing:.5px;
  font-size: clamp(32px, 6vw, 64px);
  text-shadow: 0 8px 24px rgba(0,0,0,.35);
  margin: 0;
}
.horario-grid{
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: min(1100px, 94vw);
  padding: 18px;                
  z-index: 1;
}
.horario-grid::before{
  content:"";
  position:absolute;
  inset:0;                         
  background: linear-gradient(90deg,#d4671eee,#f1902eee);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
  z-index:0;                        
}
.horario-card{
  background: transparent;         
  max-width: 360px;
  padding: 18px 12px;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,.25);
  z-index: 1;                       
}
.horario-card h3{
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 800;
  margin: 0 0 8px;
}
.horario-card p{
  margin: 0 0 10px;
  font-size: clamp(14px, 1.9vw, 18px);
  line-height: 1.4;
}
.horario-card span{
  display: block;
  margin-top: 4px;
  font-size: clamp(12px, 1.6vw, 16px);
  font-style: italic;
  opacity: .95;
}
.horario-leon{
  position: absolute;
  right: clamp(12px, 4vw, 48px);
  bottom: -32px;                   
  width: clamp(90px, 20vw, 160px);
  height: auto;
  filter: drop-shadow(0 10px 16px rgba(0,0,0,.35));
  z-index: 2;
  pointer-events: none;
}
@media (max-width: 980px){
  .horario-grid{
    grid-template-columns: 1fr 1fr;
    width: min(900px, 94vw);
  }
}
@media (max-width: 680px){
  .horario-hero{
    height: auto;
    min-height: 560px;
    padding: 48px 0 72px;
  }
  .horario-grid{
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 12px;
    width: min(560px, 92vw);
  }
  .horario-card{ max-width: 100%; }
  .horario-leon{
    right: 10px;
    bottom: -24px;
    width: clamp(90px, 28vw, 140px);
  }
}

/* --- base para alturas completas --- */
html, body { height: 100%; }

/* Si el navbar es FIXED y se superpone al contenido, 
   no restes su altura en móvil */
@media (max-width: 9999px) {
  :root { --nav-h: 0px; }
}

/* Fallback para Safari/iOS antiguos (sin dvh) */
@supports not (height: 100dvh) {
  html { height: -webkit-fill-available; }
  body { min-height: -webkit-fill-available; }
  .mision-hero { height: -webkit-fill-available !important; }
}

/* Navegadores modernos: usa la visual viewport */
@supports (height: 100dvh) {
  .mision-hero { height: 100dvh !important; }
}

/* Móviles: ocupa exactamente lo visible (sin “hueco”) */
@media (max-width: 620px) {
  .mision-hero {
    height: 100svh !important;       /* cubre lo visible con barras del navegador */
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Si hay soporte de dvh, úsalo por encima de svh */
  @supports (height: 100dvh) {
    .mision-hero { height: 100dvh !important; }
  }
}