/* ============================================================
   UNICEF – Corazones en acción
   Prefijo .uc-
   ============================================================ */

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

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

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

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

/* Fondo degradé azul → blanco */
.uc-root {
  width: 100%;
  margin: 0;
  background-color: #d3ecfa;
  background-image: url("../images/fondo.webp");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
  overflow-x: hidden;
  position: relative;
}

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

}

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

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

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

/* ============================================================
   DESCRIPCIÓN: izquierda, 18px desktop
   ============================================================ */
.uc-descripcion {
  max-width: 100%;
  margin: 0 0 50px 0;
  text-align: left;
}

.uc-p {
  margin: 0 0 14px 0;
  font-size: 18px;
  line-height: 1.6;
  color: #fff;
  font-weight: 400;
}

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

/* ============================================================
   BOTÓN SCROLL (reutilizable)
   ============================================================ */
.uc-scroll-wrap {
  display: flex;
  justify-content: center;
  margin: 10px 0 20px 0;
}

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

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

.uc-scroll-btn img {
  width: clamp(280px, 20vw, 900px);
  height: auto;
  display: block;
}

/* ============================================================
   HERO: familia centro + 4 cifras alrededor
   ============================================================ */
.uc-hero {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 40px 20px;
}

.uc-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 2fr 1.2fr;
  grid-template-rows: auto auto;
  gap: 0;
  align-items: normal;
  justify-items: center;
  max-width: 100% !important;
  margin: 0 auto;
}

.uc-familia {
  grid-column: 2;
  grid-row: 1 / 3;
}

.uc-familia img {
  width: 100%;
  max-width: 700px !important;
  height: auto;
  margin: 0 auto;
  display: block;
}

.uc-cifra {
  cursor: pointer;
  transition: transform 0.4s ease;
  position: relative;
  z-index: 2;
}

.uc-cifra img {
  width: 100%;
  max-width: 200px;
  height: auto;
  display: block;
}

.uc-cifra--tl { grid-column: 1; grid-row: 1; justify-self: end; margin-right: -80px; }
.uc-cifra--tr { grid-column: 3; grid-row: 1; justify-self: start; margin-left: -80px; }
.uc-cifra--bl { grid-column: 1; grid-row: 2; justify-self: end; margin-right: -80px; }
.uc-cifra--br { grid-column: 3; grid-row: 2; justify-self: start; margin-left: -80px; }

.uc-cifra--tl:hover { transform: scale(1.08); }
.uc-cifra--tr:hover { transform: scale(1.08); }
.uc-cifra--bl:hover { transform: scale(1.08); }
.uc-cifra--br:hover { transform: scale(1.08); }

/* ============================================================
   DESTACADO (swap desktop/móvil)
   ============================================================ */
.uc-destacado-wrap {
  text-align: center;
  margin: 30px 0 30px 0;
  margin-top: -150px;
}

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

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

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

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

/* ============================================================
   TARJETAS con popup al hover (4 columnas)
   ============================================================ */
.uc-tarjetas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 24px);
  max-width: 1000px;
    margin: 20px auto 80px auto;
}

.uc-tarjeta {
  position: relative;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.uc-tarjeta:nth-child(1):hover { transform: scale(1.06); }
.uc-tarjeta:nth-child(2):hover { transform: scale(1.06); }
.uc-tarjeta:nth-child(3):hover { transform: scale(1.06); }
.uc-tarjeta:nth-child(4):hover { transform: scale(1.06); }

.uc-tarjeta-front img,
.uc-tarjeta-back img {
  width: 100%;
  height: auto;
  display: block;
}



/* Popup: oculto por defecto, aparece al hover */
.uc-tarjeta-back {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  z-index: 5;
    max-height: 100%;
  overflow-y: auto;
}

.uc-tarjeta:hover .uc-tarjeta-back,
.uc-tarjeta.uc-tarjeta--open .uc-tarjeta-back {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.uc-tarjeta:hover .uc-tarjeta-front,
.uc-tarjeta.uc-tarjeta--open .uc-tarjeta-front {
  opacity: 0;
}

.uc-tarjeta-front {
  transition: opacity 0.35s ease;
}

/* Hint "Toca para ver cifras" — solo en touch */
.uc-tarjeta-hint {
  display: none;
  text-align: center;
  font-size: 11px;
  color: var(--uc-azul-osc);
  margin-top: 6px;
  font-weight: 600;
}

/* ============================================================
   CIERRE + CTA
   ============================================================ */
.uc-cierre {
  max-width: 900px;
  margin: 0 auto 20px auto;
  text-align: center;
  font-size: 18px;
  line-height: 1.6;
  color: var(--uc-azul-osc);
  font-weight: 400;
}

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

.uc-cta-wrap {
  display: flex;
  justify-content: center;
  margin: 10px 0 12px 0;
}

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

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

.uc-cta-sub {
  text-align: center;
  font-size: 15px;
  color: var(--uc-azul-osc);
  margin: 0 0 5px 0;
  font-weight: 400;
}



.uc-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 50;
}

.uc-overlay.uc-overlay--visible {
  opacity: 1;
  pointer-events: auto;
}

.uc-tarjeta:hover,
.uc-tarjeta.uc-tarjeta--open {
  position: relative;
  z-index: 100;
}


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

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

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

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

  /* Hero en móvil: familia arriba, 4 cifras en grid 2x2 abajo */
  .uc-hero { padding: 0 20px 20px; }
  .uc-hero-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 12px;
  }
  .uc-familia { grid-column: 1 / 3; grid-row: 1; }
  .uc-familia img { max-width: 320px; }
  .uc-cifra--tl { grid-column: 1; grid-row: 2; justify-self: center; }
  .uc-cifra--tr { grid-column: 2; grid-row: 2; justify-self: center; }
  .uc-cifra--bl { grid-column: 1; grid-row: 3; justify-self: center; }
  .uc-cifra--br { grid-column: 2; grid-row: 3; justify-self: center; }
  .uc-cifra img { max-width: 160px; }

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

  /* Tarjetas: 2 columnas en tablet */
  .uc-tarjetas {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 600px;
  }

  /* Mostrar hints en touch */
  .uc-tarjeta-hint { display: block; }
}

@media (max-width: 480px) {
  .uc-inner { padding: 20px 16px 0; }
  .uc-titulo { max-width: 260px; }
  .uc-p { font-size: 14px; }
  .uc-cierre { font-size: 14px; }
  .uc-familia img { max-width: 260px; }
  .uc-cifra img { max-width: 130px; }
  .uc-scroll-btn img { max-width: 95%; width: 95%; }


.uc-root {
    background-position: top;
    background-size: cover;
}
.uc-destacado-wrap {
    text-align: center;
    margin: 30px 0 30px 0;
    margin-top: -20px;
}
.uc-cifra--tr {
    margin-left: 0px;
}
.uc-cifra--br {
    margin-left: 0px;
}
.uc-cifra--tl {
    margin-right: 0px;
}
.uc-cifra--bl {
    margin-right: 0px;
}










}

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