/* ============================================================
   UNICEF – Creciendo Juntos (rediseño)
   Prefijo .cj-
   ============================================================ */

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

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

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

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

/* Fondo degradé amarillo → blanco */
.cj-root {
  width: 100%;
  margin: 0;
  background: linear-gradient(180deg,
    #ffb500 0%,
    #ffb500 20%,
    #ffc733 35%,
    #fde6a0 50%,
    #fef5e0 65%,
    #ffffff 78%,
    #ffffff 100%
  );
  overflow-x: hidden;
  position: relative;
}

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

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

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

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

/* ============================================================
   DESCRIPCIÓN: izquierda, 18px
   ============================================================ */
.cj-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;
}

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

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

/* ============================================================
   TÍTULO SCROLL "Pequeñas acciones cotidianas"
   ============================================================ */
.cj-scroll-wrap {
  display: flex;
  justify-content: center;
  margin: 10px 0 0 0;
}

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

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

.cj-scroll-btn img {
  width: clamp(280px, 42vw, 380px);
  height: auto;
  display: block;
}

/* ============================================================
   HERO: papá centro + 3 tarjetas alrededor + círculos
   ============================================================ */
.cj-hero-section {
  position: relative;
  margin-top: -40px;
  padding: 0 0 20px 0;
  overflow: hidden;
}

.cj-hero-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: center center;
  background-size: cover;
  z-index: 0;
  pointer-events: none;
}

.cj-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0;
  align-items: center;
  justify-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

/* Papá centro (ocupa las 2 filas) */
.cj-papa {
  grid-column: 1 / 4;
  grid-row: 1;
  margin-bottom: -470px;
}

.cj-papa img {
    width: 100%;
    max-width: 580px;
    margin-left: 0% !important;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Tarjetas de acción */
.cj-accion {
  cursor: pointer;
  transition: transform 0.4s ease;
  position: relative;
  z-index: 2;
}

.cj-accion img {
  width: 100%;
  max-width: 220px;
  height: auto;
  display: block;
}

/* Dedicar: izquierda, fila 1, se monta sobre el papá */
.cj-accion--izq {
  grid-column: 1;
  grid-row: 2;
  justify-self: center;
  margin-right: 0;
}

.cj-accion--der {
  grid-column: 3;
  grid-row: 2;
  justify-self: center;
  margin-left: 0;
}

.cj-accion--abajo {
  grid-column: 2;
  grid-row: 2;
  margin-top: 0;
}

/* Hovers: zoom + rotación */
.cj-accion--izq:hover { transform: scale(1.08); }
.cj-accion--der:hover { transform: scale(1.08); }
.cj-accion--abajo:hover { transform: scale(1.10); }

/* ============================================================
   FRANJA RAYAS con destacado
   ============================================================ */
.cj-rayas-section {
  position: relative;
  width: 100%;
  padding: 50px 0;
  overflow: hidden;
}

.cj-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;
}

.cj-rayas-section::before {
  display: none;
}

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

.cj-destacado-wrap {
  text-align: center;
  margin: 0;
}

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

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

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

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

/* ============================================================
   FOOTER: cierre + botón sobre fondo blanco
   ============================================================ */
.cj-footer-section {
  width: 100%;
  background: var(--cj-white);
  padding: 40px 0 60px 0;
}

.cj-footer-section .cj-inner {
  padding-top: 0;
}

.cj-cierre {
  max-width: 780px;
  margin: 0 auto 20px auto;
  text-align: center;
  font-size: 18px;
  line-height: 1.6;
  color: var(--cj-azul-osc);
  font-weight: 700;
}

.cj-cierre strong { font-weight: 700; }

.cj-cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.cj-cta-btn {
  display: inline-block;
  background: var(--cj-azul-osc);
  color: var(--cj-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;
}

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

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

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

  .cj-p { font-size: 15px; }
  .cj-cierre { font-size: 15px; }

  .cj-scroll-btn img { max-width: 90%; width: 90%; }

  /* Hero: papá arriba, tarjetas abajo en fila */
  .cj-hero-grid {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 12px;
    padding: 0 20px;
  }
  .cj-papa { grid-column: 1 / 4; grid-row: 1; }
  .cj-papa img { max-width: 380px; }
  .cj-accion--izq { grid-column: 1; grid-row: 2; justify-self: center; margin-right: 0; }
  .cj-accion--abajo { grid-column: 2; grid-row: 2; margin-top: 0; }
  .cj-accion--der { grid-column: 3; grid-row: 2; justify-self: center; margin-left: 0; }
  .cj-accion img { max-width: 160px; }

  .cj-rayas-section { padding: 30px 0; }
  .cj-rayas-content { padding: 0 20px; }

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

  .cj-footer-section { padding: 30px 0 40px 0; }

  .cj-papa {
    grid-column: 1 / 4;
    grid-row: 1;
    margin-bottom: -200px;
}
}

@media (max-width: 480px) {
  .cj-inner { padding: 20px 16px 0; }
  .cj-titulo { max-width: 260px; }
  .cj-p { font-size: 14px; }
  .cj-cierre { font-size: 14px; }
  .cj-papa img { max-width: 280px; }
  .cj-accion img { max-width: 120px; }
  .cj-scroll-btn img { max-width: 95%; width: 95%; }
}

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