/* ============================================================
   help4ever · styles.css
   Mobile-first, editorial, serio y cálido.
   ============================================================ */

:root {
  --color-bg: #faf8f3;
  --color-bg-alt: #f1ede4;
  --color-ink: #141210;
  --color-ink-soft: #3a3632;
  --color-muted: #6b6560;
  --color-line: #e3ddd0;
  --color-primary: #1a6b3a;
  --color-primary-dark: #114d29;
  --color-accent: #2d9e58;
  --color-warning-bg: #fff6d6;
  --color-warning-ink: #6b4a00;

  --font-serif: 'Fraunces', 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;

  --shadow-s: 0 1px 2px rgba(20, 18, 16, 0.04), 0 2px 6px rgba(20, 18, 16, 0.04);
  --shadow-m: 0 4px 16px rgba(20, 18, 16, 0.06), 0 12px 32px rgba(20, 18, 16, 0.05);

  --container: 1180px;
  --gutter: 22px;

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

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color .2s var(--ease);
}
a:hover { color: var(--color-primary-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--color-ink);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.8rem, 4.2vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); }
p { margin: 0 0 1em; color: var(--color-ink-soft); }

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

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--color-ink); color: var(--color-bg);
  padding: 8px 14px; border-radius: var(--radius-s);
  z-index: 100;
}
.skip-link:focus { left: 10px; }

/* ============================================================
   Warning banner (phase)
   ============================================================ */

.phase-banner {
  background: var(--color-warning-bg);
  color: var(--color-warning-ink);
  font-size: 0.88rem;
  padding: 10px var(--gutter);
  text-align: center;
  border-bottom: 1px solid #f1e2a7;
}
.phase-banner strong { font-weight: 700; margin-right: 4px; }
.phase-banner .dot {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: #d97706;
  margin-right: 8px;
  vertical-align: middle;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(0.85); }
}

/* ============================================================
   Header / Nav
   ============================================================ */

.site-header {
  position: sticky; top: 0;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--color-line);
  z-index: 50;
  overflow: visible;
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 3vw, 16px);
  padding: 12px 0;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-serif); font-weight: 700; font-size: 1.25rem;
  color: var(--color-ink);
  flex-shrink: 0;
  min-width: 0;
}
.brand-mark {
  width: 38px; height: 38px; border-radius: 9px;
  background: var(--color-primary);
  color: var(--color-bg);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.brand-mark svg {
  width: 28px; height: 28px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand-name .four { color: var(--color-primary); }

/* Oculto en móvil: el bloque completo (evita huecos en flex) */
.nav-primary {
  display: none;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}
.nav-links {
  display: flex;
  list-style: none; margin: 0; padding: 0;
  gap: 28px;
}
.nav-links a {
  color: var(--color-ink-soft);
  font-size: .95rem; font-weight: 500;
}
.nav-links a:hover { color: var(--color-ink); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}
.nav-cta { display: none; }

.nav-toggle {
  background: none; border: 1px solid var(--color-line);
  border-radius: 8px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px;
  background: var(--color-ink);
  position: relative;
  transition: transform .25s var(--ease), top .25s var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  display: none;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
}
.nav-drawer[data-open="true"] {
  display: block;
  box-shadow: inset 0 1px 0 var(--color-line), 0 16px 40px rgba(20, 18, 16, 0.07);
}
.nav-drawer-lang {
  padding: 14px var(--gutter) 16px;
  border-bottom: 1px solid var(--color-line);
}
.nav-drawer-lang .lang-switcher--drawer {
  width: 100%;
  display: flex;
  justify-content: flex-start;
}
.nav-drawer ul { list-style: none; margin: 0; padding: 16px var(--gutter) 24px; }
.nav-drawer li { border-bottom: 1px solid var(--color-line); }
.nav-drawer li:last-child { border-bottom: 0; }
.nav-drawer a {
  display: block; padding: 14px 0;
  color: var(--color-ink);
  font-size: 1.05rem; font-weight: 500;
}
.nav-drawer .drawer-cta {
  margin-top: 14px; display: inline-block;
  background: var(--color-primary); color: var(--color-bg);
  padding: 12px 22px; border-radius: 999px;
  font-weight: 600;
}

@media (max-width: 899px) {
  /* Más aire a la izquierda del logo en la barra superior */
  .site-header > .container.nav {
    padding-left: clamp(22px, 5.5vw, 28px);
    padding-right: clamp(18px, 4.5vw, 24px);
  }
  .brand { font-size: 1.12rem; gap: 8px; }
  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }
  .brand-mark svg {
    width: 24px;
    height: 24px;
    stroke-width: 3.2;
  }
  .nav-actions {
    gap: 8px;
  }
  /* Idioma solo dentro del menú desplegable en móvil */
  .nav-actions > .lang-switcher:not(.lang-switcher--drawer) {
    display: none;
  }
  .lang-switcher .lang-menu {
    right: 0;
    left: auto;
    max-width: min(calc(100vw - 32px), 280px);
  }
  /* Panel de idiomas a ancho útil dentro del drawer */
  .lang-switcher--drawer .lang-menu {
    left: 0;
    right: 0;
    width: 100%;
    min-width: 0;
    max-width: none;
    box-sizing: border-box;
  }
  .lang-switcher--drawer .lang-menu .lang-opt {
    width: 100%;
    max-width: 64px;
    justify-self: center;
  }
}

/* ============================================================
   Language switcher (i18n)
   ============================================================ */

.lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.lang-switcher .lang-trigger {
  background: transparent;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  width: 44px;
  height: 32px;
  padding: 0 5px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.lang-switcher .lang-trigger:hover {
  border-color: var(--color-primary);
  transform: translateY(-1px);
}
.lang-switcher .lang-trigger:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.lang-switcher .lang-trigger svg {
  width: 30px;
  height: 20px;
  display: block;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.lang-switcher .lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: 14px;
  padding: 8px;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  min-width: 232px;
  box-shadow: var(--shadow-m);
  z-index: 200;
  animation: lang-pop .18s var(--ease);
}
@keyframes lang-pop {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.lang-switcher.open .lang-menu { display: grid; }

.lang-switcher .lang-menu .lang-opt {
  width: 48px;
  height: 36px;
  padding: 0;
  border: 1.5px solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all .15s var(--ease);
}
.lang-switcher .lang-menu .lang-opt:hover {
  background: var(--color-bg-alt);
  transform: translateY(-1px);
}
.lang-switcher .lang-menu .lang-opt:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.lang-switcher .lang-menu .lang-opt.active {
  border-color: var(--color-primary);
  background: rgba(26, 107, 58, 0.08);
}
.lang-switcher .lang-menu .lang-opt svg {
  width: 32px;
  height: 22px;
  display: block;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

/* On mobile keep the switcher slightly more compact */
@media (max-width: 480px) {
  .lang-switcher .lang-trigger {
    width: 40px;
    height: 30px;
  }
  .lang-switcher .lang-trigger svg {
    width: 26px;
    height: 18px;
  }
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: var(--font-sans);
  font-weight: 600; font-size: 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  text-decoration: none;
}
.btn-primary {
  background: var(--color-primary); color: var(--color-bg);
}
.btn-primary:hover { background: var(--color-primary-dark); color: var(--color-bg); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--color-ink);
  border-color: var(--color-ink);
}
.btn-ghost:hover { background: var(--color-ink); color: var(--color-bg); }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  padding: 56px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 22px;
}
.hero-eyebrow::before {
  content: ""; width: 32px; height: 1px; background: var(--color-primary);
}
.hero h1 {
  max-width: 15ch;
}
.hero h1 .accent { color: var(--color-primary); font-style: italic; }
.hero-lead {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--color-ink-soft);
  max-width: 56ch;
  margin: 22px 0 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta {
  margin-top: 52px;
  display: grid; grid-template-columns: 1fr; gap: 18px;
  padding-top: 28px;
  border-top: 1px solid var(--color-line);
}
.hero-meta dt {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.6rem;
  line-height: 1;
}
.hero-meta dd {
  margin: 4px 0 0;
  color: var(--color-muted);
  font-size: .9rem;
}

/* ============================================================
   Section shared
   ============================================================ */

section {
  padding: 72px 0;
  position: relative;
}
section.alt { background: var(--color-bg-alt); }

.section-eyebrow {
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 12px;
}
.section-lead {
  max-width: 60ch;
  font-size: 1.08rem;
  color: var(--color-ink-soft);
}

/* ============================================================
   Flow (Capital → Cartera → Dividendos → Impacto)
   ============================================================ */

.flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 38px;
  list-style: none;
  padding: 0;
}
.flow-step {
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-m);
  padding: 24px;
  position: relative;
}
.flow-step .num {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: .9rem;
  color: var(--color-primary);
  letter-spacing: .12em;
}
.flow-step h3 { margin: 8px 0 6px; }
.flow-step p { margin: 0; color: var(--color-ink-soft); font-size: .96rem; }
.flow-step.highlight {
  background: linear-gradient(180deg, #1d1b18 0%, #141210 100%);
  color: var(--color-bg);
  border: 2px solid transparent;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-shadow:
    0 0 30px -8px rgba(45, 158, 88, 0.50),
    0 0 80px -22px rgba(232, 195, 95, 0.30);
  animation: h4e-aura 5s ease-in-out infinite;
  transition: transform .35s ease, box-shadow .35s ease;
}
.flow-step.highlight:hover {
  transform: translateY(-2px);
  animation-duration: 3s;
}
.flow-step.highlight:hover::before {
  animation-duration: 3.5s;
}
.flow-step.highlight:hover::after {
  animation-duration: 3.8s;
}
.flow-step.highlight h3 { color: var(--color-bg); }
.flow-step.highlight p  { color: rgba(250, 248, 243, 0.82); }
.flow-step.highlight .num {
  color: var(--color-accent);
  text-shadow: 0 0 22px rgba(45, 158, 88, 0.6);
}

.flow-step.highlight > * {
  position: relative;
  z-index: 2;
}

.flow-step.highlight::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from var(--h4e-angle, 0deg),
    transparent 0deg,
    rgba(45, 158, 88, 0.85) 30deg,
    rgba(244, 208, 110, 1) 90deg,
    rgba(45, 158, 88, 0.85) 150deg,
    transparent 200deg,
    transparent 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: h4e-spin 6s linear infinite;
  pointer-events: none;
  z-index: 1;
}

.flow-step.highlight::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  /* Barrido continuo sin pausa al final del ciclo (antes ~45% del tiempo quedaba quieto) */
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 38%,
    rgba(255, 255, 255, 0.05) 44%,
    rgba(244, 208, 110, 0.18) 50%,
    rgba(255, 255, 255, 0.05) 56%,
    transparent 62%,
    transparent 100%
  );
  background-size: 200% 100%;
  background-position: 100% center;
  animation: h4e-shine 5.5s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@property --h4e-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

@keyframes h4e-spin {
  to { --h4e-angle: 360deg; }
}

@keyframes h4e-shine {
  0%   { background-position: 100% center; }
  100% { background-position: -100% center; }
}

@keyframes h4e-aura {
  0%, 100% {
    box-shadow:
      0 0 30px -8px rgba(45, 158, 88, 0.50),
      0 0 80px -22px rgba(232, 195, 95, 0.30);
  }
  50% {
    box-shadow:
      0 0 44px -8px rgba(45, 158, 88, 0.68),
      0 0 110px -22px rgba(232, 195, 95, 0.46);
  }
}

@media (prefers-reduced-motion: reduce) {
  .flow-step.highlight,
  .flow-step.highlight::before,
  .flow-step.highlight::after {
    animation: none !important;
  }
}

/* ============================================================
   Principles grid
   ============================================================ */

.principles {
  display: grid; grid-template-columns: 1fr; gap: 16px;
  margin-top: 34px;
}
.principle {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-m);
  padding: 24px;
  background: var(--color-bg);
}
.principle-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(26, 107, 58, 0.08);
  color: var(--color-primary);
  display: grid; place-items: center;
  margin-bottom: 14px;
  font-family: var(--font-serif); font-weight: 700; font-size: 1.2rem;
}
.principle h3 { font-size: 1.1rem; margin: 0 0 6px; }
.principle p { margin: 0; font-size: .94rem; color: var(--color-ink-soft); }

/* ============================================================
   Projection table
   ============================================================ */

.table-wrap {
  margin-top: 34px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--color-bg);
}
.table-wrap .scroll { overflow-x: auto; }
table.projection {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: .94rem;
}
table.projection th, table.projection td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--color-line);
}
table.projection th {
  background: var(--color-bg-alt);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--color-muted);
}
table.projection tr:last-child td { border-bottom: 0; }
table.projection td.num {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--color-ink);
}

/* ============================================================
   Roadmap
   ============================================================ */

.roadmap {
  margin-top: 34px;
  position: relative;
  display: grid; gap: 16px;
  list-style: none;
  padding: 0;
}
.roadmap-item {
  padding: 22px;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-m);
  position: relative;
  padding-left: 68px;
}
.roadmap-item::before {
  content: attr(data-step);
  position: absolute;
  left: 18px; top: 22px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-bg);
  display: grid; place-items: center;
  font-family: var(--font-serif); font-weight: 700;
  font-size: .95rem;
}
.roadmap-item.done::before { background: var(--color-ink); }
.roadmap-item.current::before { background: var(--color-accent); }
.roadmap-item h3 { margin: 0 0 6px; font-size: 1.1rem; }
.roadmap-item p { margin: 0; color: var(--color-ink-soft); font-size: .95rem; }
.roadmap-item .tag {
  display: inline-block;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 4px;
}

/* ============================================================
   Contact / Subscribe
   ============================================================ */

.contact-card {
  margin-top: 34px;
  background: var(--color-ink);
  color: var(--color-bg);
  border-radius: var(--radius-l);
  padding: 36px 28px;
}
.contact-card h2 { color: var(--color-bg); }
.contact-card p { color: rgba(250, 248, 243, 0.75); }
.contact-form {
  margin-top: 18px;
  display: grid; gap: 10px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.06);
  color: var(--color-bg);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(250, 248, 243, 0.5); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(255,255,255,0.1);
}
.contact-form textarea { min-height: 100px; resize: vertical; }
.contact-form .row { display: grid; gap: 10px; grid-template-columns: 1fr; }
.contact-form button {
  margin-top: 6px;
  background: var(--color-accent);
  color: var(--color-ink);
  border: 0;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .15s var(--ease), background .15s var(--ease);
}
.contact-form button:hover { background: #3ab068; transform: translateY(-1px); }
.form-consent {
  font-size: .82rem;
  color: rgba(250, 248, 243, 0.6);
}
.form-consent a { color: var(--color-accent); }

.form-status {
  margin-top: 10px; font-size: .92rem;
  color: var(--color-accent);
  min-height: 1.2em;
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  padding: 48px 0 32px;
  background: var(--color-ink);
  color: rgba(250, 248, 243, 0.65);
  font-size: .9rem;
}
.footer a { color: rgba(250, 248, 243, 0.85); }
.footer a:hover { color: var(--color-accent); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.footer-brand .brand-mark { background: var(--color-accent); color: var(--color-ink); }
.footer-brand .brand { color: var(--color-bg); }
.footer-brand .brand-name .four { color: var(--color-accent); }
.footer h4 {
  color: var(--color-bg);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  margin-bottom: 12px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid rgba(250, 248, 243, 0.08);
  display: flex; flex-direction: column; gap: 8px;
  font-size: .82rem;
}

/* ============================================================
   Utilities / reveal
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* ============================================================
   Páginas internas (legal, 404, gracias)
   ============================================================ */

.page {
  padding: 72px 0 96px;
  min-height: 60vh;
}
.page .eyebrow {
  display: inline-block;
  font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--color-primary); font-weight: 600; margin-bottom: 14px;
}
.page h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  max-width: 22ch;
  margin-bottom: 18px;
}
.page .page-lead {
  font-size: 1.1rem; color: var(--color-ink-soft);
  max-width: 62ch; margin-bottom: 32px;
}
.page .content {
  max-width: 68ch;
}
.page .content h2 {
  font-size: 1.4rem; margin-top: 36px;
}
.page .content p, .page .content li {
  font-size: 1rem; color: var(--color-ink-soft); line-height: 1.7;
}
.page .content ul { padding-left: 20px; }
.page .content li { margin-bottom: 6px; }
.page .notice {
  margin: 28px 0;
  padding: 18px 20px;
  background: var(--color-warning-bg);
  color: var(--color-warning-ink);
  border: 1px solid #f1e2a7;
  border-radius: var(--radius-m);
  font-size: .95rem;
}
.page .back {
  margin-top: 40px; display: inline-flex;
}
.page.center {
  display: flex; align-items: center; justify-content: center;
  text-align: center; min-height: 70vh;
}
.page.center h1 { margin-left: auto; margin-right: auto; }
.page.center .page-lead { margin-left: auto; margin-right: auto; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  * { animation: none !important; transition: none !important; }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (min-width: 640px) {
  .hero-meta { grid-template-columns: repeat(3, 1fr); }
  .contact-form .row { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .principles { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .nav-primary { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .nav-actions { gap: 12px; }
  /* Segundo switcher de idioma solo para móvil (drawer) */
  .lang-switcher--drawer,
  .nav-drawer-lang {
    display: none !important;
  }

  .hero { padding: 96px 0 120px; }
  section { padding: 110px 0; }

  .flow { grid-template-columns: repeat(4, 1fr); }
  .flow-step { padding: 28px; }

  .principles { grid-template-columns: repeat(3, 1fr); }

  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }

  .contact-card { padding: 56px; }
}

@media (min-width: 1100px) {
  .hero h1 { font-size: 5rem; }
}
