:root { --nav-h: 72px; }
.valores-hero{
  position: relative;
  width: 100%;
  height: calc(100vh - var(--nav-h));
  min-height: 520px;
  overflow: hidden;
}

.valores-content{
  position: relative;
  height: 100%;
  width: 100%;   
  max-width: none;   
  margin: 0;           
  padding: 0;         
}
.valores-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);
}

.valores-band::before,
.valores-band::after{ content: none !important; }
.valores-band p{
  margin: 0;
  font-size: clamp(14px,1.9vw,16px);
  line-height: 1.6;
  text-align: left;
  color: #eaf1ff;
}
@media (max-width: 620px){
  .valores-hero{
    height: calc(100vh - var(--nav-h));
    min-height: 520px;
    display: flex;
    align-items: center;    
    justify-content: center;  
  }
  .valores-content{
    width: 100%;
    height: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;       
    justify-content: center; 
    gap: 10px;
  }
  .valores-pill{
    position: static;
    margin: 0 auto 10px;
    align-self: center;
  }
  .valores-band{
    position: static;
    left: auto;
    bottom: auto;
    max-width: min(92%, 520px);
    margin: 0 auto;
    border-radius: 12px;      
    text-align: center;
  }
  .valores-band p{
    text-align: center;
  }
}
.valores-band ul{
  margin: 0;
  padding-left: 0.75rem;         
  list-style: disc;
  list-style-position: inside;  
}

.valores-band li{
  margin: 6px 0;
  line-height: 1.6;         
  overflow-wrap: anywhere;      
  text-wrap: pretty;            
}
@media (max-width: 620px){
  .valores-band{ padding: 16px 18px; }
  .valores-band ul{ padding-left: 0.5rem; }
  .valores-band li{ font-size: 14px; line-height: 1.65; }
}
.valores-band {
  position: absolute;
  left: max(0px, env(safe-area-inset-left));
  bottom: clamp(28px, 8vh, 120px);
  max-width: min(720px, 95vw);
  padding: clamp(16px,2.5vw,24px) clamp(20px,3vw,36px);
  background: linear-gradient(
    90deg, 
    rgba(16, 42, 84, 0.8) 0%,   /* 0.8 = 80% opacidad */
    rgba(37, 98, 182, 0.8) 100%
  );
  border-radius: 0 18px 18px 0;
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
  color: #fff;
}

.valores-band ul {
  margin: 0;
  padding-left: 0.5em; /* Sangría reducida */
  list-style: disc inside;
}

.valores-band li {
  margin: 0;
  font-size: clamp(20px, 4vw, 22px);
  font-weight: 500;
  line-height: 1.40;    
  color: inherit;
  letter-spacing: 0.01em;
  
}

@media (max-width: 620px){
  .valores-band{
    position: static;
    left: auto;
    bottom: auto;
    max-width: min(92%, 520px);
    margin: 0 auto;
    border-radius: 18px;
    text-align: center;
    padding: 16px 18px;
  }
  .valores-band ul{
    padding-left: 1em;
  }
  .valores-band li{
    font-size: 16px;
    line-height: 1.65;
  }
}

/* --- 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; }
  }
}
/* AGREGAR ESTO A TU CSS - El div.valores-bg necesita altura */

.valores-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.valores-content {
  position: relative;
  z-index: 1;
}

/* Solo centrar en móvil */
@media (max-width: 620px) {
  .valores-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
  }

  .valores-pill {
    position: relative;
    left: 0;
    top: 0;
  }

  .valores-band {
    position: relative;
    left: 0;
    bottom: 0;
  }
}