/* ============================================================
   CAMPAÑA NAVIDEÑA – APRODE PERÚ · v6.0
   Sistema de ramas SOBRE el contenido (z-index: 100)
============================================================ */

/* Fuentes cargadas con <link rel=preload> en el PHP — más rápido que @import */

/* ── Variables ── */
:root {
  --verde-noche:   #081a0d;
  --verde-bosque:  #0e2214;
  --verde-medio:   #1a4022;
  --verde-claro:   #2d6e40;
  --rojo:          #8b0c0c;
  --rojo-vivo:     #c0392b;
  --rojo-claro:    #e04535;
  --oro:           #c9943a;
  --oro-claro:     #e8c06a;
  --oro-palido:    #f5e6c8;
  --crema:         #fdf6eb;
  --crema-oscura:  #f7edda;
  --texto-medio:   #4a4a4a;
  --blanco:        #ffffff;
  --sombra-s:      0 8px 40px rgba(0,0,0,.10);
  --sombra-m:      0 16px 60px rgba(0,0,0,.18);
  --sombra-l:      0 24px 80px rgba(0,0,0,.30);
  --r-md:          16px;
  --r-lg:          24px;
  --f-display:     'Cormorant Garamond', Georgia, serif;
  --f-body:        'DM Sans', system-ui, sans-serif;
  --ease:          cubic-bezier(.25,.8,.25,1);
  --ramas-url:     url("../../img/accion_social/campana_navidena/ramas_navidad.webp");
  /* Altura franja de ramas — se reduce en mobile */
  --rama-h:        160px;
  --rama-size:     520px;
}

/* Reset acotado */
.cnv-hero *, .cnv-mision *, .cnv-sobre *,
.cnv-noche *, .cnv-participa *, .cnv-galeria *, .cnv-cta * {
  box-sizing: border-box;
}
.cnv-hero img, .cnv-mision img, .cnv-sobre img,
.cnv-noche img, .cnv-participa img, .cnv-galeria img, .cnv-cta img {
  display: block; max-width: 100%;
}

/* ══════════════════════════════════════════════════════
   SISTEMA DE RAMAS
   .cnv-rama-borde: div vacío posicionado ENCIMA del
   contenido de la sección, como borde decorativo real.
   pointer-events:none para no bloquear interacciones.
══════════════════════════════════════════════════════ */
.cnv-rama-borde {
  position: absolute;
  left: 0;
  width: 100%;
  height: var(--rama-h);
  pointer-events: none;
  background-image: var(--ramas-url);
  background-repeat: repeat-x;
  background-size: var(--rama-size) auto;
}

/* Rama en borde INFERIOR: apunta hacia abajo, sobresale
   hacia la sección siguiente */
.cnv-rama-borde--bottom {
  bottom: calc(var(--rama-h) * -0.38);
  background-position: center top;
  z-index: 100;  /* SOBRE todo el contenido */
}

/* Rama en borde SUPERIOR: voltada, apunta hacia arriba,
   sobresale hacia la sección anterior */
.cnv-rama-borde--top {
  top: calc(var(--rama-h) * -0.38);
  background-position: center bottom;
  transform: scaleY(-1);
  z-index: 100;  /* SOBRE todo el contenido */
}

/* Todas las secciones deben tener overflow:visible
   para que las ramas puedan sobresalir */
.cnv-hero,
.cnv-mision,
.cnv-sobre,
.cnv-noche,
.cnv-participa,
.cnv-galeria,
.cnv-cta {
  position: relative;
  overflow: visible;
}

/* ══════════════════════════════════════════════════════
   1. HERO
══════════════════════════════════════════════════════ */
.cnv-hero {
  position: relative;
  height: 100vh; min-height: 600px;
  display: flex; align-items: center;   /* centrado vertical */
  overflow: visible;
}
/* El clip del video necesita su propio overflow:hidden
   para no mostrar el video fuera del hero */
.cnv-hero-clip {
  position: absolute; inset: 0;
  overflow: hidden; z-index: 1;
  border-radius: 0;
}
.cnv-hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 1;
}
.cnv-hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(to top,  rgba(8,26,13,.96) 0%, rgba(8,26,13,.45) 50%, transparent 100%),
    linear-gradient(to right, rgba(8,26,13,.70) 0%, transparent 65%);
}
/* Estrellas */
.cnv-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 18% 28%, rgba(255,255,255,.55) 0%, transparent 100%),
    radial-gradient(1px   1px   at 62% 14%, rgba(255,255,255,.45) 0%, transparent 100%),
    radial-gradient(2px   2px   at 80% 62%, rgba(255,255,255,.35) 0%, transparent 100%),
    radial-gradient(1px   1px   at 42% 77%, rgba(255,255,255,.55) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at  8% 52%, rgba(255,255,255,.45) 0%, transparent 100%),
    radial-gradient(1px   1px   at 93% 22%, rgba(255,255,255,.40) 0%, transparent 100%);
  background-size: 300px 300px; z-index: 2;
  animation: nieve 16s linear infinite; pointer-events: none;
}
@keyframes nieve {
  from { background-position: 0 0; }
  to   { background-position: 56px 280px; }
}
.cnv-hero-content {
  position: relative; z-index: 5;
  padding: 0 7vw; max-width: 680px;
}
.cnv-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,148,58,.20);
  border: 1px solid rgba(201,148,58,.50);
  color: var(--oro-claro); font-size: .7rem; font-weight: 700;
  letter-spacing: 3.5px; text-transform: uppercase;
  padding: 6px 16px; border-radius: 50px;
  margin-bottom: 22px; backdrop-filter: blur(6px);
  animation: entrar .7s var(--ease) both;
}
.cnv-hero-content h1 {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 4.5vw, 5rem);
  font-weight: 700; color: var(--blanco); line-height: 1.05; margin-bottom: 16px;
  text-shadow: 0 6px 40px rgba(0,0,0,.5);
  animation: entrar .7s .15s var(--ease) both;
}
.cnv-hero-content h1 em { color: var(--oro-claro); font-style: italic; }
.cnv-hero-sub {
  font-family: var(--f-display); font-style: italic;
  font-size: clamp(.95rem, 1.5vw, 1.25rem); color: var(--oro-claro);
  margin-bottom: 14px !important; opacity: .9;
  animation: entrar .7s .3s var(--ease) both;
}
.cnv-hero-cta-text {
  font-size: clamp(.82rem, 1.1vw, .97rem) !important;
  color: rgba(255,255,255,.72) !important; line-height: 1.7 !important;
  max-width: 420px; margin-bottom: 28px !important;
  border-left: 2px solid var(--oro); padding-left: 14px;
  animation: entrar .7s .38s var(--ease) both;
}
.cnv-hero-cta-text strong { color: var(--oro-claro); }
.cnv-btn-dorado {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--oro), var(--oro-claro));
  color: var(--verde-noche); font-family: var(--f-body); font-weight: 700;
  font-size: .95rem; padding: 13px 28px; border-radius: 50px; border: none;
  cursor: pointer; text-decoration: none;
  transition: background .3s, transform .3s, box-shadow .3s;
  box-shadow: 0 8px 30px rgba(201,148,58,.45);
  animation: entrar .7s .45s var(--ease) both;
}
.cnv-btn-dorado:hover {
  background: linear-gradient(135deg, var(--oro-claro), var(--oro));
  transform: translateY(-4px); box-shadow: 0 18px 50px rgba(201,148,58,.60);
  will-change: transform;
}
.cnv-scroll-hint {
  position: absolute; bottom: 30px; right: 7vw; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.45); font-size: .65rem;
  letter-spacing: 2.5px; text-transform: uppercase;
  animation: entrar 1s .9s var(--ease) both;
}
.cnv-scroll-hint::after {
  content: ''; width: 1px; height: 55px;
  background: linear-gradient(to bottom, rgba(255,255,255,.45), transparent);
  animation: lineDown 1.8s ease-in-out infinite;
}
@keyframes lineDown {
  0%,100% { transform: scaleY(1);  transform-origin: top; }
  50%     { transform: scaleY(.4); transform-origin: bottom; }
}
@keyframes entrar {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cnv-sep-ramas {
  position: relative;
  z-index: 50;
  width: 100%;
  /* Altura generosa para que no se recorte ni arriba ni abajo */
  height: calc(var(--rama-h) * 1.3);
  /* Los márgenes negativos controlan cuánto se solapa con las secciones */
  margin-top:    calc(var(--rama-h) * -0.55);
  margin-bottom: calc(var(--rama-h) * -0.55);
  pointer-events: none;
  background-image: var(--ramas-url);
  background-repeat: repeat-x;
  background-size: var(--rama-size) auto;
  /* "top" garantiza que la punta superior de las ramas nunca se recorte */
  background-position: center top;
}
.cnv-sep-ramas--inv { transform: scaleY(-1); }

/* ══════════════════════════════════════════════════════
   3. MISIÓN
   • Rama superior (--top) cae desde aquí hacia el hero
   • Padding top alto para dar espacio a la rama
══════════════════════════════════════════════════════ */
.cnv-mision {
  background: linear-gradient(160deg, var(--verde-bosque) 0%, var(--verde-noche) 100%);
  padding: 110px 7vw 80px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 50px;

}
.cnv-mision::after {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(to bottom, var(--oro), var(--rojo-vivo), var(--oro));
  z-index: 2; pointer-events: none;
}
.cnv-label {
  display: block; font-size: .68rem; font-weight: 700;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--oro); margin-bottom: 12px;
}
.cnv-mision-texto { flex: 1; max-width: 640px; }
.cnv-mision-texto h2 {
  font-family: var(--f-display); font-size: clamp(1.7rem, 3.5vw, 3rem);
  font-weight: 600; color: var(--blanco); line-height: 1.15; margin-bottom: 18px;
}
.cnv-mision-texto p { color: rgba(255,255,255,.72); font-size: 1rem; line-height: 1.8; }
.cnv-mision-stats { display: flex; gap: 40px; flex-shrink: 0; }
.cnv-stat {
  text-align: center; padding: 24px 20px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(201,148,58,.25);
  border-radius: var(--r-md); backdrop-filter: blur(6px);
  transition: transform .3s var(--ease), border-color .3s;
}
.cnv-stat:hover { transform: translateY(-6px); border-color: rgba(201,148,58,.55); }
.cnv-stat-num {
  display: block; font-family: var(--f-display);
  font-size: clamp(3rem, 5vw, 4.8rem); font-weight: 700;
  color: var(--oro-claro); line-height: 1;
}
.cnv-stat-desc {
  display: block; font-size: .78rem; color: rgba(255,255,255,.55);
  letter-spacing: 1.5px; text-transform: uppercase; margin-top: 8px;
}

/* ══════════════════════════════════════════════════════
   4. SOBRE LA CAMPAÑA
══════════════════════════════════════════════════════ */
.cnv-sobre {
  padding: 130px 7vw 130px;
  background: var(--crema);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 90px; align-items: stretch;
  content-visibility: auto;
  contain-intrinsic-size: 0 700px;
}
.cnv-sobre-texto .cnv-label { color: var(--rojo-vivo); }
.cnv-sobre-texto h2 {
  font-family: var(--f-display); font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  font-weight: 700; color: var(--verde-noche); line-height: 1.12; margin-bottom: 26px;
}
.cnv-sobre-texto h2 em { font-style: italic; color: var(--rojo-vivo); }
.cnv-sobre-texto p { color: var(--texto-medio); font-size: 1rem; line-height: 1.82; margin-bottom: 16px; }
.cnv-sobre-texto p strong { color: var(--verde-bosque); }
.cnv-sobre-texto p em     { color: var(--rojo-vivo); font-style: italic; }
.cnv-sobre-intro {
  display: inline-block;
  background: linear-gradient(135deg, var(--rojo-vivo), var(--rojo-claro));
  color: var(--blanco) !important; font-size: .72rem !important; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 50px;
  margin-bottom: 20px !important; box-shadow: 0 4px 16px rgba(192,57,43,.30);
}
.cnv-sobre-intro strong { color: var(--blanco) !important; }
.cnv-sobre-video { position: relative; display: flex; flex-direction: column; }
.cnv-sobre-video video {
  width: 100%; height: 100%; min-height: 380px;
  border-radius: var(--r-lg); box-shadow: var(--sombra-l); display: block; object-fit: cover;
}
.cnv-sobre-video::before {
  content: ''; position: absolute; inset: -10px;
  border: 1.5px solid var(--oro); border-radius: calc(var(--r-lg) + 10px);
  opacity: .45; pointer-events: none;
}
.cnv-sobre-video::after {
  display: none;
  content: '✦'; position: absolute; top: -18px; right: -14px;
  font-size: 1.8rem; color: var(--oro); opacity: .7;
}

/* ══════════════════════════════════════════════════════
   5. NOCHE DE PINOS
══════════════════════════════════════════════════════ */
.cnv-campanas-recientes {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-content: center;
}
.cnv-campanas-recientes::before {
  content: ''; position: absolute; inset: -10px;
  border: 1.5px solid var(--oro); border-radius: calc(var(--r-lg) + 10px);
  opacity: .45; pointer-events: none;
}
.cnv-campanas-recientes::after { display: none; }
.cnv-campana-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  min-height: 250px;
  box-shadow: var(--sombra-l);
  background: var(--verde-noche);
}
.cnv-campana-card img,
.cnv-campana-card video {
  width: 100%;
  height: 100%;
  min-height: 250px;
  display: block;
  object-fit: cover;
  transition: transform .45s ease;
}
.cnv-campana-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,18,10,.88) 0%, rgba(6,18,10,.54) 38%, rgba(6,18,10,0) 72%);
  pointer-events: none;
}
.cnv-campana-card video {
  object-fit: contain;
  background: #050f08;
}
.cnv-campana-card:hover img { transform: scale(1.04); }
.cnv-campana-card--playing::after,
.cnv-campana-card--playing .cnv-campana-card-body {
  opacity: 0;
  visibility: hidden;
}
.cnv-campana-card-body {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 1;
  padding: 22px 24px;
  color: var(--blanco);
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}
.cnv-campana-card-body span {
  display: inline-flex;
  align-items: center;
  background: var(--rojo-vivo);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 10px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.cnv-campana-card-body h3 {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.12;
  color: var(--blanco);
}

.cnv-noche {
  background: linear-gradient(175deg, var(--verde-bosque) 0%, var(--verde-noche) 60%, #050f08 100%);
  min-height: 700px;
  content-visibility: auto;
  contain-intrinsic-size: 0 700px;
}
.cnv-noche::before {
  content: ''; position: absolute; top: 10%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(29,74,40,.60) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}
.cnv-noche-luna {
  position: absolute; top: 80px; right: 8%;
  width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle at 38% 38%,
    #fdf6eb 0%, #e8c06a 45%, rgba(201,148,58,.2) 70%, transparent 100%);
  box-shadow: 0 0 30px rgba(232,192,106,.30), 0 0 100px rgba(232,192,106,.12);
  z-index: 1; pointer-events: none; animation: lunaGlow 4s ease-in-out infinite;
}
@keyframes lunaGlow {
  0%,100% { box-shadow: 0 0 30px rgba(232,192,106,.30), 0 0 100px rgba(232,192,106,.12); }
  50%     { box-shadow: 0 0 50px rgba(232,192,106,.50), 0 0 140px rgba(232,192,106,.22); }
}
.cnv-noche-nieve {
  position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden;
}
.cnv-noche-nieve i {
  position: absolute; top: -8px; border-radius: 50%;
  background: rgba(255,255,255,.85); animation: nevarN linear infinite;
}
@keyframes nevarN {
  0%   { transform: translateY(0)    translateX(0);    opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { transform: translateY(100vh) translateX(22px); opacity: 0; }
}
.cnv-noche-layout {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; min-height: 700px;
}
.cnv-noche-col-arbol {
  display: flex; align-items: flex-end;
  justify-content: center; height: 100%; padding-top: 40px;
  overflow: hidden;   /* evita que el árbol se derrame fuera de su columna */
}
.cnv-arbol-principal {
  display: block; width: clamp(320px, 52vw, 700px); height: auto;
  max-height: 100%;   /* nunca supera la altura de su contenedor */
  object-fit: contain; mix-blend-mode: screen;
  filter: drop-shadow(0 0 50px rgba(60,200,60,.30)); align-self: flex-end;
  flex-shrink: 0;
}
.cnv-noche-col-carta {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 80px 7vw 60px 40px; text-align: left;
}
.cnv-noche-eyebrow {
  display: inline-block; font-family: var(--f-body);
  font-size: .62rem; font-weight: 700; letter-spacing: 6px; text-transform: uppercase;
  color: var(--oro); opacity: .75; margin-bottom: 20px;
}
.cnv-noche-col-carta .cnv-noche-h {
  font-family: var(--f-display); font-size: clamp(2.6rem, 5.5vw, 6rem);
  font-weight: 700; color: var(--blanco); line-height: .92; letter-spacing: -2px; margin: 0 0 12px;
}
.cnv-noche-col-carta .cnv-noche-h em {
  font-style: italic; color: var(--oro-claro); display: block;
  text-shadow: 0 0 100px rgba(232,192,106,.35);
}
.cnv-carta-sep {
  display: flex; align-items: center; gap: 14px;
  width: 100%; max-width: 340px; margin: 0 0 26px;
}
.cnv-carta-sep span:not(.cnv-carta-sep-icono) {
  flex: 1; height: 1px; background: linear-gradient(90deg, rgba(201,148,58,.5), transparent);
}
.cnv-carta-sep span:last-child {
  background: linear-gradient(90deg, transparent, rgba(201,148,58,.5));
}
.cnv-carta-sep-icono {
  color: var(--oro); font-size: .9rem; animation: girarE 10s linear infinite;
  flex: none !important; height: auto !important; background: none !important;
}
.cnv-carta-mensaje {
  font-family: var(--f-display); font-size: clamp(1rem, 1.6vw, 1.45rem);
  color: rgba(255,255,255,.82); line-height: 1.85;
  max-width: 520px; margin-bottom: 18px; letter-spacing: .2px;
}
.cnv-carta-mensaje strong { color: var(--oro-claro); font-weight: 700; }
.cnv-carta-mensaje em { color: var(--oro-claro); font-style: italic; display: block; margin-top: 10px; }
.cnv-carta-firma {
  font-family: var(--f-body); font-size: .7rem; font-weight: 700;
  letter-spacing: 4px; text-transform: uppercase; color: var(--oro); opacity: .7; margin-bottom: 32px;
}
.cnv-regalos { width: 100%; display: flex; align-items: flex-end; }
.cnv-regalos-img {
  width: clamp(180px, 32vw, 460px); height: auto;
  mix-blend-mode: screen; filter: drop-shadow(0 4px 24px rgba(0,0,0,.45));
}
.cnv-noche-luces {
  position: absolute; bottom: 0; left: 0;
  width: 100%; height: 300px; z-index: 4; pointer-events: none; overflow: hidden;
}
.cnv-noche-luces span { position: absolute; border-radius: 50%; animation: luzParpadeo ease-in-out infinite; }
@keyframes luzParpadeo {
  0%,100% { opacity: 1;   transform: scale(1); }
  50%     { opacity: .25; transform: scale(.6); }
}
.cnv-noche-nieve-suelo {
  position: absolute; bottom: 0; left: 0; width: 100%; height: 55px;
  background: linear-gradient(to top, rgba(220,235,225,.18) 0%, transparent 100%);
  z-index: 5; pointer-events: none;
}
@keyframes girarE {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ══════════════════════════════════════════════════════
   6. CÓMO PARTICIPAR
══════════════════════════════════════════════════════ */
.cnv-participa {
  padding: 140px 7vw 110px;
  background: linear-gradient(160deg, var(--crema) 0%, var(--crema-oscura) 100%);
}
.cnv-participa-header { max-width: 580px; margin: 0 auto 56px; text-align: center; }
.cnv-participa-header .cnv-label { color: var(--rojo-vivo); }
.cnv-participa-header h2 {
  font-family: var(--f-display); font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  font-weight: 700; color: var(--verde-noche); line-height: 1.12;
}
.cnv-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cnv-card {
  background: var(--blanco); border-radius: var(--r-md);
  overflow: hidden; box-shadow: var(--sombra-s);
  display: flex; flex-direction: column;
  border: 1px solid rgba(201,148,58,.12);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.cnv-card:hover { transform: translateY(-12px); box-shadow: var(--sombra-m); will-change: transform; }
.cnv-card-img { overflow: hidden; position: relative; }
.cnv-card-img img {
  width: 100%; height: 240px; object-fit: cover;
  transition: transform .5s var(--ease);
}
.cnv-card:hover .cnv-card-img img { transform: scale(1.07); }
.cnv-card-img::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--rojo-vivo), var(--oro), var(--verde-claro));
}
.cnv-card-num {
  position: absolute; top: 14px; left: 14px;
  background: linear-gradient(135deg, var(--verde-noche), var(--verde-medio));
  color: var(--oro-claro); font-family: var(--f-display); font-size: 1rem; font-weight: 700;
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.35); border: 1px solid rgba(201,148,58,.30);
}
.cnv-card-body { padding: 28px 30px 34px; flex: 1; }
.cnv-card-body h3 {
  font-family: var(--f-display); font-size: 1.45rem; font-weight: 700;
  color: var(--verde-noche); line-height: 1.2; margin-bottom: 12px;
}
.cnv-card-body p { font-size: .95rem; line-height: 1.72; color: var(--texto-medio); }

/* ══════════════════════════════════════════════════════
   7. GALERÍA
══════════════════════════════════════════════════════ */
.cnv-galeria {
  padding: 140px 7vw 100px;
  background: linear-gradient(160deg, var(--verde-bosque) 0%, var(--verde-noche) 100%);
}
.cnv-galeria-header { text-align: center; margin-bottom: 50px; }
.cnv-galeria-header .cnv-label { color: var(--oro); }
.cnv-galeria-header h2 {
  font-family: var(--f-display); font-size: clamp(1.7rem, 3.5vw, 2.8rem);
  color: var(--blanco); font-weight: 600;
}
.cnv-galeria-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 280px 280px; gap: 14px;
}
.cnv-galeria-item {
  overflow: hidden; border-radius: var(--r-md); position: relative;
  border: 2px solid transparent; transition: border-color .35s;
}
.cnv-galeria-item:hover { border-color: rgba(201,148,58,.40); }
.cnv-galeria-item img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease);
}
.cnv-galeria-item:hover img { transform: scale(1.06); will-change: transform; }
.cnv-galeria-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,26,13,.60), transparent 50%);
  opacity: 0; transition: opacity .35s;
}
.cnv-galeria-item:hover::after { opacity: 1; }
.cnv-galeria-item:first-child { grid-row: span 2; }

/* ══════════════════════════════════════════════════════
   8. CTA
══════════════════════════════════════════════════════ */
.cnv-cta {
  background: linear-gradient(135deg, #5a0000 0%, #8b0c0c 40%, #a31515 75%, #7a0808 100%);
  padding: 140px 7vw 110px;
}
.cnv-cta::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 14% 24%, rgba(255,255,255,.16) 0%, transparent 100%),
    radial-gradient(1px 1px at 74% 66%, rgba(255,255,255,.13) 0%, transparent 100%),
    radial-gradient(2px 2px at 44% 82%, rgba(255,255,255,.10) 0%, transparent 100%),
    radial-gradient(1px 1px at 90%  8%, rgba(255,255,255,.18) 0%, transparent 100%);
  background-size: 380px 380px; pointer-events: none;
}
.cnv-cta::after {
  content: ''; position: absolute; top: -220px; right: -180px;
  width: 580px; height: 580px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,148,58,.18), transparent 65%); pointer-events: none;
}
.cnv-cta-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.cnv-cta-left .cnv-label { color: rgba(232,192,106,.80); }
.cnv-cta-left h2 {
  font-family: var(--f-display); font-size: clamp(2rem, 4.5vw, 4.2rem);
  color: var(--blanco); font-weight: 700; line-height: 1.08; margin-bottom: 20px;
}
.cnv-cta-left h2 em { font-style: italic; color: var(--oro-claro); }
.cnv-cta-left p { color: rgba(255,255,255,.78); font-size: 1.05rem; line-height: 1.78; margin-bottom: 36px; }
.cnv-cta-box {
  background: rgba(255,255,255,.12); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.22); border-radius: var(--r-lg);
  padding: 44px 42px; box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.cnv-cta-box h3 {
  font-family: var(--f-display); font-size: 1.7rem; color: var(--oro-claro);
  font-weight: 600; margin-bottom: 28px; padding-bottom: 16px;
  border-bottom: 1px solid rgba(201,148,58,.30);
}
.cnv-cta-dato { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.cnv-cta-dato-icon { font-size: 1.15rem; margin-top: 2px; flex-shrink: 0; }
.cnv-cta-dato-info strong {
  display: block; color: var(--oro-claro); font-size: .72rem;
  letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 3px;
}
.cnv-cta-dato-info span,
.cnv-cta-dato-info a { color: rgba(255,255,255,.85); font-size: .97rem; line-height: 1.6; text-decoration: none; }
.cnv-cta-dato-info a:hover { color: var(--oro-claro); text-decoration: underline; }

/* ══════════════════════════════════════════════════════
   REVEAL
══════════════════════════════════════════════════════ */
.cnv-reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.cnv-reveal.visible  { opacity: 1; transform: translateY(0); }
.cnv-reveal-d1 { transition-delay: .12s; }
.cnv-reveal-d2 { transition-delay: .26s; }
.cnv-reveal-d3 { transition-delay: .40s; }

/* ══════════════════════════════════════════════════════
   RESPONSIVE — hasta 320px
   --rama-h y --rama-size se reducen progresivamente
══════════════════════════════════════════════════════ */
@media (min-width: 1025px) {
  .cnv-sobre {
    align-items: center;
  }
  .cnv-sobre-video {
    align-self: center;
    width: 100%;
  }
  .cnv-sobre-video video {
    object-fit: contain;
    width: 100%;
    height: 438px;
    min-height: unset;
    background: #000;
  }
}

@media (max-width: 1024px) {
  .cnv-mision { gap: 36px; }
  .cnv-mision-stats { gap: 24px; }
  .cnv-cta-inner { gap: 50px; }
}

@media (max-width: 960px) {
  :root { --rama-h: 130px; --rama-size: 400px; }
  .cnv-sobre        { grid-template-columns: 1fr; gap: 50px; padding: 140px 6vw 130px; }
  .cnv-sobre-video video { min-height: 260px; }
  .cnv-campanas-recientes { max-width: 720px; width: 100%; justify-self: center; }
  .cnv-mision       { flex-direction: column; padding: 150px 6vw 80px; }
  .cnv-mision-stats { justify-content: center; gap: 20px; }
  .cnv-stat         { padding: 18px 16px; min-width: 120px; }
  .cnv-cta-inner    { grid-template-columns: 1fr; gap: 40px; }
  .cnv-cta          { padding: 150px 6vw 100px; }
  .cnv-cards-grid   { grid-template-columns: 1fr 1fr; }
  .cnv-noche-layout { grid-template-columns: 1fr; min-height: auto; }
  .cnv-noche-col-arbol { justify-content: center; padding-top: 60px; height: 280px; overflow: hidden; }
  .cnv-arbol-principal { width: clamp(200px, 55vw, 360px); max-height: 260px; }
  .cnv-noche-col-carta { align-items: center; text-align: center; padding: 30px 6vw 100px; }
  .cnv-carta-sep    { margin: 0 auto 26px; }
  .cnv-carta-mensaje { max-width: 100%; }
  .cnv-regalos      { justify-content: center; }
  .cnv-galeria      { padding: 150px 6vw 100px; }
  .cnv-galeria-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 220px 220px; }
  .cnv-galeria-item:first-child { grid-row: auto; }
  .cnv-participa    { padding: 150px 6vw 100px; }
}

@media (max-width: 680px) {
  :root { --rama-h: 110px; --rama-size: 340px; }
  .cnv-hero-content { padding: 0 5vw; }
  .cnv-hero-content h1 { font-size: clamp(1.8rem, 5.5vw, 2.6rem); }
  .cnv-scroll-hint  { display: none; }
  .cnv-mision       { padding: 140px 5vw 70px; gap: 30px; }
  .cnv-mision-stats { flex-wrap: wrap; justify-content: center; gap: 14px; }
  .cnv-stat         { min-width: 110px; padding: 14px 12px; }
  .cnv-stat-num     { font-size: 2.8rem; }
  .cnv-sobre        { padding: 130px 5vw 130px; gap: 36px; }
  .cnv-sobre-video video { min-height: 220px; }
  .cnv-campana-card,
  .cnv-campana-card img,
  .cnv-campana-card video { min-height: 220px; }
  .cnv-participa    { padding: 140px 5vw 80px; }
  .cnv-cards-grid   { grid-template-columns: 1fr; gap: 20px; }
  .cnv-card-img img { height: 200px; }
  .cnv-galeria      { padding: 140px 5vw 80px; }
  .cnv-galeria-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 170px 170px 170px; gap: 10px; }
  .cnv-noche-col-arbol { height: 220px; padding-top: 20px; overflow: hidden; }
  .cnv-arbol-principal { width: clamp(160px, 55vw, 280px); max-height: 200px; }
  .cnv-regalos-img  { width: 55vw; }
  .cnv-noche-luna   { width: 60px; height: 60px; top: 50px; right: 5%; }
  .cnv-noche-col-carta { padding: 24px 5vw 100px; }
  .cnv-noche-col-carta .cnv-noche-h { font-size: clamp(2.2rem, 8vw, 3.5rem); letter-spacing: -1px; }
  .cnv-cta          { padding: 140px 5vw 90px; }
  .cnv-cta-box      { padding: 28px 22px; }
}

@media (max-width: 480px) {
  :root { --rama-h: 90px; --rama-size: 280px; }
  .cnv-hero         { min-height: 520px; }
  .cnv-hero-content h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .cnv-hero-sub     { font-size: .88rem; }
  .cnv-hero-cta-text { font-size: .82rem !important; max-width: 100%; }
  .cnv-btn-dorado   { font-size: .9rem; padding: 13px 26px; }
  .cnv-mision       { padding: 120px 5vw 60px; }
  .cnv-sobre        { padding: 120px 5vw 120px; }
  .cnv-participa    { padding: 120px 5vw 70px; }
  .cnv-galeria      { padding: 120px 5vw 70px; }
  .cnv-galeria-grid { grid-template-columns: 1fr; grid-template-rows: repeat(5, 180px); }
  .cnv-galeria-item:first-child { grid-row: auto; }
  .cnv-noche-col-arbol  { height: 190px; padding-top: 16px; overflow: hidden; }
  .cnv-arbol-principal  { width: clamp(140px, 50vw, 240px); max-height: 175px; }
  .cnv-regalos-img      { width: 48vw; }
  .cnv-noche-col-carta  { padding-bottom: 80px; }
  .cnv-cta          { padding: 120px 5vw 80px; }
  .cnv-cta-box h3   { font-size: 1.4rem; }
}

@media (max-width: 375px) {
  :root { --rama-h: 80px; --rama-size: 240px; }
  .cnv-hero-content { padding: 0 4vw; }
  .cnv-hero-content h1 { font-size: 1.55rem; }
  .cnv-btn-dorado   { font-size: .85rem; padding: 12px 22px; }
  .cnv-mision       { padding: 110px 4vw 55px; }
  .cnv-mision-texto h2 { font-size: 1.5rem; }
  .cnv-stat-num     { font-size: 2.4rem; }
  .cnv-mision-stats { gap: 10px; }
  .cnv-stat         { min-width: 95px; padding: 12px 10px; }
  .cnv-sobre        { padding: 110px 4vw 110px; }
  .cnv-sobre-texto h2 { font-size: 1.65rem; }
  .cnv-sobre-video video { min-height: 190px; }
  .cnv-sobre-video::after { display: none; }
  .cnv-campana-card,
  .cnv-campana-card img,
  .cnv-campana-card video { min-height: 190px; }
  .cnv-campanas-recientes::after { display: none; }
  .cnv-participa    { padding: 110px 4vw 70px; }
  .cnv-participa-header h2 { font-size: 1.65rem; }
  .cnv-card-body h3 { font-size: 1.25rem; }
  .cnv-noche-col-arbol { height: 170px; padding-top: 12px; overflow: hidden; }
  .cnv-arbol-principal { width: clamp(120px, 48vw, 210px); max-height: 155px; }
  .cnv-noche-col-carta .cnv-noche-h { font-size: 2rem; }
  .cnv-carta-mensaje { font-size: 1rem; }
  .cnv-regalos-img  { width: 72vw; }
  .cnv-noche-luna   { width: 44px; height: 44px; }
  .cnv-galeria      { padding: 110px 4vw 80px; }
  .cnv-galeria-grid { grid-template-rows: repeat(5, 155px); gap: 8px; }
  .cnv-galeria-header h2 { font-size: 1.5rem; }
  .cnv-cta          { padding: 110px 4vw 80px; }
  .cnv-cta-left h2  { font-size: 1.8rem; }
  .cnv-cta-box      { padding: 22px 18px; }
  .cnv-cta-box h3   { font-size: 1.25rem; }
}

@media (max-width: 320px) {
  :root { --r-md: 10px; --r-lg: 14px; --rama-h: 65px; --rama-size: 200px; }
  .cnv-hero-content { padding: 0 4vw; }
  .cnv-hero-content h1 { font-size: 1.35rem; }
  .cnv-hero-sub     { font-size: .88rem; }
  .cnv-hero-cta-text { padding-left: 10px; font-size: .78rem !important; }
  .cnv-btn-dorado   { font-size: .82rem; padding: 11px 18px; }
  .cnv-mision       { padding: 95px 4vw 50px; }
  .cnv-mision-texto h2 { font-size: 1.35rem; }
  .cnv-mision-stats { flex-direction: column; align-items: center; }
  .cnv-stat         { width: 100%; max-width: 200px; }
  .cnv-stat-num     { font-size: 2.2rem; }
  .cnv-sobre        { padding: 95px 4vw 95px; }
  .cnv-sobre-texto h2 { font-size: 1.5rem; }
  .cnv-sobre-video video { min-height: 170px; }
  .cnv-campana-card,
  .cnv-campana-card img,
  .cnv-campana-card video { min-height: 170px; }
  .cnv-campana-card-body { padding: 18px 16px; }
  .cnv-participa    { padding: 95px 4vw 60px; }
  .cnv-participa-header h2 { font-size: 1.5rem; }
  .cnv-card-img img { height: 160px; }
  .cnv-card-body    { padding: 18px 16px 22px; }
  .cnv-card-body h3 { font-size: 1.1rem; }
  .cnv-noche-col-arbol { height: 150px; padding-top: 10px; overflow: hidden; }
  .cnv-arbol-principal { width: clamp(110px, 44vw, 180px); max-height: 135px; }
  .cnv-noche-col-carta .cnv-noche-h { font-size: 1.75rem; }
  .cnv-carta-mensaje { font-size: .92rem; }
  .cnv-regalos-img  { width: 78vw; }
  .cnv-noche-luna   { width: 36px; height: 36px; top: 14px; }
  .cnv-galeria      { padding: 95px 4vw 70px; }
  .cnv-galeria-grid { grid-template-rows: repeat(5, 130px); gap: 7px; }
  .cnv-galeria-header h2 { font-size: 1.35rem; }
  .cnv-cta          { padding: 95px 4vw 70px; }
  .cnv-cta-left h2  { font-size: 1.6rem; }
  .cnv-cta-box      { padding: 18px 14px; }
  .cnv-cta-box h3   { font-size: 1.15rem; margin-bottom: 16px; }
  .cnv-cta-dato-info span,
  .cnv-cta-dato-info a { font-size: .78rem; }
  .cnv-label        { font-size: .60rem; letter-spacing: 3px; }
}

/* ══════════════════════════════════════════════════════
   ACCESIBILIDAD — respetar prefers-reduced-motion
   Desactiva animaciones decorativas, mantiene transiciones
   de UI que dan feedback al usuario (hover, reveal)
══════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .cnv-hero::before           { animation: none; }
  .cnv-eyebrow,
  .cnv-hero-content h1,
  .cnv-hero-sub,
  .cnv-hero-cta-text,
  .cnv-btn-dorado             { animation: none; opacity: 1; transform: none; }
  .cnv-noche-nieve i          { animation: none; display: none; }
  .cnv-noche-luces span       { animation: none; opacity: .8; }
  .cnv-noche-luna             { animation: none; }
  .cnv-carta-sep-icono        { animation: none; }
  .cnv-scroll-hint::after     { animation: none; }
  .cnv-reveal                 { opacity: 1; transform: none; transition: none; }
}



/* Párrafos justificados */
.cnv-mision-texto p,
.cnv-sobre-texto p,
.cnv-card-body p,
.cnv-carta-mensaje,
.cnv-cta-left p {
  text-align: justify;
}