:root { --nav-h: 72px; }
.vision-hero{
  position: relative;
  width: 100%;
  height: calc(100vh - var(--nav-h));  
  overflow: hidden;
}
.vision-bg{
  position: absolute;
  inset: 0;
  transform: scale(1.02);
}
.vision-content{
  position: relative;
  height: 100%;
  width: 100%;        
  max-width: none;     
  margin: 0;           
  padding: 0;          
}
.vision-pill{
  position: absolute;
  left: clamp(16px, 6vw, 32px);
  top: clamp(16px, 6vh, 120px);
  background: #0E0062;
  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);
}

.vision-band{
  position: absolute;
  left: max(0px, env(safe-area-inset-left)); 
  bottom: clamp(28px, 8vh, 120px);
  max-width: min(520px, 95vw);
  padding: clamp(16px,2.5vw,24px) clamp(20px,3vw,36px);
  color: #fff;
  background: linear-gradient(90deg, #0e2144 0%, #1c3f77 50%, #2b67b6 100%);
  border-radius: 0 12px 12px 0;
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
}
.vision-band::before,
.vision-band::after{ content: none !important; }
.vision-band p{
  margin: 0;
  font-size: clamp(14px,1.9vw,16px);
  line-height: 1.6;
  text-align: left;
  color: #eaf1ff;
}
@media (max-width: 620px){
  .vision-hero{
    height: calc(100vh - var(--nav-h));
    min-height: 520px;
    display: flex;
    align-items: center;      
    justify-content: center;    
  }
  .vision-content{
    width: 100%;
    height: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;       
    justify-content: center;    
    gap: 10px;
  }
  .vision-pill{
    position: static;
    margin: 0 auto 10px;
    align-self: center;
  }
  .vision-band{
    position: static;
    left: auto;
    bottom: auto;
    max-width: min(92%, 520px);
    margin: 0 auto;
    border-radius: 12px;     
    text-align: center;
  }
  .vision-band p{
    text-align: center;
  }
}

/* --- base para alturas completas --- */
html, body { height: 100%; }

/* Si tu navbar es FIXED y se superpone al contenido (no empuja),
   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; }
  .vision-hero { height: -webkit-fill-available !important; }
}

/* Navegadores modernos: usa la visual viewport */
@supports (height: 100dvh) {
  .vision-hero { height: 100dvh !important; }
}

/* Móviles: ocupa exactamente lo visible (sin “hueco”) */
@media (max-width: 620px) {
  /* usa svh como extra-fallback y conserva tu min-height */
  .vision-hero {
    height: 100svh !important;     /* cubre lo visible con barras del navegador */
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Cuando haya soporte de dvh, úsalo por encima de svh */
  @supports (height: 100dvh) {
    .vision-hero { height: 100dvh !important; }
  }
}