/* =====================================================================
   SOLARIA — styles.css
   Blanco, negro suave y grises · acentos sol (amarillo) y hoja (verde)
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --line-soft: #e8e8ed;
  --sun: #f2ae2e;          /* amarillo del logotipo: solo decorativo */
  --sun-ink: #8a5a00;      /* amarillo legible sobre blanco */
  --sun-soft: #fdf3df;
  --leaf: #1f7a4d;         /* verde, texto AA sobre blanco */
  --leaf-soft: #e7f3ec;
  --night: #0f1113;
  --night-2: #1a1d21;
  --night-line: #2c3036;
  --night-muted: #a1a1a6;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 22px;
  --radius-sm: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 40px rgba(0,0,0,.06);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; letter-spacing: -0.022em; line-height: 1.08; font-weight: 600; text-wrap: balance; }
p { margin: 0; }
section[id], [id="contenido"] { scroll-margin-top: 72px; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--leaf);
  margin-bottom: 14px;
}
.eyebrow--sun { color: var(--ink-2); }
.sunmark { width: 22px; height: 22px; color: var(--ink); flex: none; }
.impact .sunmark { color: #fff; }

.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 46ch; margin-top: 16px; line-height: 1.45; }
.lead--sm { font-size: 16px; max-width: 70ch; }

/* ---------- 3. Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border-radius: 999px;
  font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer; border: 0;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.btn--primary { background: var(--ink); color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.14); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,0,0,.18); background: #000; }
.btn--primary:active { transform: translateY(0); }
.btn--small { min-height: 36px; padding: 0 16px; font-size: 14px; background: var(--ink); color: #fff; }
.btn--small:hover { background: #000; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn--wa { background: var(--leaf); color: #fff; }
.btn--wa:hover { background: #17633d; transform: translateY(-2px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }

.link-arrow { font-weight: 600; color: var(--leaf); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 48px; }
.link-arrow::after { content: "›"; font-size: 1.4em; line-height: 1; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- 4. Navegación ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
@supports (backdrop-filter: blur(20px)) {
  .nav { background: rgba(255,255,255,.72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
}
.nav.is-scrolled { border-bottom-color: var(--line-soft); }
.nav__inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: 60px; display: flex; align-items: center; gap: 24px; }
.nav__brand { display: block; flex: none; }
.nav__brand img { width: 118px; height: auto; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { font-size: 14px; color: var(--ink-2); text-decoration: none; position: relative; padding: 6px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__links a.is-active { color: var(--ink); }
.nav__mobile-cta { display: none; }
.nav__toggle { display: none; }

@media (max-width: 880px) {
  .nav__cta { display: none; }
  .nav__toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px;
  }
  .nav__toggle span { display: block; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease); }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav__links {
    position: fixed; inset: 60px 0 auto 0; flex-direction: column; gap: 0;
    background: #fff; padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 20px 40px rgba(0,0,0,.08);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
  }
  .nav.is-open .nav__links { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav__links a { font-size: 22px; font-family: var(--font-display); font-weight: 600; color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
  .nav__links a::after { display: none; }
  .nav__mobile-cta { display: block; border-bottom: 0 !important; color: var(--leaf) !important; }
}

/* ---------- 5. Hero ---------- */
.hero { padding: clamp(48px, 9vw, 112px) 0 clamp(40px, 6vw, 72px); text-align: center; }
.hero__copy { max-width: 980px; margin: 0 auto; padding: 0 var(--gutter); }
.hero__title { font-size: clamp(40px, 7.2vw, 88px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; }
.hero__sub { font-size: clamp(18px, 1.9vw, 23px); color: var(--muted); max-width: 40ch; margin: 24px auto 0; line-height: 1.42; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: center; align-items: center; margin-top: 32px; }
.hero__media {
  margin: clamp(40px, 6vw, 72px) auto 0; padding: 0 var(--gutter); max-width: calc(var(--max) + 120px);
}
.hero__media { position: relative; }
.hero__video {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: center;
  border-radius: clamp(18px, 2.4vw, 32px); background: var(--bg-soft);
  transform: scale(var(--hero-scale, .94)); transition: transform .1s linear;
  will-change: transform;
}
.hero__vbtn {
  position: absolute; right: calc(var(--gutter) + 16px); bottom: 16px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; cursor: pointer; background: rgba(0,0,0,.45); display: grid; place-items: center;
  transition: background-color .2s var(--ease);
}
@supports (backdrop-filter: blur(8px)) { .hero__vbtn { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); } }
.hero__vbtn:hover { background: rgba(0,0,0,.65); }
.hero__vbtn span { width: 12px; height: 14px; border-left: 4px solid #fff; border-right: 4px solid #fff; }
.hero__vbtn.is-paused span { width: 0; height: 0; border: 0; border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 4px; }
.hero__facts {
  list-style: none; padding: 0 var(--gutter); margin: 32px auto 0; max-width: 760px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.hero__facts li { display: flex; flex-direction: column; align-items: center; gap: 2px; position: relative; padding-bottom: 14px; }
.hero__facts li::after {
  content: ""; position: absolute; bottom: 0; left: 50%; width: 28px; height: 3px; margin-left: -14px;
  border-radius: 3px; background: var(--sun); transform: scaleX(0); transition: transform .9s var(--ease);
}
.hero__facts.is-on li::after { transform: scaleX(1); }
.hero__facts strong { display: inline-block; text-align: center; }
.js .hero__facts li { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .hero__facts.is-on li { opacity: 1; transform: none; }
.hero__facts li:nth-child(2), .hero__facts li:nth-child(2)::after { transition-delay: .12s; }
.hero__facts li:nth-child(3), .hero__facts li:nth-child(3)::after { transition-delay: .24s; }
.js:not(.js-ready) .hero__facts li { animation: revealSafety .01s linear 6s forwards; }
.hero__facts strong { font: 600 clamp(24px, 3vw, 34px)/1.1 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hero__facts span { font-size: 14px; color: var(--muted); }

/* ---------- 6. Secciones ---------- */
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section--soft { background: var(--bg-soft); }
.section__head { margin-bottom: clamp(36px, 5vw, 64px); max-width: 820px; }
.section__head h2 { font-size: clamp(32px, 5vw, 56px); }
.section__cta { margin-top: 48px; text-align: center; }

/* Pasos */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.step {
  position: relative; background: var(--bg-soft); border-radius: var(--radius);
  padding: 32px 28px 30px; display: flex; flex-direction: column; gap: 10px;
}
.step h3 { font-size: 22px; margin-top: 10px; }
.step p { color: var(--ink-2); font-size: 16px; }
.step__n { position: absolute; top: 26px; right: 28px; font: 600 14px/1 var(--font); color: var(--muted); font-variant-numeric: tabular-nums; }
.step--wide { grid-column: 1 / -1; background: var(--ink); color: #fff; }
.step--wide h3 { color: #fff; }
.step--wide p { color: #d2d2d7; max-width: 70ch; }
.step--wide .icon { stroke: var(--sun); }
.step--wide .step__n { color: #a1a1a6; }
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }

.icon { width: 40px; height: 40px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--lg { width: 48px; height: 48px; }

/* ---------- 7. Impacto ---------- */
.impact { background: var(--night); color: #f5f5f7; padding: clamp(80px, 11vw, 150px) 0; }
.section__head--dark h2 { color: #fff; }
.section__head--dark .eyebrow { color: #d2d2d7; }
.impact__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.metric {
  background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--radius);
  padding: 28px 26px 26px; display: flex; flex-direction: column; gap: 14px; min-width: 0;
}
.metric--hero { grid-column: span 3; padding: clamp(32px, 4vw, 48px); background: radial-gradient(120% 140% at 0% 0%, rgba(242,174,46,.16), transparent 55%), var(--night-2); }
.metric__label { font: 500 15px/1.3 var(--font); color: var(--night-muted); letter-spacing: 0; }
.metric__value { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; color: #fff; }
.metric .num {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em;
  font-size: clamp(30px, 3.4vw, 42px); line-height: 1;
  font-variant-numeric: tabular-nums lining-nums; font-feature-settings: "tnum" 1, "lnum" 1;
  white-space: nowrap;
}
.metric--hero .num { font-size: clamp(40px, 8.4vw, 104px); letter-spacing: -0.03em; }
.metric .unit { font-size: 16px; color: var(--night-muted); }
.metric--hero .unit { font-size: clamp(18px, 2vw, 26px); color: var(--sun); font-weight: 600; }
.metric__hint { font-size: 14px; color: var(--night-muted); margin-top: -6px; }
.metric--static .num { color: #fff; }
.impact__note { margin-top: 28px; font-size: 15px; color: var(--night-muted); max-width: 72ch; }
.impact__check { margin-top: 12px; font-size: 14px; color: var(--sun); }
@media (max-width: 900px) {
  .impact__grid { grid-template-columns: repeat(2, 1fr); }
  .metric--hero { grid-column: span 2; }
}
@media (max-width: 560px) {
  .impact__grid { grid-template-columns: 1fr; }
  .metric--hero { grid-column: auto; }
}

.method { margin-top: 28px; border-top: 1px solid var(--night-line); }
.method summary {
  cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; color: #fff;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 48px;
}
.method summary::-webkit-details-marker { display: none; }
.method summary::after { content: "+"; font-size: 24px; font-weight: 400; transition: transform .3s var(--ease); }
.method[open] summary::after { transform: rotate(45deg); }
.method__body { color: #d2d2d7; font-size: 15px; padding-bottom: 12px; display: grid; gap: 20px; }
.method__body ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.method__formula { background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--radius-sm); padding: 18px 20px; display: grid; gap: 8px; }
.method__formula strong { color: #fff; }
.method__sources a { color: var(--sun); }

/* ---------- 8. Aprende ---------- */
.learn { margin-top: 16px; }
.learn h3 { font-size: clamp(24px, 2.6vw, 32px); }
.learn--flow { background: var(--bg-soft); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); margin-top: 0; }
.flow { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: f; }
.flow li { position: relative; display: flex; flex-direction: column; gap: 8px; }
.flow li:not(:last-child)::after {
  content: ""; position: absolute; top: 24px; left: 64px; right: -12px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--sun) 0 8px, transparent 8px 14px);
  background-size: 28px 2px; animation: flowDash 1.6s linear infinite;
}
@keyframes flowDash { to { background-position: 28px 0; } }
.flow h4 { font-size: 19px; margin-top: 8px; }
.flow p { color: var(--ink-2); font-size: 15px; }
@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr 1fr; }
  .flow li::after { display: none; }
}
@media (max-width: 480px) { .flow { grid-template-columns: 1fr; } }

.card { background: var(--bg-soft); border-radius: var(--radius); padding: 30px 28px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 22px; }
.card p { color: var(--ink-2); font-size: 16px; }
.learn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.learn-grid .learn { margin-top: 0; }
.learn-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .learn-grid, .learn-grid--3 { grid-template-columns: 1fr; } }

.tag { display: inline-block; align-self: flex-start; font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: #fff; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.tag--sun { background: var(--sun-soft); color: var(--sun-ink); box-shadow: none; }
.tag--leaf { background: var(--leaf-soft); color: var(--leaf); box-shadow: none; }

.compare { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); }
.compare__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 24px; }
.compare h4 { font-size: 19px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.compare ul { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 10px; color: var(--ink-2); font-size: 16px; }
@media (max-width: 760px) { .compare__cols { grid-template-columns: 1fr; } }

.units { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; background: var(--bg-soft); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); }
.units p { color: var(--ink-2); margin-top: 12px; font-size: 16px; }
.units__example { background: #fff; border-radius: var(--radius-sm); padding: 8px 22px; box-shadow: var(--shadow); }
.units__row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; margin: 0 !important; border-bottom: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; }
.units__row span { color: var(--muted); }
.units__row--total { border-bottom: 0; }
.units__row--total strong { color: var(--leaf); }
@media (max-width: 760px) { .units { grid-template-columns: 1fr; } }

.bill { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); }
.bill .eyebrow { margin-bottom: 8px; }
.bill__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.bill__card { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.bill__card--after { background: var(--leaf-soft); }
.bill__total { font: 600 clamp(34px, 4vw, 48px)/1 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.bill dl { margin: 0; display: grid; gap: 0; }
.bill dl div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(0,0,0,.07); font-size: 15px; }
.bill dt { color: var(--muted); }
.bill dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.bill__note { font-size: 14px; color: var(--ink-2); }
@media (max-width: 760px) { .bill__cols { grid-template-columns: 1fr; } }

.savings { margin-top: 16px; background: var(--ink); color: #fff; border-radius: var(--radius-sm); padding: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px clamp(24px, 4vw, 48px); align-items: center; }
.savings__label { font-size: 15px; color: #d2d2d7; }
.savings__big { font: 700 clamp(44px, 7vw, 76px)/1 var(--font-display); letter-spacing: -0.03em; margin-top: 8px; font-variant-numeric: tabular-nums; color: var(--sun); }
.savings__sub { margin-top: 10px; font-size: 14px; color: #a1a1a6; font-variant-numeric: tabular-nums; }
.savings__years { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.savings__years li { background: var(--night-2); border: 1px solid var(--night-line); border-radius: 14px; padding: 18px 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.savings__yr { font-size: 14px; color: #a1a1a6; }
.savings__years strong { font: 600 clamp(22px, 2.6vw, 30px)/1.1 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.savings__note { grid-column: 1 / -1; font-size: 13px; color: #a1a1a6; line-height: 1.5; }
@media (max-width: 860px) { .savings { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .savings__years { grid-template-columns: 1fr; } .savings__years li { flex-direction: row; justify-content: space-between; align-items: baseline; } }

.annex { margin: 16px 0 0; }
.annex a { display: block; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fff; cursor: zoom-in; }
.annex img { width: 100%; transition: transform .6s var(--ease); }
.annex a:hover img { transform: scale(1.015); }
.annex figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }

.faq { margin-top: clamp(48px, 7vw, 88px); max-width: 860px; }
.faq h3 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 20px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 0; font: 600 18px/1.35 var(--font-display);
  display: flex; justify-content: space-between; gap: 20px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; font-weight: 400; color: var(--muted); transition: transform .3s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 68ch; }

/* ---------- 9. Filtros ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters:empty { display: none; }
.chip {
  min-height: 40px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer;
  font: 500 15px/1 var(--font); background: #fff; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.section:not(.section--soft) .chip { background: var(--bg-soft); box-shadow: none; }
.chip:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink) !important; color: #fff; box-shadow: none; }

/* ---------- 10. Galería ---------- */
.gallery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery li { min-width: 0; }
.gallery li.is-wide { grid-column: span 2; }
.shot {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; background: #e8e8ed;
  border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 4 / 3;
}
.gallery li.is-wide .shot { aspect-ratio: auto; height: 100%; min-height: 100%; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.shot:hover img { transform: scale(1.04); }
.shot__meta {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 20px 18px; text-align: left; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.62), transparent);
  display: flex; flex-direction: column; gap: 2px;
}
.shot__title { font: 600 17px/1.25 var(--font-display); }
.shot__info { font-size: 13px; opacity: .88; }
.shot__count { position: absolute; top: 14px; right: 14px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
.gallery li[hidden] { display: none; }
@media (max-width: 860px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery li.is-wide { grid-column: span 2; }
  .gallery li.is-wide .shot { aspect-ratio: 16 / 9; height: auto; }
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery li.is-wide { grid-column: auto; }
  .gallery li.is-wide .shot { aspect-ratio: 4 / 3; }
}

.lightbox { border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100dvh; background: rgba(10,10,12,.94); color: #fff; }
.lightbox::backdrop { background: rgba(10,10,12,.9); }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 64px 16px 24px; }
.lightbox img { max-width: min(1400px, 100%); max-height: calc(100dvh - 140px); object-fit: contain; border-radius: 12px; }
.lightbox figcaption { font-size: 15px; color: #d2d2d7; text-align: center; max-width: 70ch; }
.lightbox__btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.lightbox__btn:hover { background: rgba(255,255,255,.24); }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__btn[hidden] { display: none; }

/* ---------- 11. Noticias ---------- */
.news { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.news li[hidden] { display: none; }
.news__card { height: 100%; background: var(--bg-soft); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.news__meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 13px; color: var(--muted); }
.news__card h3 { font-size: 20px; line-height: 1.25; }
.news__card p { color: var(--ink-2); font-size: 15px; }
.news__source { margin-top: auto; padding-top: 8px; font-size: 14px; color: var(--muted); }
.news__source a { color: var(--leaf); font-weight: 600; text-decoration: none; }
.news__source a:hover { text-decoration: underline; }
@media (max-width: 960px) { .news { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .news { grid-template-columns: 1fr; } }

/* ---------- 12. Contacto ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact__intro h2 { font-size: clamp(34px, 5vw, 56px); }
.contact__channels { margin-top: 32px; display: grid; gap: 14px; }
.contact__channels .pending, .footer__contact .pending { font-size: 14px; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px; }
.contact__channels dl { margin: 0; display: grid; gap: 10px; }
.contact__channels dt { font-size: 13px; color: var(--muted); }
.contact__channels dd { margin: 0; font-weight: 600; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }

.form { background: #fff; border-radius: var(--radius); padding: clamp(24px, 3.5vw, 40px); box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.opt { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"] {
  width: 100%; min-height: 50px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line);
  font: 400 16px/1.2 var(--font); color: var(--ink); background: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(29,29,31,.08); }
.field input[aria-invalid="true"] { border-color: #c62828; }
.field .err { font-size: 13px; color: #b3261e; }
.help { font-size: 13px; color: var(--muted); }
.file { position: relative; display: flex; align-items: center; min-height: 64px; border: 1.5px dashed var(--line); border-radius: 12px; padding: 0 16px; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.file:hover, .file:focus-within { border-color: var(--ink); background: var(--bg-soft); }
.file.has-file { border-style: solid; border-color: var(--leaf); background: var(--leaf-soft); }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file__label { font-size: 15px; color: var(--ink-2); pointer-events: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file__label::before { content: "↑"; display: inline-block; margin-right: 10px; font-weight: 700; color: var(--leaf); }
.field--check { flex-direction: row; align-items: flex-start; gap: 12px; }
.field--check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--ink); }
.field--check label { font-weight: 400; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.field--hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form__status { font-size: 15px; flex: 1 1 240px; }
.form__status.is-ok { color: var(--leaf); font-weight: 600; }
.form__status.is-error { color: #b3261e; }
.form.is-sending [data-submit] { opacity: .6; pointer-events: none; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* ---------- 13. Footer ---------- */
.footer { border-top: 1px solid var(--line-soft); padding: 56px 0 28px; font-size: 14px; color: var(--muted); }
.footer__grid { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 32px; }
.footer__logo { width: 132px; height: auto; }
.footer__tag { margin-top: 8px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 10px 22px; align-content: flex-start; }
.footer__nav a { text-decoration: none; color: var(--ink-2); }
.footer__nav a:hover { color: var(--ink); text-decoration: underline; }
.footer__contact a { color: var(--ink-2); }
.footer__legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- 14. Revelado al hacer scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-revealed { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
/* Red de seguridad: si el JS falla, todo aparece a los 6 s */
.js:not(.js-ready) [data-reveal] { animation: revealSafety .01s linear 6s forwards; }
@keyframes revealSafety { to { opacity: 1; transform: none; } }

/* Movimiento reducido: solo se apagan efectos intrusivos */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flow li::after { animation: none; }
  .hero__video { transform: none !important; }
  .js [data-reveal] { transform: none; transition: opacity .4s linear; }
}

/* Página de privacidad */
.doc { max-width: 760px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) var(--gutter); }
.doc h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 24px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 12px; }
.doc .pending { color: var(--sun-ink); background: var(--sun-soft); padding: 2px 6px; border-radius: 6px; }
