:root { --nav-h: 72px; }
.mision-hero{
  position: relative;
  width: 100%;
  height: calc(100vh - var(--nav-h));
  overflow: hidden;
}
.mision-bg{
  position: absolute;
  inset: 0;
  transform: scale(1.02);
}
.mision-content{
  position: relative;
  height: 100%;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.mision-pill{
  position: absolute;
  left: clamp(16px, 6vw, 32px);
  top: clamp(16px, 6vh, 120px);
  background: #1a1f6b;
  color: #fff;
  font-weight: 900;
  font-size: clamp(32px, 6vw, 54px);
  text-shadow: 0 8px 24px rgba(0,0,0,.35);
  padding: clamp(8px,1.2vw,12px) clamp(14px,2.2vw,26px);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}
.mision-band{
  position: absolute;
  right: max(0px, env(safe-area-inset-right));
  bottom: clamp(28px, 8vh, 120px);
  max-width: min(720px, 95vw);
  padding: clamp(16px,2.5vw,24px) clamp(20px,3vw,36px);
  color: #fff;
  background-color: rgb(16, 35, 65); 
  border-radius: 12px 0 0 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
}
.mision-band p{
  margin: 0;
  font-size: clamp(14px,1.9vw,16px);
  line-height: 1.6;
  text-align: right;
  color: #eaf1ff;
}
@media (max-width: 620px){
  .mision-hero{
    height: calc(100vh - var(--nav-h));
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .mision-content{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    gap: 10px;
  }
  .mision-pill{
    position: static;
    margin: 0 auto 10px;
    align-self: center;  
  }
  .mision-band{
    position: static;
    right: auto;
    bottom: auto;
    max-width: 92%;
    margin: 0 auto;
    border-radius: 12px;
    text-align: center;
  }
  .mision-band p{
    text-align: center;
  }
}
@media (prefers-reduced-motion: reduce){
  .mision-bg{ transform: none; }
}

/* --- 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; }
  }
}
