/* ============================================================
   pcortes.com — landing one-pager · "editorial kinetic"
   ============================================================ */

:root {
  /* Light (por defecto) */
  --bg:        #FAF8F5;
  --bg-alt:    #F1ECE4;
  --surface:   #FFFFFF;
  --text:      #1A1814;
  --text-muted:#6E665C;
  --border:    #E6DFD4;
  --accent:    #BF512E;
  --accent-ink:#9A3F22;
  --accent-soft:#F3E2D9;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Geist", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;

  --maxw: 1180px;
  --maxw-text: 660px;
  --radius: 14px;
  --section-y: clamp(4.5rem, 9vw, 9rem);
  --header-h: 64px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="dark"] {
  --bg:        #161412;
  --bg-alt:    #1E1A17;
  --surface:   #211D19;
  --text:      #EDE8E0;
  --text-muted:#A89F93;
  --border:    #322C26;
  --accent:    #D9785A;
  --accent-ink:#E89175;
  --accent-soft:#2A211C;
}

/* ---------- Bilingüe ---------- */
html[lang="en"] .lang-es { display: none; }
html[lang="es"] .lang-en { display: none; }

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .3s ease, color .3s ease;
  overflow-x: hidden;
}

/* Grano de film sutil sobre todo el sitio */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html[data-theme="dark"] body::after { opacity: .06; }

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-ink); }

.mono { font-family: var(--font-mono); }

h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.1; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Typographic helpers ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--accent);
}
.eyebrow.accent { color: var(--accent); }

.lead { font-size: 1.15rem; color: var(--text-muted); max-width: var(--maxw-text); }

.section-head {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(2.1rem, 4.8vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  max-width: 16ch;
  margin-bottom: 1.5rem;
}
.section-head em { font-style: italic; color: var(--accent); }

.section-intro { margin: 0 0 3rem; }

.prose { max-width: var(--maxw-text); color: var(--text-muted); }
.prose p { margin: 0 0 1.1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
}
.wordmark:hover { color: var(--accent); }

.nav-desktop { display: none; margin-inline: auto; gap: 1.7rem; }
.nav-desktop a {
  position: relative;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.25rem 0;
}
.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-desktop a:hover { color: var(--text); }
.nav-desktop a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }

.toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 9px;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  min-height: 36px;
  transition: border-color .2s ease, background-color .2s ease, transform .1s ease;
}
.toggle:hover { border-color: var(--accent); }
.toggle:active { transform: translateY(1px); }
.theme-toggle { padding: 0.4rem; }

.lang-opt { color: var(--text-muted); transition: color .2s ease; }
.lang-opt.active { color: var(--accent); font-weight: 500; }
.sep { color: var(--border); margin: 0 0.1rem; }

.icon-moon { display: none; }
html[data-theme="dark"] .icon-sun { display: none; }
html[data-theme="dark"] .icon-moon { display: block; }

.menu-toggle { padding: 0.4rem; }

.nav-mobile {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  padding: 0.5rem clamp(1.25rem, 5vw, 2.5rem) 1rem;
  background: var(--bg);
}
.nav-mobile[hidden] { display: none; }
.nav-mobile a {
  color: var(--text);
  font-weight: 500;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-child { border-bottom: 0; }

@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .menu-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section-alt { background: var(--bg-alt); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 5.5rem;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg,
      color-mix(in srgb, var(--bg) 92%, transparent) 0%,
      color-mix(in srgb, var(--bg) 82%, transparent) 42%,
      color-mix(in srgb, var(--bg) 60%, transparent) 100%),
    linear-gradient(to bottom,
      color-mix(in srgb, var(--bg) 70%, transparent) 0%,
      transparent 30%,
      transparent 60%,
      color-mix(in srgb, var(--bg) 92%, transparent) 100%);
}
.hero-inner { position: relative; width: 100%; }

.hero-title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(2.9rem, 8vw, 7rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 1.75rem;
  max-width: 15ch;
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--text);
  max-width: 46ch;
  margin: 0 0 2.25rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Marquesina inferior del hero */
.hero-marquee {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(6px);
  padding: 0.85rem 0;
}
.marquee { overflow: hidden; width: 100%; }
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  will-change: transform;
  animation: marquee 32s linear infinite;
}
.marquee__track .dot { color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* Indicador de scroll */
.hero-scroll {
  position: absolute;
  right: clamp(1.25rem, 5vw, 2.5rem);
  bottom: 4.5rem;
  z-index: 1;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
}
.hero-scroll__line {
  width: 1px; height: 48px;
  background: linear-gradient(var(--accent), transparent);
  position: relative;
  overflow: hidden;
}
.hero-scroll__line::after {
  content: "";
  position: absolute; top: -50%; left: 0;
  width: 100%; height: 50%;
  background: var(--accent);
  animation: scrolldot 1.8s var(--ease) infinite;
}
@keyframes scrolldot { to { top: 100%; } }
@media (min-width: 900px) { .hero-scroll { display: flex; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.9rem 1.6rem;
  border-radius: 11px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .2s ease, border-color .2s ease, color .2s ease;
  line-height: 1.2;
}
.btn-primary { background: var(--accent); color: #fff; }
html[data-theme="dark"] .btn-primary { color: #161412; }
.btn-primary:hover { background: var(--accent-ink); color: #fff; transform: translateY(-2px); }
html[data-theme="dark"] .btn-primary:hover { color: #161412; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ============================================================
   STATS
   ============================================================ */
.section-stats { padding-block: clamp(3.5rem, 7vw, 6rem); border-block: 1px solid var(--border); }
.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem 2rem;
}
@media (min-width: 720px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { display: flex; flex-direction: column; gap: 0.5rem; }
.stat__num {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(3.5rem, 9vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  max-width: 22ch;
}
.stats-caption {
  margin: 2.75rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ============================================================
   AGENCIAS — puntos como tarjetas con número fantasma
   ============================================================ */
.points {
  list-style: none;
  margin: 3rem 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
.points li {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem 1.75rem;
  transition: transform .3s var(--ease), border-color .3s ease;
}
.points li:hover { transform: translateY(-4px); border-color: var(--accent); }
.points .num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 0.75rem;
  line-height: 1;
}
.points p { margin: 0; color: var(--text-muted); }
.points strong { color: var(--text); font-weight: 600; display: block; margin-bottom: 0.35rem; }

@media (min-width: 860px) {
  .points { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

/* ============================================================
   SERVICIOS — lista editorial interactiva
   ============================================================ */
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.svc {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 1.6rem 0.5rem;
  border-bottom: 1px solid var(--border);
  transition: padding .3s var(--ease), background-color .3s ease;
}
.svc::before {
  content: "";
  position: absolute;
  left: -100%; top: 0; bottom: 0;
  width: 100%;
  background: var(--accent-soft);
  z-index: -1;
  transition: left .4s var(--ease);
}
.svc:hover { padding-left: 1.5rem; padding-right: 1.5rem; }
.svc:hover::before { left: 0; }
.svc__num { color: var(--text-muted); font-size: 0.85rem; transition: color .3s ease; }
.svc:hover .svc__num { color: var(--accent); }
.svc__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 1.85rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.svc__desc { margin: 0.35rem 0 0; color: var(--text-muted); font-size: 0.98rem; max-width: 46ch; }
.svc__price { color: var(--text); font-size: 0.92rem; white-space: nowrap; }
.svc__arrow {
  color: var(--accent);
  font-size: 1.3rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.svc:hover .svc__arrow { opacity: 1; transform: translateX(0); }
.svc-foot { margin: 1.5rem 0 0; color: var(--text-muted); font-size: 0.8rem; }

@media (max-width: 680px) {
  .svc { grid-template-columns: auto 1fr; gap: 0.4rem 1rem; }
  .svc__main { grid-column: 1 / -1; grid-row: 2; }
  .svc__num { grid-row: 1; }
  .svc__price { grid-row: 1; grid-column: 2; text-align: right; color: var(--accent); }
  .svc__arrow { display: none; }
  .svc:hover { padding-inline: 0.5rem; }
}

/* ============================================================
   TRABAJO SELECCIONADO
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } }

.project-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: transform .3s var(--ease), border-color .3s ease, box-shadow .3s ease;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 18px 40px -28px rgba(0,0,0,.45);
}

/* Miniatura de la web */
.project-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .5s var(--ease);
}
.project-card:hover .project-thumb img { transform: scale(1.04); }

.project-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.4rem 1.5rem 1.5rem;
  flex: 1;
}
.project-card:not(.has-thumb) .project-body { padding: 1.9rem 1.75rem; min-height: 170px; }
.project-card .project-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.project-card:not(.has-thumb) .project-name { font-size: 1.7rem; }
.project-card .project-desc { font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-muted); }
.project-card .project-link {
  margin-top: auto;
  padding-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* ============================================================
   CARE PLANS
   ============================================================ */
.cards { display: grid; gap: 1.25rem; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.9rem;
}
.plans-grid { grid-template-columns: 1fr; }
@media (min-width: 860px) { .plans-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), border-color .3s ease;
}
.plan-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.plan-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.45rem; margin-bottom: 0.85rem; }
.plan-card .price {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 500;
  color: var(--accent);
  margin: 0 0 1rem;
  line-height: 1;
}
.plan-card .price .vat { font-family: var(--font-mono); color: var(--text-muted); font-size: 0.72rem; }
.plan-card > p:last-child { color: var(--text-muted); font-size: 0.98rem; margin: 0; }

.plan-featured {
  border-color: var(--accent);
  border-width: 1.5px;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--accent-soft);
  box-shadow: 0 18px 50px -28px var(--accent);
}
@media (min-width: 860px) { .plan-featured { transform: scale(1.03); } .plan-featured:hover { transform: scale(1.03) translateY(-4px); } }
.badge {
  position: absolute;
  top: -0.75rem;
  left: 1.9rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.3rem 0.7rem;
  border-radius: 7px;
}
html[data-theme="dark"] .badge { color: #161412; }

.plans-note { text-align: center; color: var(--text-muted); font-size: 0.8rem; margin: 2.5rem auto 0; max-width: 60ch; line-height: 1.7; }

/* ============================================================
   PROCESO — timeline
   ============================================================ */
.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 0;
}
.step {
  position: relative;
  padding: 1.75rem 0 1.75rem 2.5rem;
  border-left: 2px solid var(--border);
}
.step::before {
  content: "";
  position: absolute;
  left: -7px; top: 2rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg-alt);
}
.step .num { display: block; font-family: var(--font-mono); color: var(--accent); font-size: 0.85rem; margin-bottom: 0.5rem; }
.step h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; margin-bottom: 0.4rem; }
.step p { font-size: 0.98rem; color: var(--text-muted); margin: 0; max-width: 52ch; }

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .step {
    padding: 2.75rem 1.5rem 0 0;
    border-left: none;
    border-top: 2px solid var(--border);
  }
  .step::before { left: 0; top: -7px; }
}

/* ============================================================
   SOBRE MÍ
   ============================================================ */
.about-layout { display: grid; gap: 2.5rem 3.5rem; align-items: center; }
.about-layout.has-photo { grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .about-layout.has-photo { grid-template-columns: 1.15fr 0.85fr; }
}
.pull {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 1.75rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--accent);
}
.about-sub { color: var(--text-muted); font-size: 0.82rem; margin: 1.75rem 0 0; max-width: var(--maxw-text); line-height: 1.7; }
.about-photo { align-self: stretch; }
.about-photo img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
@media (min-width: 900px) {
  .about-photo img { max-width: 100%; }
}

/* ============================================================
   EXCLUSIVIDAD
   ============================================================ */
.section-exclusive { padding-block: clamp(4rem, 8vw, 7rem); background: var(--accent); }
html[data-theme="dark"] .section-exclusive { background: var(--accent-soft); }
.exclusive-line {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 22ch;
  margin: 0 auto;
  text-align: center;
  color: #fff;
}
html[data-theme="dark"] .exclusive-line { color: var(--text); }

/* ============================================================
   CONTACTO
   ============================================================ */
.section-contact { background: var(--bg-alt); }
.contact-layout { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .contact-layout { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; } }
.contact-copy .lead { margin-bottom: 1.5rem; }
.contact-direct { font-size: 0.9rem; color: var(--text-muted); }

.contact-form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.field input, .field select, .field textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0.75rem 0.9rem;
  width: 100%;
  transition: border-color .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.contact-form .btn { justify-self: start; }
.form-status { margin: 0; font-size: 0.92rem; min-height: 1.2em; }
.form-status.success { color: var(--accent); }
.form-status.error { color: #c0392b; }
html[data-theme="dark"] .form-status.error { color: #e8836f; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { border-top: 1px solid var(--border); padding-block: clamp(3rem, 5vw, 4.5rem); background: var(--bg); }
.footer-inner { display: grid; gap: 2rem; }
.footer-brand .wordmark { display: inline-block; margin-bottom: 0.75rem; }
.footer-tagline { color: var(--text-muted); font-size: 0.92rem; max-width: 46ch; margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-links a { font-size: 0.92rem; color: var(--text); }
.footer-links a:hover { color: var(--accent); }
.footer-toggles { display: flex; gap: 0.5rem; }
.footer-legal {
  display: flex; flex-wrap: wrap; gap: 1rem 1.5rem;
  justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.legal-links { display: flex; gap: 1.25rem; }
.legal-links a { color: var(--text-muted); }
.legal-links a:hover { color: var(--accent); }

@media (min-width: 860px) {
  .footer-inner { grid-template-columns: 1.5fr 1fr auto; gap: 2.5rem; align-items: start; }
  .footer-legal { grid-column: 1 / -1; }
}

/* ============================================================
   ANIMACIONES
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Stagger: los hijos directos entran en cascada */
.stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.stagger.is-visible > * { opacity: 1; transform: none; }
.stagger.is-visible > *:nth-child(1) { transition-delay: .05s; }
.stagger.is-visible > *:nth-child(2) { transition-delay: .12s; }
.stagger.is-visible > *:nth-child(3) { transition-delay: .19s; }
.stagger.is-visible > *:nth-child(4) { transition-delay: .26s; }
.stagger.is-visible > *:nth-child(5) { transition-delay: .33s; }
.stagger.is-visible > *:nth-child(6) { transition-delay: .40s; }
.stagger.is-visible > *:nth-child(7) { transition-delay: .47s; }
.stagger.is-visible > *:nth-child(8) { transition-delay: .54s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:hover, .card:hover, .points li:hover, .plan-card:hover, .project-card:hover { transform: none; }
  .marquee__track { animation: none; }
  .hero-scroll__line::after { animation: none; }
  * { animation-duration: 0.001ms !important; }

  .hero-video { display: none; }
  .hero-media {
    background-image: url("assets/hero-poster.jpg");
    background-size: cover;
    background-position: center 30%;
  }
}
