/* ============================================================
   UNICEF – La fuerza de las juventudes (Own Your Game)
   Prefijo .fj-  (aislado del contexto Drupal)
   ============================================================ */

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

/* ---------- Fuentes ---------- */
@font-face {
  font-family: "Noto Sans FJ";
  src: url("../fonts/NotoSans-VariableFont_wdth,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans FJ";
  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) ---------- */
.fj-root {
  --fj-azul: #00aeef;
  --fj-azul-claro: #9adbe8;
  --fj-azul-osc: #0047bb;
  --fj-verde-osc: #004c45;
  --fj-amarillo: #ffb500;
  --fj-naranja: #ff8200;

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

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

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

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

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

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

.fj-logos {
  width: 75%;
  max-width: 420px;
  height: auto;
  justify-self: end;
}

/* ============================================================
   CUERPO: franja full-width con círculos + grid 2 columnas
   ============================================================ */
.fj-body-wrap {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 10px;
    padding: 20px 0;
    background-image: url(../images/circulos.png);
    background-repeat: no-repeat;
    background-position: 0px 0px;
    background-size: 100% auto;
}
.fj-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 4vw, 60px);
  align-items: stretch;
  max-width: var(--fj-max);
  margin: 0 auto;
  padding: 0 40px;
}

.fj-info {
  padding-right: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fj-titulo-seccion {
  margin: 0 0 20px 0;
  font-size: clamp(18px, 1.7vw, 26px);
  line-height: 1.35;
  font-weight: 700;
  color: var(--fj-text-white);
}

.fj-descripcion {
  margin: 0 0 30px 0;
}

.fj-p {
  margin: 0 0 14px 0;
  font-size: 18px !important;
  line-height: 1.55;
  color: var(--fj-text-white);
  font-weight: 400;
}

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

/* Logo Own Your Game + hover zoom */
.fj-logo-own-wrap {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

.fj-logo-own {
  width: 100%;
  max-width: 340px;
  height: auto;
  transition: transform 0.35s ease;
  cursor: pointer;
}

.fj-logo-own:hover {
  transform: scale(1.08);
}

/* Foto: ocupa toda la altura y ancho de la columna derecha */
.fj-foto {
  display: flex;
  align-items: stretch;
  justify-content: center;
  height: 100%;
  min-height: 500px;
}

.fj-foto-img {
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 500px;
  object-fit: contain;
  object-position: center bottom;
}

/* ============================================================
   DESTACADO (swap desktop/móvil) con hover zoom
   ============================================================ */
.fj-destacado-wrap {
  text-align: center;
  margin: 30px 0 20px 0;
}

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

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

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

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

/* ============================================================
   BOTÓN SCROLL AL VIDEO (con flecha animada)
   ============================================================ */
.fj-scroll-wrap {
  display: flex;
  justify-content: center;
  margin: 30px 0 16px 0;
}

.fj-scroll-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--fj-text-white);
  cursor: pointer;
  padding: 8px 16px;
  font-family: inherit;
  transition: transform 0.3s ease;
}

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

.fj-scroll-texto {
  background: var(--fj-azul);
  color: var(--fj-text-white);
  padding: 10px 26px;
  border-radius: 999px;
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.4;
  text-align: center;
  display: inline-block;
}

.fj-scroll-texto strong {
  color: var(--fj-azul-osc);
  font-weight: 700;
}

.fj-scroll-flecha {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fj-azul);
  transition: transform 0.3s ease;
}

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

/* ============================================================
   TEXTO POST-SCROLL
   ============================================================ */
.fj-texto-scroll {
  max-width: 700px;
  margin: 0 auto 30px auto;
  text-align: center;
  font-size: 18px !important;
  line-height: 1.55;
  color: var(--fj-azul-osc);
  font-weight: 700;
}

/* ============================================================
   VIDEO
   ============================================================ */
.fj-video-wrap {
  max-width: 800px;
  margin: 0 auto 30px auto;
  padding: 0;
}

.fj-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);
}

.fj-scroll-btn img {
    max-width: 85% !important;
}

/* ============================================================
   CTA FINAL: texto + botón "Aquí"
   ============================================================ */
.fj-cta-texto {
  max-width: 700px;
  margin: 0 auto 50px auto;
  text-align: center;
  font-size: 20px !important;
  line-height: 1.55;
  color: var(--fj-azul-osc);
  font-weight: 700;
}

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

/* Botón "Aquí" hecho en CSS puro con hover zoom + azul más claro */
.fj-cta-btn {
  display: inline-block;
  background: var(--fj-azul-osc);
  color: var(--fj-text-white);
  text-decoration: none;
  padding: 12px 42px;
  border-radius: 999px;
  font-weight: 700;
  font-size: clamp(15px, 1.2vw, 17px);
  letter-spacing: 0.5px;
  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;
}

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 820px) {
  .fj-root {
    background-size: cover;
    background-position: center top;
  }

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

  /* Header: logos primero, título después (lógica de lectura móvil) */
  .fj-header {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
    margin-bottom: 24px;
  }

  .fj-logos {
    max-width: 240px;
    justify-self: center;
    order: 1;
  }

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

  /* Cuerpo: apilado, foto arriba */
  .fj-body {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .fj-info {
    padding-right: 0;
    order: 1;
  }

  .fj-foto {
    order: 2;
  }

  .fj-foto-img {
    max-width: 300px;
  }

  .fj-logo-own {
    max-width: 260px;
  }

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

  .fj-titulo-seccion { font-size: 18px; }
  .fj-p { font-size: 18px !important; }

  .fj-scroll-texto {
    padding: 10px 20px;
    font-size: 14px;
  }

  .fj-texto-scroll,
  .fj-cta-texto {
    font-size: 14px;
  }

  .fj-cta-btn {
    padding: 12px 36px;
    font-size: 15px;
  }
}

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

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