/* ============================================================
   UNICEF – Construyendo Bienestar
   Prefijo .cb-
   ============================================================ */

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

@font-face {
  font-family: "Noto Sans CB";
  src: url("../fonts/NotoSans.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

.cb-root {
  --cb-azul: #00aeef;
  --cb-azul-claro: #9adbe8;
  --cb-azul-osc: #0047bb;
  --cb-amarillo: #ffb500;
  --cb-naranja: #ff8200;
  --cb-white: #ffffff;
  --cb-max: 1200px;

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

/* ---- Fondo degradé amarillo → blanco ---- */
.cb-root {
  width: 100%;
  margin: 0;
  background: linear-gradient(180deg,
    #ffb500 0%,
    #ffb500 25%,
    #ffc733 40%,
    #fde6a0 55%,
    #fef5e0 68%,
    #ffffff 80%,
    #ffffff 100%
  );
  overflow-x: hidden;
  position: relative;
}

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

/* ============================================================
   HEADER 50/50
   ============================================================ */
.cb-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  margin-bottom: 20px;
}

.cb-titulo {
  width: clamp(280px, 42vw, 500px);
  height: auto;
  margin-left: clamp(-40px, -3vw, -20px);
}

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

/* ============================================================
   DESCRIPCIÓN: izquierda, 18px en desktop
   ============================================================ */
.cb-descripcion {
  max-width: 100%;
  margin: 0 0 20px 0;
  text-align: left;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 24px 30px;
}

.cb-p {
  margin: 0 0 14px 0;
  font-size: 18px;
  line-height: 1.6;
    color: var(--cb-azul-osc);
  font-weight: 400;
}

.cb-p strong { font-weight: 700; }

/* ============================================================
   FOTO NIÑAS: grande, sin círculos
   ============================================================ */
.cb-foto-wrap {
  text-align: center;
  margin: 10px 0 0 0;
}

.cb-ninas {
  width: 100%;
  max-width: 800px !important;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ============================================================
   SECCIÓN CIFRAS con círculos (margin negativo sobre foto)
   ============================================================ */
.cb-cifras-section {
  position: relative;
  margin-top: -500px;
  padding: 20px 0 40px 0;
  overflow: hidden;    
  z-index: 99;
}

.cb-cifras-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("../images/circulos.webp");
  background-repeat: no-repeat;
  background-position: top;
  background-size: cover;
  z-index: 0;
  pointer-events: none;
}

.cb-cifras-content {
  position: relative;
  z-index: 2;
  max-width: var(--cb-max);
  margin: 0 auto;
  padding: 0 40px;
}

/* ---- Botón scroll (reutilizable) ---- */
.cb-scroll-wrap {
  display: flex;
  justify-content: center;
  margin: 0 0 30px 0;
}

.cb-scroll-btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.cb-scroll-btn:hover,
.cb-scroll-btn:focus {
  transform: scale(1.06);
  outline: none;
}

.cb-scroll-btn img {
  width: clamp(280px, 30vw, 680px);
  height: auto;
  display: block;
}

/* ---- Cifras grid 3+2 ---- */
.cb-cifras {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.cb-cifras-fila {
  display: grid;
  gap: clamp(16px, 2.5vw, 30px);
  width: 100%;
  max-width: 900px;
  justify-items: center;
  align-items: start;
}

.cb-cifras-fila--3 { grid-template-columns: repeat(3, 1fr); }
.cb-cifras-fila--2 { grid-template-columns: repeat(2, 1fr); max-width: 600px; }

.cb-cifra {
  width: 100%;
  max-width: 240px;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.cb-cifra img { width: 100%; height: auto; display: block; }

.cb-cifra--v1:hover { transform: scale(1.08) rotate(-3deg); }
.cb-cifra--v2:hover { transform: scale(1.10) rotate(2deg); }
.cb-cifra--v3:hover { transform: scale(1.08) rotate(3deg); }
.cb-cifra--v4:hover { transform: scale(1.09) rotate(-2deg); }
.cb-cifra--v5:hover { transform: scale(1.09) rotate(3deg); }

/* ============================================================
   DESTACADO: sobre el degradé
   ============================================================ */
.cb-destacado-wrap {
  text-align: center;
  margin: 40px 0 30px 0;
}

.cb-root img.cb-destacado {
  height: auto;
  transition: transform 0.35s ease;
  cursor: pointer;
}

.cb-root img.cb-destacado:hover { transform: scale(1.03); }

.cb-root img.cb-destacado--desktop {
  display: block;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.cb-root img.cb-destacado--movil { display: none; }

/* ============================================================
   FRANJA RAYAS (solo título del video)
   ============================================================ */
.cb-rayas-section {
    position: relative;
    width: 100%;
    padding: 150px 0 230px 0;
    overflow: hidden;
    margin-top: -119px;
}

.cb-rayas-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("../images/rayas.webp");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  z-index: 0;
  pointer-events: none;
}

.cb-rayas-content {
  position: relative;
  z-index: 1;
  max-width: var(--cb-max);
  margin: 0 auto;
  padding: 0 40px;
}

/* ============================================================
   VIDEO FLOTANTE (entre rayas y footer)
   ============================================================ */
.cb-video-float {
  position: relative;
  z-index: 10;
  max-width: 840px;
  margin: -200px auto 0 auto;
  padding: 0 40px;
}

.cb-video-wrap {
  max-width: 800px;
  margin: 0 auto;
}
.cb-cifra--v1:hover { transform: scale(1.08); }
.cb-cifra--v2:hover { transform: scale(1.10); }
.cb-cifra--v3:hover { transform: scale(1.08); }
.cb-cifra--v4:hover { transform: scale(1.09); }
.cb-cifra--v5:hover { transform: scale(1.09); }
.cb-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);
}




/* ============================================================
   SECCIÓN BLANCA FINAL (se mete debajo del video)
   ============================================================ */
.cb-footer-section {
  width: 100%;
  min-height: 280px;
  background: var(--cb-white);
  position: relative;
  z-index: 1;
  margin-top: -200px;
  padding-top: 240px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 820px) {
  .cb-inner { padding: 24px 20px 0; }

  .cb-header {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
    margin-bottom: 20px;
  }
  .cb-logos { max-width: 240px; justify-self: center; order: 1; }
  .cb-titulo { max-width: 320px; margin: 0 auto; order: 2; }

  .cb-p { font-size: 15px; }

  .cb-ninas { max-width: 100%; }

  .cb-cifras-section { margin-top: -80px; }
  .cb-cifras-content { padding: 0 20px; }
  .cb-scroll-btn img { max-width: 90%; width: 90%; }

  .cb-cifras-fila--3 { gap: 10px; }
  .cb-cifras-fila--2 { gap: 10px; max-width: 400px; }
  .cb-cifra { max-width: 100%; }

  .cb-root img.cb-destacado--desktop { display: none; }
  .cb-root img.cb-destacado--movil {
    display: block;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }

  .cb-rayas-section { padding: 120px 0 80px 0; }
  .cb-rayas-content { padding: 0 20px; }
  .cb-video-float { padding: 0 20px; margin-top: -50px; }
  .cb-video { border-radius: 12px; }
  .cb-footer-section { margin-top: -150px; padding-top: 180px; }
}

@media (max-width: 480px) {
  .cb-inner { padding: 20px 16px 0; }
  .cb-titulo { max-width: 260px; }
  .cb-cifras-section { margin-top: -200px; }
  .cb-scroll-btn img { max-width: 95%; width: 95%; }
  .cb-cifra { max-width: 100%; }
  .cb-p { font-size: 14px; }
  .cb-video-float { padding: 0 16px; margin-top: -30px; }
  .cb-footer-section { margin-top: -120px; padding-top: 150px; }
}

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