/* ============================================================
   UNICEF – La voz de una amiga (Yira Orduz)
   Prefijo .va-  (aislado del contexto Drupal)
   ============================================================ */

html, body { margin: 0; padding: 0; }

/* ---------- Fuentes ---------- */
@font-face {
  font-family: "Noto Sans VA";
  src: url("../fonts/NotoSans-VariableFont_wdth,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans VA";
  src: url("../fonts/NotoSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Trendify";
  src: url("../fonts/Trendify.otf") format("opentype");
  font-weight: normal;
  font-display: swap;
}

/* ---------- Tokens (paleta oficial UNICEF) ---------- */
.va-root {
  --va-azul: #00aeef;
  --va-azul-claro: #9adbe8;
  --va-azul-osc: #0047bb;
  --va-verde-osc: #004c45;
  --va-amarillo: #ffb500;
  --va-naranja: #ff8200;

  --va-text-white: #ffffff;
  --va-max: 1200px;

  font-family: "Noto Sans VA", "Noto Sans", system-ui, -apple-system, sans-serif;
  color: var(--va-text-white);
  line-height: 1.5;
  box-sizing: border-box;
}
.va-root *, .va-root *::before, .va-root *::after { box-sizing: inherit; }
.va-root img { display: block; max-width: 100%; }

/* ---------- Fondo con degradé ---------- */
.va-root {
  width: 100%;
  margin: 0;
  background-color: #00aeef;
  background-image: url("../images/fondo.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
  overflow: hidden;
  position: relative;
}

.va-inner {
  position: relative;
  z-index: 1;
  max-width: var(--va-max);
  margin: 0 auto;
  padding: 40px 40px 60px;
}

/* ============================================================
   HEADER: título píldora (izquierda) + logos (derecha)
   ============================================================ */
.va-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.va-titulo {
  width: clamp(280px, 42vw, 500px);
  height: auto;
  /* Extender un poco hacia la izquierda para que el círculo azul salga del margen */
  margin-left: clamp(-40px, -3vw, -20px);
}

.va-logos {
  width: 100%;
  max-width: 400px !important;
  height: auto;
  justify-self: end;
}

/* ============================================================
   CUERPO: texto + foto Yira
   ============================================================ */
.va-body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(20px, 4vw, 60px);
  align-items: center;
  margin-top: 20px;
}

.va-texto {
  padding-right: 10px;
}

.va-subtitulo {
  margin: 0 0 20px 0;
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.35;
  font-weight: 700;
  color: var(--va-text-white);
}

.va-p {
  margin: 0 0 16px 0;
  font-size: clamp(14px, 1.15vw, 18px);
  line-height: 1.6;
  color: var(--va-text-white);
  font-weight: 400;
}

.va-p strong {
  font-weight: 700;
  color: var(--va-text-white);
}

.va-yira {
  display: flex;
  justify-content: center;
  align-items: center;
}

.va-yira-img {
  width: 100%;
  max-width: 350px !important;
  height: auto;
}

/* ============================================================
   FRANJA con círculos de fondo (contiene CTA + Video)
   Rompe el max-width del inner para ir de borde a borde
   ============================================================ */
.va-fila-video {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 40px;
  padding: 40px 0 40px 0;
  background-image: url("../images/circulos.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: auto 100%;
  background-repeat: repeat-x;
}

.va-fila-video-inner {
  max-width: var(--va-max);
  margin: 0 auto;
  padding: 0 40px;
}

/* ============================================================
   CTA botón "Conócela aquí"
   ============================================================ */
.va-cta-wrap {
  text-align: center;
  margin: 0 0 30px 0;
}

.va-cta {
  display: inline-block;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.va-cta:hover,
.va-cta:focus {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.08);
  outline: none;
}

.va-cta img {
  width: 500px;
  height: auto;
}



/* ============================================================
   VIDEO (debajo del CTA)
   ============================================================ */
.va-video-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
}

.va-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: #000;
  box-shadow: 0 10px 30px rgba(0, 71, 187, 0.25);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 820px) {
  .va-root {
    background-size: 140%, cover;
    background-position: left 60%, center top;
  }

  .va-inner {
    padding: 24px 20px 40px;
  }

  /* Header: en móvil los LOGOS van PRIMERO, título después
     (feedback UNICEF: identificar la marca antes que la sección) */
  .va-header {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
    margin-bottom: 24px;
  }

  .va-logos {
    max-width: 220px;
    justify-self: center;
    order: 1;
  }

  .va-titulo {
    max-width: 320px;
    margin: 0 auto;
    order: 2;
  }

  /* Cuerpo: apilar (foto arriba, texto abajo o al revés según orden HTML) */
  .va-body {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .va-texto {
    padding-right: 0;
    order: 2;
  }

  .va-yira {
    order: 1;
  }

  .va-yira-img {
    max-width: 320px;
  }

  .va-subtitulo {
    font-size: 18px;
  }

  .va-p {
    font-size: 18px;
  }

  .va-cta-wrap {
    margin: 30px 0 24px 0;
  }

  .va-cta img {
    max-width: 320px;
  }

  .va-video-wrap {
    padding: 0;
  }
}

@media (max-width: 480px) {
  .va-inner {
    padding: 20px 16px 32px;
  }
  .va-titulo {
    max-width: 260px;
  }
  .va-yira-img {
    max-width: 260px;
  }
  .va-video {
    border-radius: 12px;
  }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .va-root * { animation: none !important; transition: none !important; }
}
