/* ============================================================================
   FUNDACIÓN DESCUBRIR COLOMBIA — Sistema de diseño
   Paleta 100% colombiana: selva, mar Caribe/Pacífico, oro cálido, tierra/café.
   Tipografía: Fraunces (display cálido) + Nunito Sans (texto humano y legible).
   Todo hecho a medida — sin plantillas genéricas.
   ========================================================================== */

/* ---------- Tokens de marca ---------- */
:root {
  /* Paleta tomada del LOGO OFICIAL: verde bosque + corazón de la bandera (amarillo/azul/rojo) */
  --color-primary:        #0E5A34;  /* Verde bandera / logo */
  --color-primary-dark:   #073D23;
  --color-primary-soft:   #E4F0E9;
  --color-secondary:      #003893;  /* Azul de la bandera de Colombia */
  --color-secondary-dark: #002A6E;
  --color-accent:         #FCD116;  /* Amarillo de la bandera — CTA */
  --color-accent-dark:    #E0B400;
  --color-red:            #CE1126;  /* Rojo de la bandera / corazón */
  --color-terracotta:     #CE1126;  /* alias (compatibilidad) */
  --color-coffee:         #14532D;  /* Verde profundo laurel */

  --color-cream:          #F7FAF7;  /* Fondo claro y limpio (como el logo) */
  --color-cream-2:        #EDF3EE;
  --color-ink:            #14261B;  /* Texto principal (verde muy oscuro) */
  --color-ink-soft:       #47584E;
  --color-surface:        #FFFFFF;
  --color-border:         #DCE6DE;
  --color-danger:         #C0392B;

  /* Semánticos */
  --bg:            var(--color-cream);
  --bg-alt:        var(--color-cream-2);
  --surface:       var(--color-surface);
  --text:          var(--color-ink);
  --text-soft:     var(--color-ink-soft);
  --border:        var(--color-border);
  --primary:       var(--color-primary);
  --on-primary:    #FFFFFF;
  --accent:        var(--color-accent);
  --on-accent:     #2A1E05;

  /* Tipografía */
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Escala tipográfica fluida */
  --step--1: clamp(0.83rem, 0.78rem + 0.2vw, 0.94rem);
  --step-0:  clamp(1rem, 0.95rem + 0.25vw, 1.13rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3:  clamp(1.9rem, 1.5rem + 1.8vw, 3rem);
  --step-4:  clamp(2.4rem, 1.8rem + 3vw, 4.2rem);
  --step-5:  clamp(3rem, 2rem + 5vw, 6rem);

  /* Espacio (ritmo 8px) */
  --space-1: 0.5rem;  --space-2: 1rem;   --space-3: 1.5rem;
  --space-4: 2rem;    --space-5: 3rem;   --space-6: 4rem;
  --space-7: 6rem;    --space-8: 8rem;

  --radius-sm: 8px;   --radius: 16px;   --radius-lg: 28px;  --radius-pill: 999px;
  --shadow-sm: 0 1px 3px rgba(34,48,30,.08);
  --shadow: 0 12px 30px -12px rgba(34,48,30,.22);
  --shadow-lg: 0 30px 60px -20px rgba(18,74,52,.35);

  --maxw: 1200px;
  --nav-h: 74px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Dark mode ---------- */
:root[data-theme="dark"] {
  --bg:        #0C1610;
  --bg-alt:    #122018;
  --surface:   #16241C;
  --text:      #EFF3EA;
  --text-soft: #B6C4B0;
  --border:    #263A2E;
  --primary:   #46B87E;
  --on-primary:#06130C;
  --color-primary-soft: #172C22;
  --accent:    #FCD116;
  --on-accent: #2A1E05;
  --color-secondary: #5B8DEF;
  --shadow: 0 12px 30px -12px rgba(0,0,0,.5);
  --shadow-lg: 0 30px 60px -20px rgba(0,0,0,.6);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; height: auto; }
/* Icono inline por defecto (evita que los SVG sin tamaño explícito se expandan) */
svg { width: 1.25em; height: 1.25em; flex: none; }
.eyebrow svg { width: 1.15em; height: 1.15em; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.08; font-weight: 600; letter-spacing: -.01em; color: var(--text); }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
p { max-width: 68ch; }
::selection { background: var(--accent); color: var(--on-accent); }

/* Foco accesible visible */
:focus-visible { outline: 3px solid var(--color-secondary); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 2000;
  background: var(--primary); color: var(--on-primary);
  padding: .75rem 1.25rem; border-radius: 0 0 var(--radius-sm) 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- Utilidades ---------- */
.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.container--narrow { max-width: 780px; }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); position: relative; }
.section--alt { background: var(--bg-alt); }
.section--primary { background: var(--color-primary-soft); }
.text-center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 800; font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--color-secondary);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); display: inline-block; }
.lead { font-size: var(--step-1); color: var(--text-soft); }
.section__head { max-width: 760px; margin-bottom: var(--space-5); }
.section__head.text-center { margin-inline: auto; }
.stack > * + * { margin-top: var(--space-3); }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--primary); --btn-fg: var(--on-primary);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 800; font-size: var(--step-0);
  padding: .85rem 1.6rem; min-height: 48px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 2px solid transparent; border-radius: var(--radius-pill);
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  box-shadow: var(--shadow-sm); text-align: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn--accent { --btn-bg: var(--accent); --btn-fg: var(--on-accent); }
.btn--secondary { --btn-bg: var(--color-secondary); --btn-fg: #fff; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--text); border-color: var(--border); box-shadow: none; }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--lg { font-size: var(--step-1); padding: 1.05rem 2rem; min-height: 56px; }
.btn--block { width: 100%; }
.btn svg { width: 20px; height: 20px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; gap: var(--space-3); height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--text); margin-right: auto; }
.brand { gap: 0; }
.brand__logo { width: 58px; height: 58px; border-radius: 50%; flex: none; background:#fff; object-fit: cover; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease); }
.brand:hover .brand__logo { transform: scale(1.05); }
.footer-brand .brand__logo { width: 72px; height: 72px; }
.brand small { display: block; font-family: var(--font-body); font-weight: 700; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--color-secondary); }
.nav__links { display: flex; align-items: center; gap: .3rem; }
.nav__links a {
  padding: .5rem .8rem; border-radius: var(--radius-pill); font-weight: 700; font-size: .95rem;
  color: var(--text-soft); transition: color .2s var(--ease), background .2s var(--ease); position: relative;
}
.nav__links a:hover { color: var(--text); background: var(--color-primary-soft); }
.nav__links a[aria-current="page"] { color: var(--primary); }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .15rem; height: 2px; background: var(--accent); border-radius: 2px;
}
.nav__actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn, .nav__toggle {
  width: 44px; height: 44px; display: inline-grid; place-items: center;
  background: transparent; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; color: var(--text);
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.icon-btn:hover, .nav__toggle:hover { background: var(--color-primary-soft); border-color: var(--primary); }
.icon-btn svg { width: 20px; height: 20px; }
.nav__toggle { display: none; }
.nav__toggle svg { width: 24px; height: 24px; }
/* El "Donar" dentro del menú solo se muestra en móvil (evita botón duplicado en escritorio) */
.nav__cta-mobile { display: none; }

@media (max-width: 940px) {
  .nav__cta-desktop { display: none; }
  .nav__cta-mobile { display: block; }
  .nav__toggle { display: inline-grid; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); padding: var(--space-2) var(--space-3) var(--space-3);
    transform: translateY(-115%); transition: transform .4s var(--ease); box-shadow: var(--shadow-lg);
    max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
  }
  .nav__links.is-open { transform: translateY(0); }
  /* Franja tricolor al pie del menú */
  .nav__links::after { content:""; display:block; height:4px; margin: var(--space-2) .5rem 0; border-radius: 3px;
    background: linear-gradient(90deg, var(--color-accent) 0 33.3%, var(--color-secondary) 33.3% 66.6%, var(--color-red) 66.6%); }
  .nav__links li { border-bottom: 1px solid var(--border); }
  .nav__links li.nav__cta-mobile { border-bottom: none; }
  .nav__links a {
    display: flex; align-items: center; gap: .7rem; position: relative;
    padding: 1rem .85rem; font-size: 1.1rem; font-weight: 700; color: var(--text);
    border-radius: var(--radius-sm); transition: background .2s var(--ease), color .2s var(--ease), padding-left .2s var(--ease);
  }
  .nav__links a::before { content:""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-border); flex: none; transition: background .2s var(--ease), transform .2s var(--ease); }
  .nav__links a:hover { background: var(--color-primary-soft); padding-left: 1.1rem; }
  .nav__links a:hover::before { background: var(--color-secondary); }
  .nav__links a[aria-current="page"] { color: var(--primary); background: var(--color-primary-soft); }
  .nav__links a[aria-current="page"]::before { background: var(--accent); transform: scale(1.25); }
  .nav__links a[aria-current="page"]::after { display: none; }
  .nav__links .nav__cta-mobile a::before { display: none; }
  .nav__links .btn { margin-top: var(--space-3); width: 100%; justify-content: center; font-size: 1.1rem; padding: 1rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(90vh, 780px); display: grid; align-items: center; overflow: hidden; padding-block: var(--space-6); }
.hero__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: linear-gradient(160deg, var(--color-primary-dark), var(--color-primary)); }
.hero__photo { position:absolute; inset:0; z-index:0; width:100%; height:100%; object-fit: cover; object-position: center 32%; }
/* Velo verde + bandera para legibilidad del texto sobre la foto (por encima de la imagen) */
.hero__bg::before { content:""; position:absolute; inset:0; z-index:1; background:
    linear-gradient(90deg, rgba(5,40,24,.975) 0%, rgba(5,40,24,.93) 46%, rgba(5,40,24,.66) 70%, rgba(0,34,90,.48) 100%),
    linear-gradient(180deg, rgba(5,34,22,.55) 0%, rgba(5,34,22,.28) 45%, rgba(5,34,22,.55) 100%); }
.hero__bg::after { content:""; position:absolute; inset:0; z-index:2; background-image: var(--topo); background-size: 900px; opacity: .18; mix-blend-mode: soft-light; }
/* Franja de la bandera en el borde inferior del hero */
.hero__flag { position:absolute; left:0; right:0; bottom:0; height:6px; z-index:-1;
  background: linear-gradient(90deg, var(--color-accent) 0 33.3%, var(--color-secondary) 33.3% 66.6%, var(--color-red) 66.6% 100%); }
.hero__inner { color: #fff; max-width: 780px; }
.hero .eyebrow { color: #FCE4A6; }
.hero .eyebrow::before { background: var(--accent); }
.hero h1 { color: #fff; font-size: var(--step-5); margin-bottom: var(--space-2); }
.hero h1 em { font-style: italic; color: var(--color-accent); }
.hero p { color: rgba(255,255,255,.9); font-size: var(--step-1); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.hero__stats { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-5); }
.hero__stats div { color: #fff; }
.hero__stats b { font-family: var(--font-display); font-size: var(--step-3); display: block; color: var(--color-accent); line-height: 1; }
.hero__stats span { font-size: var(--step--1); color: rgba(255,255,255,.82); text-transform: uppercase; letter-spacing: .1em; }
.hero__scroll { position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.8); font-size: var(--step--1); display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.hero__scroll span { width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.55); border-radius: 14px; position: relative; }
.hero__scroll span::before { content:""; position:absolute; top: 6px; left: 50%; width: 4px; height: 8px; background: #fff; border-radius: 2px; transform: translateX(-50%); animation: scrolldot 1.8s var(--ease) infinite; }
@keyframes scrolldot { 0%{opacity:0;transform:translate(-50%,0)} 40%{opacity:1} 80%{opacity:0;transform:translate(-50%,12px)} 100%{opacity:0} }

/* Page hero (interior pages) */
.page-hero { position: relative; padding-block: var(--space-7) var(--space-6); background:
    radial-gradient(90% 120% at 90% 0%, rgba(0,56,147,.28), transparent 60%),
    linear-gradient(150deg, var(--color-primary), var(--color-primary-dark)); color: #fff; overflow: hidden; }
.page-hero__flag { position:absolute; left:0; right:0; bottom:0; height:5px;
  background: linear-gradient(90deg, var(--color-accent) 0 33.3%, var(--color-secondary) 33.3% 66.6%, var(--color-red) 66.6% 100%); }
.page-hero::after { content:""; position:absolute; inset:0; background-image: var(--topo); background-size: 800px; opacity: .22; mix-blend-mode: soft-light; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.9); font-size: var(--step-1); }
.page-hero .eyebrow { color: #FCE4A6; }
.breadcrumb { font-size: var(--step--1); color: rgba(255,255,255,.8); margin-bottom: var(--space-3); display:flex; gap:.4rem; flex-wrap:wrap; }
.breadcrumb a:hover { color:#fff; text-decoration: underline; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: var(--space-3); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-4); box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.card__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--color-primary-soft); color: var(--primary); margin-bottom: var(--space-2); }
.card__icon svg { width: 28px; height: 28px; }
.card h3 { font-size: var(--step-1); margin-bottom: .4rem; }
.card p { color: var(--text-soft); font-size: var(--step-0); }
.card__tag { position: absolute; top: 1rem; right: 1rem; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: .25rem .6rem; border-radius: var(--radius-pill); background: var(--accent); color: var(--on-accent); }

/* Program cards with color accent */
.program { padding: 0; }
.program__media { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--c1,var(--primary)), var(--c2,var(--secondary))); position: relative; display:grid; place-items:center; color:#fff; }
.program__media svg { width: 64px; height: 64px; opacity:.9; }
.program__body { padding: var(--space-3) var(--space-4) var(--space-4); }
.program__body h3 { font-size: var(--step-1); }
.program__body p { color: var(--text-soft); }
.program__link { display:inline-flex; align-items:center; gap:.4rem; margin-top: var(--space-2); font-weight: 800; color: var(--primary); }
.program__link svg { width:18px;height:18px; transition: transform .2s var(--ease); }
.program:hover .program__link svg { transform: translateX(4px); }

/* ---------- Stats / counters ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: var(--space-3); }
.stat { text-align: center; padding: var(--space-3); }
.stat b { font-family: var(--font-display); font-size: var(--step-4); color: var(--primary); display:block; line-height:1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--text-soft); font-weight: 700; font-size: var(--step--1); text-transform: uppercase; letter-spacing:.08em; }

/* ---------- Split / feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.split--reverse .split__media { order: 2; }
@media (max-width: 820px){ .split { grid-template-columns: 1fr; } .split--reverse .split__media{ order:0; } }
.split__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }
.media-fill { width:100%; height:100%; object-fit: cover; }
/* Imagen real que cubre su contenedor (hero de tarjetas, media, galería) */
.img-cover { width:100%; height:100%; object-fit: cover; display:block; }
.program__media img.img-cover, .post__media img.img-cover { position:absolute; inset:0; }
.program__media { overflow:hidden; }
.program__media::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 40%, rgba(7,61,35,.55)); z-index:1; }
.program__media .card__tag, .program__media > svg { position:relative; z-index:2; }
.masonry figure img.img-cover { display:block; width:100%; height:auto; }

/* Placeholder de imagen (marcado claramente) */
.ph {
  width: 100%; height: 100%; min-height: 200px; display: grid; place-content: center; gap: .5rem; text-align:center;
  background:
    repeating-linear-gradient(45deg, color-mix(in srgb, var(--primary) 12%, var(--bg)) 0 12px, color-mix(in srgb, var(--primary) 6%, var(--bg)) 12px 24px);
  color: var(--primary); font-weight: 800; font-size: var(--step--1); letter-spacing: .05em; padding: 1rem;
  border: 2px dashed color-mix(in srgb, var(--primary) 45%, transparent);
}
.ph svg { width: 40px; height: 40px; margin-inline:auto; opacity:.7; }
.ph small { font-weight: 600; opacity:.75; }

/* ---------- Testimonials ---------- */
.quote { background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-4); box-shadow: var(--shadow-sm); }
.quote p { font-family: var(--font-display); font-size: var(--step-1); font-style: italic; }
.quote footer { margin-top: var(--space-2); display:flex; align-items:center; gap:.75rem; }
.quote .avatar { width:48px;height:48px;border-radius:50%; background: var(--color-secondary); color:#fff; display:grid;place-items:center; font-weight:800; flex:none; }
.quote cite { font-style: normal; font-weight: 800; display:block; }
.quote small { color: var(--text-soft); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display:grid; gap: var(--space-3); }
.step-item { display:flex; gap: var(--space-3); align-items:flex-start; }
.step-item::before { counter-increment: step; content: counter(step); flex:none; width:48px;height:48px;border-radius:50%; background: var(--accent); color: var(--on-accent); font-family: var(--font-display); font-weight:700; display:grid;place-items:center; font-size:1.3rem; }
.step-item h3 { font-size: var(--step-1); }
.step-item p { color: var(--text-soft); }

/* ---------- Gallery ---------- */
.filters { display:flex; flex-wrap:wrap; gap:.5rem; margin-bottom: var(--space-4); }
.filter { padding:.5rem 1.1rem; border-radius: var(--radius-pill); border:1px solid var(--border); background: var(--surface); font-weight:800; cursor:pointer; color: var(--text-soft); transition: all .2s var(--ease); }
.filter:hover { border-color: var(--primary); color: var(--primary); }
.filter.is-active { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.masonry { columns: 3 260px; column-gap: var(--space-3); }
.masonry figure { break-inside: avoid; margin-bottom: var(--space-3); border-radius: var(--radius); overflow:hidden; cursor: zoom-in; position: relative; box-shadow: var(--shadow-sm); }
.masonry figure .ph { min-height: 220px; }
.masonry figure:nth-child(3n) .ph { min-height: 300px; }
.masonry figure:nth-child(4n) .ph { min-height: 180px; }
.masonry figcaption { position:absolute; inset:auto 0 0 0; padding:.9rem; background: linear-gradient(transparent, rgba(18,74,52,.85)); color:#fff; font-weight:700; font-size:.9rem; opacity:0; transform: translateY(8px); transition: all .25s var(--ease); }
.masonry figure:hover figcaption { opacity:1; transform: translateY(0); }
@media (max-width:600px){ .masonry { columns: 2 140px; } }

/* Lightbox */
.lightbox { position: fixed; inset:0; z-index: 1500; background: rgba(10,20,14,.9); display:none; place-items:center; padding: var(--space-4); }
.lightbox.is-open { display:grid; }
.lightbox__content { max-width: 900px; width:100%; background: var(--surface); border-radius: var(--radius-lg); overflow:hidden; box-shadow: var(--shadow-lg); }
.lightbox__content .ph { min-height: 50vh; }
.lightbox__close { position:absolute; top:1.2rem; right:1.2rem; width:48px;height:48px; border-radius:50%; border:none; background:#fff; cursor:pointer; font-size:1.4rem; display:grid;place-items:center; }

/* ---------- Blog ---------- */
.post { background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-lg); overflow:hidden; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); display:flex; flex-direction:column; }
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post__media { aspect-ratio: 16/9; position: relative; overflow: hidden; background: var(--color-primary-soft); }
.post__body { padding: var(--space-3); display:flex; flex-direction:column; gap:.5rem; flex:1; }
.post__meta { font-size: var(--step--1); color: var(--color-secondary); font-weight:800; text-transform:uppercase; letter-spacing:.06em; }
.post h3 { font-size: var(--step-1); }
.post p { color: var(--text-soft); font-size: .95rem; }
.post__link { margin-top:auto; font-weight:800; color: var(--primary); display:inline-flex; gap:.35rem; align-items:center; }

/* ---------- Forms ---------- */
.form { display:grid; gap: var(--space-3); }
.field { display:grid; gap:.4rem; }
.field label { font-weight:800; font-size: .95rem; }
.field .req { color: var(--color-terracotta); }
.field input, .field select, .field textarea {
  font: inherit; padding:.85rem 1rem; min-height:48px; border-radius: var(--radius-sm);
  border:1px solid var(--border); background: var(--surface); color: var(--text); width:100%;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent); outline: none; }
.field .helper { font-size: var(--step--1); color: var(--text-soft); }
.field .error { font-size: var(--step--1); color: var(--color-danger); font-weight:700; display:none; }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: var(--color-danger); }
.field.is-invalid .error { display:block; }
.form__row { display:grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
@media (max-width:560px){ .form__row { grid-template-columns: 1fr; } }
.form-note { padding: var(--space-3); border-radius: var(--radius); background: var(--color-primary-soft); color: var(--primary); font-weight:700; display:none; align-items:center; gap:.6rem; }
.form-note.is-visible { display:flex; }

/* Donation amounts */
.amounts { display:grid; grid-template-columns: repeat(auto-fit,minmax(90px,1fr)); gap:.75rem; }
.amount { padding:1rem; border-radius: var(--radius); border:2px solid var(--border); background: var(--surface); cursor:pointer; text-align:center; font-family:var(--font-display); font-size: var(--step-1); font-weight:600; transition: all .2s var(--ease); }
.amount:hover { border-color: var(--primary); }
.amount.is-active { border-color: var(--primary); background: var(--color-primary-soft); color: var(--primary); }
.freq-toggle { display:inline-flex; background: var(--bg-alt); border-radius: var(--radius-pill); padding:.3rem; gap:.3rem; }
.freq-toggle button { border:none; background:transparent; padding:.55rem 1.4rem; border-radius: var(--radius-pill); font-weight:800; cursor:pointer; color: var(--text-soft); }
.freq-toggle button.is-active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }

/* ---------- Map (impacto/contacto) ---------- */
.map-card { border-radius: var(--radius-lg); overflow:hidden; border:1px solid var(--border); box-shadow: var(--shadow-sm); background: var(--surface); }
.map-embed { aspect-ratio: 16/10; width:100%; border:0; filter: saturate(1.05); }
.regions { display:grid; gap:.5rem; }
.region { display:flex; gap:.75rem; align-items:flex-start; padding:.75rem; border-radius: var(--radius); transition: background .2s var(--ease); }
.region:hover { background: var(--color-primary-soft); }
.region .dot { width:14px;height:14px;border-radius:50%; background: var(--accent); margin-top:.4rem; flex:none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent); }
.region b { display:block; }
.region small { color: var(--text-soft); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow:hidden; color:#fff; border-radius: var(--radius-lg); padding: clamp(2.5rem,6vw,4.5rem); text-align:center; background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%); box-shadow: var(--shadow); }
.cta-band::after { content:""; position:absolute; inset:0; background-image: var(--topo); background-size: 700px; opacity:.2; mix-blend-mode: soft-light; }
.cta-band h2 { color:#fff; position:relative; }
.cta-band p { color: rgba(255,255,255,.92); margin-inline:auto; position:relative; }
.cta-band .hero__actions { justify-content:center; position:relative; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-primary-dark); color: #DCE9E1; padding-block: var(--space-6) var(--space-3); position:relative; overflow:hidden; margin-top: var(--space-6); }
.site-footer::before { content:""; position:absolute; inset:0; background-image: var(--topo); background-size: 800px; opacity:.12; }
.footer-grid { display:grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--space-4); position:relative; }
@media (max-width:820px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width:520px){ .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color:#fff; font-family: var(--font-body); font-weight:800; font-size:.8rem; letter-spacing:.14em; text-transform:uppercase; margin-bottom: var(--space-2); }
.site-footer a { color:#C8DBCF; transition: color .2s var(--ease); }
.site-footer a:hover { color: var(--accent); }
.footer-links { display:grid; gap:.5rem; }
.footer-brand .brand { color:#fff; margin:0 0 var(--space-2); }
.footer-brand p { color:#B9CDBF; font-size:.95rem; }
.socials { display:flex; gap:.6rem; margin-top: var(--space-2); }
.socials a { width:44px;height:44px;border-radius:12px; display:grid;place-items:center; background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.12); }
.socials a:hover { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.socials svg { width:20px;height:20px; }
.newsletter input { background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.15); color:#fff; }
.newsletter input::placeholder { color:#9DB6A5; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.12); margin-top: var(--space-5); padding-top: var(--space-3); display:flex; flex-wrap:wrap; justify-content:space-between; gap:.5rem; font-size:.85rem; color:#A9C1AF; position:relative; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity:0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity:1; transform: none; }
.reveal[data-delay="1"]{ transition-delay:.08s; }
.reveal[data-delay="2"]{ transition-delay:.16s; }
.reveal[data-delay="3"]{ transition-delay:.24s; }
.reveal[data-delay="4"]{ transition-delay:.32s; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity:1 !important; transform:none !important; } }

/* Progress bar */
.scroll-progress { position: fixed; top:0; left:0; height:3px; background: linear-gradient(90deg, var(--accent), var(--color-terracotta)); width:0; z-index: 1200; }

/* Chips / values list */
.chips { display:flex; flex-wrap:wrap; gap:.6rem; }
.chip { padding:.5rem 1rem; border-radius: var(--radius-pill); background: var(--color-primary-soft); color: var(--primary); font-weight:800; font-size:.9rem; }
.value-list { display:grid; gap: var(--space-2); }
.value-list li { display:flex; gap:.75rem; align-items:flex-start; }
.value-list svg { width:24px;height:24px; color: var(--primary); flex:none; margin-top:.15rem; }
.value-list b { display:block; }
.value-list p { color: var(--text-soft); margin:0; }

/* Timeline */
.timeline { position: relative; padding-left: var(--space-4); }
.timeline::before { content:""; position:absolute; left:9px; top:6px; bottom:6px; width:2px; background: var(--border); }
.timeline li { position: relative; padding-bottom: var(--space-4); }
.timeline li::before { content:""; position:absolute; left:-30px; top:4px; width:20px;height:20px;border-radius:50%; background: var(--surface); border:3px solid var(--accent); }
.timeline b { font-family: var(--font-display); color: var(--primary); font-size: var(--step-1); }

/* i18n hidden helper */
[hidden]{ display:none !important; }

/* ============================================================================
   DC SPORT — landing de producto (negro / dorado)
   ========================================================================== */
:root { --gold: #C99A2E; --gold-2: #E7C15A; }
.text-gold { background: linear-gradient(90deg, var(--gold-2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.badge-gold { display:inline-flex; align-items:center; gap:.5rem; padding:.45rem 1rem; border:1px solid var(--gold); border-radius: var(--radius-pill); color: var(--gold-2); font-weight:800; text-transform:uppercase; letter-spacing:.12em; font-size: var(--step--1); }
.badge-gold svg { width:1.1em; height:1.1em; }
.btn--gold { --btn-bg: linear-gradient(90deg, var(--gold-2), var(--gold)); --btn-fg: #1c1500; }

.product-hero { position:relative; overflow:hidden; color:#fff; padding-block: var(--space-7) var(--space-6);
  background: radial-gradient(120% 100% at 82% -10%, #212124, #0b0b0c 70%); }
.product-hero::after { content:""; position:absolute; inset:0; background-image: var(--topo); background-size:800px; opacity:.06; }
.product-hero__grid { position:relative; display:grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem,5vw,4rem); align-items:center; }
@media (max-width:820px){ .product-hero__grid { grid-template-columns:1fr; } }
.product-hero h1 { color:#fff; font-size: var(--step-4); margin:.4rem 0; }
.product-hero__img { border-radius: var(--radius-lg); overflow:hidden; box-shadow: var(--shadow-lg); border:1px solid rgba(201,154,46,.35); aspect-ratio: 4/5; }

.features { display:grid; grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); gap: var(--space-3); }
.feature { background:#141416; border:1px solid rgba(201,154,46,.28); border-radius: var(--radius); padding: var(--space-4) var(--space-3); text-align:center; color:#fff; transition: transform .25s var(--ease), border-color .25s var(--ease); }
.feature:hover { transform: translateY(-6px); border-color: var(--gold); }
.feature__icon { width:60px; height:60px; border-radius:50%; display:grid; place-items:center; margin:0 auto var(--space-2); background: rgba(201,154,46,.12); color: var(--gold-2); }
.feature__icon svg { width:28px; height:28px; }
.feature h3 { color:#fff; font-size: var(--step-1); margin-bottom:.25rem; }
.feature p { color:#b6b6bd; margin-inline:auto; font-size:.95rem; }

.section--dark { background:#0b0b0c; color:#fff; }
.section--dark h2 { color:#fff; }
.section--dark p { color:#c4c4c9; }

/* Promo del producto en el inicio */
.promo { position:relative; overflow:hidden; border-radius: var(--radius-lg); color:#fff; box-shadow: var(--shadow);
  background: linear-gradient(120deg, #0b0b0c 0%, #1a1a1d 100%); display:grid; grid-template-columns: .9fr 1.1fr; align-items:stretch; }
.promo::before { content:""; position:absolute; inset:0; background-image: var(--topo); background-size:700px; opacity:.06; }
.promo__media { position:relative; min-height:100%; }
.promo__media img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.promo__body { position:relative; padding: clamp(1.75rem,4vw,3.25rem); }
.promo__body h2 { color:#fff; }
@media (max-width:760px){ .promo { grid-template-columns:1fr; } .promo__media { min-height: 260px; } }
