/* ============================================================
   UNICEF – Corazones con Propósito
   Prefijo .cp-
   ============================================================ */

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

/* Fuente variable (soporta pesos 100 a 900) */
@font-face {
  font-family: "Noto Sans CP";
  src: url("../fonts/NotoSans.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

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

/* Fondo global */
.cp-root {
  width: 100%;
  margin: 0;
  background-color: #00aeef;
  background-image: url("../images/fondo.webp");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  overflow: hidden;
  position: relative;
}

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

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

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

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

/* ============================================================
   GANCHO + DESCRIPCIÓN
   ============================================================ */
.cp-gancho {
  margin: 0 0 16px 0;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.35;
  font-weight: 700;
  color: var(--cp-white);
  max-width: 900px;
}

.cp-descripcion {
  max-width: 100%;
  margin-bottom: 20px;
}

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

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

/* ============================================================
   HERO con círculos AISLADOS
   ============================================================ */
.cp-hero-wrap {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 20px;
  padding: 20px 0;
  overflow: hidden;
  isolation: isolate;
}

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

.cp-hero {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
}

.cp-nina {
  width: 100%;
  max-width: 620px;
  height: auto;
  display: block;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Cifras superpuestas a los lados */
.cp-cifra {
  position: absolute;
  top: 12%;
  width: 22%;
  max-width: 200px;
  z-index: 3;
  cursor: pointer;
  transition: transform 0.4s ease;
  transform-origin: center center;
}

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

.cp-cifra--izq { left: 4%; }
.cp-cifra--der { right: 4%; }

.cp-cifra--izq:hover { transform: scale(1.08); }
.cp-cifra--der:hover { transform: scale(1.08); }
/* ============================================================
   BOTÓN SCROLL "¡Lo logramos juntos!" (margin -500 para pegar a la niña)
   ============================================================ */
.cp-scroll-wrap {
  display: flex;
  justify-content: center;
  margin: -500px 0 30px 0;
  position: relative;
  z-index: 5;
}

.cp-scroll-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.3s ease;
}

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

.cp-scroll-btn img {
  width: clamp(240px, 30vw, 380px);
  height: auto;
  display: block;
}

.cp-scroll-flecha {
  display: inline-flex;
  color: var(--cp-azul-osc);
  transition: transform 0.3s ease;
  margin-top: -8px;
}

.cp-scroll-btn:hover .cp-scroll-flecha {
  transform: translateY(4px);
}

/* ============================================================
   DESTACADO
   ============================================================ */
.cp-destacado-wrap {
  text-align: center;
  margin: 20px 0 30px 0;
  position: relative;
  z-index: 5;
}

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

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

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

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

/* ============================================================
   BOTÓN CTA "Conoce aquí"
   ============================================================ */
.cp-cta-wrap {
  display: flex;
  justify-content: center;
  margin: 10px 0 20px 0;
  position: relative;
  z-index: 5;
}

.cp-cta-btn {
  display: inline-block;
  background: var(--cp-azul-osc);
  color: var(--cp-white);
  border: none;
  text-decoration: none;
  padding: 12px 42px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: clamp(15px, 1.2vw, 17px);
  letter-spacing: 0.4px;
  box-shadow: 0 6px 20px rgba(0, 71, 187, 0.35);
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.cp-cta-btn:hover,
.cp-cta-btn:focus {
  background: var(--cp-azul);
  transform: scale(1.08);
  box-shadow: 0 10px 28px rgba(0, 174, 239, 0.45);
  outline: none;
}


.cp-video-link {
  text-align: center;
  font-size: 22px;
  color: var(--cp-azul-osc);
  font-weight: 700;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
  margin: 20px auto;
  max-width: 600px;
  position: relative;
  z-index: 5;
  background: rgba(255, 255, 255, 0.9);
  padding: 16px 24px;
  border-radius: 12px;
  line-height: 1.4;
}

.cp-video-link:hover {
  color: var(--cp-azul);
  transform: scale(1.03);
}

/* ============================================================
   VIDEO
   ============================================================ */
.cp-video-titulo {
  text-align: center;
  margin: 20px 0 16px 0;
  font-size: clamp(14px, 1.2vw, 17px);
  color: var(--cp-white);
  font-weight: 400;
  position: relative;
  z-index: 5;
}

.cp-video-wrap {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

.cp-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) {
  .cp-root { background-size: cover; }
  .cp-inner { padding: 24px 20px 40px; }

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

  .cp-gancho { font-size: 18px; }
  .cp-p { font-size: 14px; }

  .cp-hero { padding: 0 12px; }
  .cp-nina { max-width: 100%; }
  .cp-cifra { width: 28%; top: 8%; }
  .cp-cifra--izq { left: 2%; }
  .cp-cifra--der { right: 2%; }

  /* En móvil menos margen negativo */
  .cp-scroll-wrap { margin-top: -200px; }

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

  .cp-cta-btn { padding: 12px 36px; font-size: 15px; }
  .cp-video { border-radius: 12px; }
}

@media (max-width: 480px) {
  .cp-inner { padding: 20px 16px 32px; }
  .cp-titulo { max-width: 260px; }
  .cp-cifra { width: 32%; top: 5%; }
  .cp-scroll-wrap { margin-top: -140px; }
}

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