/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #0c0a06;
  --bg-1:      #141008;
  --bg-2:      #1c160c;
  --bg-3:      #241c0f;
  --ink:       #f7f4ec;
  --ink-soft:  #d8d0bd;
  --ink-mute:  #948c78;
  --accent:    #ffd400;
  --accent-soft: #ffe873;
  --accent-deep: #c9a400;
  --line:      rgba(247, 244, 236, 0.1);
  --line-strong: rgba(247, 244, 236, 0.18);

  --display: "Archivo", "Plus Jakarta Sans", "Space Grotesk", "Inter", sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", monospace;
  --serif-accent: "Fraunces", Georgia, serif;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 16px;
  --radius-sm: 10px;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
em {
  font-style: italic;
  font-family: var(--serif-accent);
  font-weight: 500;
  color: var(--accent);
}
::selection { background: var(--accent); color: var(--bg); }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--accent); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* TEMPORAL — solo para comparar las 2 versiones de prueba. Borrar junto con index-sin-fondo.html antes de publicar. */
.compare-banner {
  position: sticky; top: 0; z-index: 999;
  display: block; text-align: center;
  padding: .6rem 1rem;
  background: var(--accent); color: #151208;
  font-family: var(--mono); font-size: .78rem; font-weight: 700;
}

.icon { width: 1.35em; height: 1.35em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 1.1em; height: 1.1em; }

.eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .85rem;
}

.section-lead {
  max-width: 56ch;
  color: var(--ink-mute);
  font-size: 1.05rem;
  margin-top: .9rem;
}

/* =============================================================
   4. Reveal on scroll
   ============================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* =============================================================
   5. Buttons
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .95rem 1.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .96rem;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background .3s var(--ease-out), border-color .3s var(--ease-out);
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); transition-duration: .12s; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  color: #151208;
}
.btn-primary:hover { box-shadow: 0 22px 44px rgba(255, 212, 0, 0.28), 0 10px 20px rgba(0,0,0,0.35); }

.btn-ghost {
  background: rgba(247,244,236,0.04);
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--accent); background: rgba(255,212,0,0.08); }

.btn-whatsapp {
  background: #1f8a4c;
  color: #fff;
  margin-top: 1.5rem;
}
.btn-whatsapp:hover { box-shadow: 0 22px 44px rgba(31,138,76,0.32), 0 10px 20px rgba(0,0,0,0.3); }

.btn-lg { padding: 1.15rem 2.1rem; font-size: 1.02rem; }
.btn-sm { padding: .6rem 1.25rem; font-size: .86rem; }
.btn-block { width: 100%; }

/* Big eneryia-style CTA pill: full width, centered label (wraps safely on long text) */
.btn-cta {
  width: 100%; max-width: 460px;
  justify-content: center;
  text-align: center;
  white-space: normal;
  padding: 1.2rem 1.8rem;
  font-size: 1rem;
}

/* =============================================================
   6. Hero
   ============================================================= */
.hero {
  position: relative;
  padding-block: clamp(2.75rem, 7vw, 4.5rem) clamp(4rem, 8vw, 6rem);
  overflow: hidden;
  isolation: isolate;
}

@property --mesh-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --mesh-x { syntax: "<percentage>"; inherits: false; initial-value: 30%; }
@property --mesh-y { syntax: "<percentage>"; inherits: false; initial-value: 30%; }

.section-with-mesh { position: relative; }
.section-with-mesh::before {
  content: ""; position: absolute; inset: -15% -10%; z-index: -1;
  background:
    radial-gradient(55% 45% at var(--mesh-x) var(--mesh-y), rgba(255,212,0,.16), transparent 62%),
    conic-gradient(from var(--mesh-angle), rgba(28,22,12,.6), rgba(20,16,8,.25), rgba(255,212,0,.10), rgba(28,22,12,.6));
  filter: blur(90px) saturate(120%);
  opacity: .9;
  animation: meshShift 26s linear infinite;
  mix-blend-mode: screen;
}
@keyframes meshShift {
  0%   { --mesh-angle: 0deg;   --mesh-x: 22%; --mesh-y: 30%; }
  50%  { --mesh-angle: 180deg; --mesh-x: 78%; --mesh-y: 55%; }
  100% { --mesh-angle: 360deg; --mesh-x: 22%; --mesh-y: 30%; }
}

/* Grid/checkerboard texture — only used on the no-photo hero variant */
.hero-grid-overlay {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(247,244,236,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247,244,236,.05) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 40%, transparent 90%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 40%, transparent 90%);
}

.hero-grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}

.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-bg picture { position: absolute; inset: 0; display: block; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.hero-bg-tint {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(12,10,6,.96) 0%, rgba(12,10,6,.9) 34%, rgba(12,10,6,.62) 64%, rgba(12,10,6,.46) 100%),
    linear-gradient(180deg, rgba(12,10,6,.6) 0%, transparent 28%, transparent 72%, rgba(12,10,6,.85) 100%);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}

.hero-logo { display: inline-flex; margin-bottom: 1.5rem; }
.hero-logo img {
  height: 54px; width: auto; display: block;
  background: #fff; padding: 8px 14px; border-radius: 12px;
}

/* Badge pill (eneryia-style category badge) */
.badge-pill {
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .55rem 1.2rem .55rem .8rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(247,244,236,0.03);
  margin-bottom: 1.75rem;
  max-width: 38ch;
  text-align: center;
}
.badge-pill-spark { flex: none; }
.badge-pill-spark {
  color: var(--accent);
  animation: sparkSpin 7s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .badge-pill-spark { animation: none; } }
@keyframes sparkSpin { to { transform: rotate(360deg); } }
.badge-pill span {
  font-family: var(--mono); font-size: .62rem; font-weight: 600;
  letter-spacing: .07em; color: var(--ink-soft);
}

.hero-title {
  font-size: clamp(1.8rem, 6.8vw, 3rem);
  line-height: 1.1;
  max-width: 15ch;
  margin-inline: auto;
  margin-bottom: 1.25rem;
  text-align: center;
}

.hero-sub { font-size: clamp(.9rem, 1.2vw, 1rem); color: var(--ink); max-width: 40ch; margin-inline: auto; margin-bottom: 1.75rem; font-weight: 500; text-align: center; }

/* Cupo pill (scarcity CTA — eneryia's waitlist pill, reworked as real capacity) */
.cupo-pill {
  display: flex; align-items: center; gap: .85rem;
  padding: 1.1rem 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255,212,0,.28);
  background: rgba(255,212,0,.06);
  max-width: 46ch;
  margin-bottom: 1.75rem;
}
.cupo-pill-dot {
  flex: none; width: 10px; height: 10px;
  border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255,212,0,.18);
}
.cupo-pill span { font-size: .95rem; color: var(--ink-soft); line-height: 1.5; }
.cupo-pill strong,
.cupo-pill .cupo-pill-highlight { color: var(--accent); font-weight: 700; }

/* VSL slot — between the cupo pill and the CTA button */
.hero-vsl {
  position: relative;
  width: 100%; max-width: 460px;
  aspect-ratio: 16 / 9;
  margin-bottom: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.hero-vsl iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hero-vsl-placeholder { display: flex; flex-direction: column; align-items: center; gap: .75rem; color: var(--ink-mute); padding: 1rem; }
.hero-vsl-placeholder .vsl-soon-badge { font-family: var(--mono); font-size: .68rem; letter-spacing: .05em; color: var(--ink-mute); }

.vsl-pulse-icon {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%; flex: none;
  background: var(--accent); color: #151208;
  animation: vslPulse 1.8s ease-in-out infinite;
}
.vsl-pulse-icon .icon { width: 1.6em; height: 1.6em; }
@keyframes vslPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,212,0,.55); }
  50%      { box-shadow: 0 0 0 16px rgba(255,212,0,0); }
}
@media (prefers-reduced-motion: reduce) { .vsl-pulse-icon { animation: none; } }
.vsl-pulse-label { font-weight: 700; font-size: .92rem; color: var(--ink); text-align: center; max-width: 22ch; }

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: .85rem; }
.hero-actions-note { font-family: var(--mono); font-size: .76rem; color: var(--ink-mute); letter-spacing: .02em; line-height: 1.6; max-width: 46ch; margin-inline: auto; margin-bottom: 2.5rem; }

.hero-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.hero-stat { text-align: center; }
.hero-stat-num { font-family: var(--display); font-size: 2rem; font-weight: 700; color: var(--ink); }
.hero-stat-label { font-size: .82rem; color: var(--ink-mute); max-width: 14ch; margin-inline: auto; }

.hero-visual { display: flex; justify-content: center; margin-top: 3rem; }
.hero-archivadores {
  position: relative;
  width: min(85%, 300px);
  aspect-ratio: 4 / 5;
  animation: heroFloat 7s ease-in-out infinite;
}
.hero-arch-photo {
  position: absolute;
  width: 76%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.75);
}
.hero-arch-1 { top: 0; left: 0; transform: rotate(-5deg); z-index: 1; }
.hero-arch-2 { bottom: 0; right: 0; transform: rotate(4deg); z-index: 2; }
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* =============================================================
   7. Ticker
   ============================================================= */
.ticker {
  position: relative;
  border-block: 1px solid var(--line);
  background: var(--bg-1);
  overflow: hidden;
  padding-block: 1.1rem;
}
.ticker-track {
  display: flex;
  width: max-content;
  gap: 3rem;
  animation: tickerScroll 34s linear infinite;
}
.ticker-track span {
  font-family: var(--mono);
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
}
.ticker-track span::after { content: "\2022"; margin-left: 3rem; color: var(--accent); }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =============================================================
   8. Sections & cards
   ============================================================= */
.section { padding-block: clamp(4.5rem, 9vw, 7rem); position: relative; }
.section h2 { font-size: clamp(1.7rem, 5vw, 2.6rem); max-width: 24ch; margin-bottom: .5rem; }

.section-header { text-align: center; max-width: 640px; margin-inline: auto; margin-bottom: 1rem; }
.section-header .eyebrow, .section-header h2, .section-header .section-lead { margin-inline: auto; }

.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem;
}

.has-tilt {
  --rx: 0deg; --ry: 0deg;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .55s var(--ease-soft), border-color .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.has-tilt:hover {
  transition-duration: .15s;
  border-color: rgba(255,212,0,.4);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(255,212,0,.12);
}

/* Resultados / success cards */
.grid-success { display: grid; grid-template-columns: 1fr; gap: 1.15rem; margin-top: 2.75rem; }
.card-success { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-success.is-featured { border-color: rgba(255,212,0,.35); }

.success-media {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: var(--bg-3);
}
.success-media img { width: 100%; height: 100%; object-fit: cover; }
.success-media iframe { width: 100%; height: 100%; border: 0; }

.success-media--quote {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  background: linear-gradient(160deg, var(--bg-3), var(--bg-2));
}

/* Video pending, no photo available yet */
.success-media--pending {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  background: linear-gradient(160deg, var(--bg-3), var(--bg-2));
  color: var(--ink-mute);
}
.success-media--pending .icon { width: 2.2em; height: 2.2em; color: var(--accent); }
.success-media--pending span { font-family: var(--mono); font-size: .72rem; letter-spacing: .05em; }
.success-media--quote .testimonial-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  color: #151208; font-family: var(--display); font-weight: 700; font-size: .95rem;
}
.success-quote-icon { color: var(--accent); width: 1.6em; height: 1.6em; }

.success-badge {
  position: absolute; left: .9rem; bottom: .9rem;
  font-family: var(--mono); font-size: .66rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: .3rem .65rem; border-radius: 999px;
}
.success-badge--soon { background: rgba(12,10,6,.75); color: var(--accent); border: 1px solid rgba(255,212,0,.35); backdrop-filter: blur(6px); }

.card-success .success-category {
  font-family: var(--mono); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); padding: 1.3rem 1.5rem 0;
}
.card-success .success-name { font-family: var(--display); font-weight: 600; color: var(--ink); padding: .4rem 1.5rem 0; }
.card-success .success-result { color: var(--ink-mute); font-size: .82rem; line-height: 1.5; padding: .5rem 1.5rem 1.5rem; flex: 1; }

.success-cta { margin-top: 3rem; justify-content: center; }

/* =============================================================
   9. Contact
   ============================================================= */
.contact-section { overflow: hidden; }
.contact-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.contact-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.contact-bg-tint {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,10,6,.97) 0%, rgba(12,10,6,.98) 55%, var(--bg) 100%);
}
.contact-inner { display: grid; gap: 1.5rem; align-items: start; }
.contact-copy p { color: var(--ink-mute); max-width: 44ch; margin-top: .5rem; }
.contact-email {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: 1.1rem; color: var(--ink-soft); font-size: .92rem;
  border-bottom: 1px solid var(--line-strong); padding-bottom: 2px;
}
.contact-email:hover { color: var(--accent); border-color: var(--accent); }
.contact-note { font-size: .82rem; color: var(--ink-mute); margin-top: 1.75rem; opacity: .8; }

.cta-form {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex; flex-direction: column; gap: 1.15rem;
}
.field { position: relative; }
.field input, .field select, .field textarea {
  width: 100%; padding: 1.65rem 1rem .65rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: rgba(255,255,255,0.02); color: var(--ink);
  font: inherit; font-size: .95rem; line-height: 1.3; resize: vertical;
}
.field select { appearance: none; -webkit-appearance: none; color-scheme: dark; }
.field select option { color: #1a1714; background: #f7f4ec; }
.field textarea { min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field label {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  pointer-events: none; transition: all .22s var(--ease-out);
  color: var(--ink-mute); font-size: .95rem; line-height: 1;
  white-space: nowrap; max-width: calc(100% - 2rem); overflow: hidden; text-overflow: ellipsis;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  top: .6rem; transform: none; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase;
}
.field select:focus ~ .label-select,
.field select:valid ~ .label-select {
  top: .6rem; transform: none; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase;
}
.field .label-select { top: .6rem; transform: none; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; }

.cta-submit { position: relative; margin-top: .3rem; }
.cta-form-spinner { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; }
.cta-submit.is-sending .cta-form-label { opacity: 0; }
.cta-submit.is-sending .cta-form-spinner { display: flex; }
.cta-form-spinner::after {
  content: ""; width: 18px; height: 18px;
  border: 2px solid rgba(0,0,0,.25); border-top-color: #151208;
  border-radius: 50%; animation: spin .85s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form-note { font-size: .76rem; color: var(--ink-mute); text-align: center; }

/* =============================================================
   10. Footer
   ============================================================= */
.footer { border-top: 1px solid var(--line); padding-block: 3.5rem 2.5rem; }
.footer-inner { display: grid; gap: 1.75rem; }
.brand-logo {
  height: 42px; width: auto; display: block;
  background: #fff; padding: 5px 10px; border-radius: 8px;
}
.footer-brand { text-align: center; }
.footer-brand .brand { display: inline-flex; }
.footer-brand p { margin-top: .85rem; margin-inline: auto; color: var(--ink-mute); font-size: .9rem; max-width: 46ch; }
.footer-legal { font-size: .78rem; color: var(--ink-mute); opacity: .75; max-width: 68ch; margin-inline: auto; text-align: center; border-top: 1px solid var(--line); padding-top: 1.75rem; }
.footer-copy { font-size: .78rem; color: var(--ink-mute); opacity: .6; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.25rem; font-size: .78rem; }
.footer-links a { color: var(--ink-mute); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

/* =============================================================
   11. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .grid-success { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .grid-success { grid-template-columns: repeat(2, 1fr); }
  .card-success.is-featured { grid-column: span 2; }
  .card-success.is-featured .success-media { aspect-ratio: 21 / 9; }
  .contact-inner { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

@media (min-width: 1280px) {
  .grid-success { grid-template-columns: repeat(3, 1fr); }
  .card-success.is-featured { grid-column: span 3; }
}

/* =============================================================
   12. Legal pages
   ============================================================= */
.legal-topbar { border-bottom: 1px solid var(--line); padding-block: 1.75rem; }
.legal-topbar-inner { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; text-align: center; }
.legal-logo { display: inline-flex; }
.legal-logo img { height: 44px; width: auto; display: block; background: #fff; padding: 6px 12px; border-radius: 10px; }
.legal-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; }
.legal-nav a {
  font-family: var(--mono); font-size: .72rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-mute); text-decoration: none;
  padding-bottom: .3rem; border-bottom: 2px solid transparent;
}
.legal-nav a:hover { color: var(--ink-soft); }
.legal-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

.legal-page { max-width: 760px; padding-block: clamp(2.5rem, 6vw, 4rem) 4rem; }
.legal-eyebrow {
  font-family: var(--mono); font-size: .68rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); text-align: center; margin-bottom: .75rem;
}
.legal-page h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); text-align: center; margin-bottom: .6rem; }
.legal-subtitle { text-align: center; color: var(--ink-mute); max-width: 52ch; margin-inline: auto; margin-bottom: 2rem; }

.legal-meta { display: grid; gap: .5rem; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; margin-bottom: 2.5rem; }
.legal-meta div { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .88rem; }
.legal-meta dt { color: var(--ink-mute); margin: 0; }
.legal-meta dd { color: var(--ink); font-weight: 600; text-align: right; margin: 0; }

.legal-body h2 { font-size: 1.15rem; margin-top: 2.2rem; margin-bottom: .75rem; }
.legal-body h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; margin-top: 1.5rem; margin-bottom: .4rem; color: var(--ink-soft); }
.legal-body p { margin: 0 0 1rem; line-height: 1.7; }
.legal-body ul { margin: 0 0 1rem; padding-left: 1.2rem; display: grid; gap: .4rem; }
.legal-body li { line-height: 1.6; }
.legal-body a { color: var(--accent); }
.legal-body .legal-footnote { font-size: .82rem; color: var(--ink-mute); margin-top: 2.5rem; }

.legal-back { display: inline-flex; align-items: center; gap: .4rem; margin-top: 3rem; font-family: var(--mono); font-size: .8rem; color: var(--ink-mute); text-decoration: none; }
.legal-back:hover { color: var(--accent); }

/* =============================================================
   13. Formulario: honeypot, nota, consentimiento
   ============================================================= */
.field-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.field-note { margin: -0.75rem 0 0; font-size: .78rem; color: var(--ink-mute); }
.consent-check { display: flex; align-items: flex-start; gap: .6rem; font-size: .82rem; color: var(--ink-soft); cursor: pointer; }
.consent-check input { margin-top: .2rem; flex: none; width: 1.05rem; height: 1.05rem; accent-color: var(--accent); }
.consent-check a { color: var(--accent); text-decoration: underline; }
.vsl-title { font-weight: 800; font-size: 1.05rem; text-align: center; margin: 0 0 .75rem; }

.form-heading { display: flex; flex-direction: column; gap: .2rem; text-align: center; }
.form-title { font-family: var(--display); font-weight: 800; font-size: 1.05rem; color: var(--ink); margin: 0; }
.form-subtitle { font-size: .85rem; font-weight: 600; color: var(--ink-soft); margin: 0; }

/* Tarjeta del formulario en blanco (estilo eneryia) */
.cta-form {
  background: #ffffff;
  border-color: #e7e2d4;
}
.cta-form .form-title,
.cta-form .form-subtitle { color: #1a1714; }
.cta-form .form-subtitle em { color: var(--accent-deep); }
.cta-form .field label { color: #7a7362; }
.cta-form .field input,
.cta-form .field select,
.cta-form .field textarea {
  background: #faf8f3; border-color: #ddd6c4; color: #201b13;
}
.cta-form .field-note,
.cta-form .form-note { color: #8a8271; }
.cta-form .consent-check { color: #4a4535; }
.cta-form .consent-check a { color: var(--accent-deep); }

/* Prefijo +56 9 / bandera en el campo de celular */
.field-phone input { padding-left: 5.9rem; }
.field-phone label { left: 5.9rem; }
.field-phone .phone-code {
  position: absolute; left: 1rem; top: calc(50% + .5rem); transform: translateY(-50%);
  display: flex; align-items: center; gap: .35rem;
  font-size: .88rem; font-weight: 700; letter-spacing: .01em;
  color: var(--ink-mute); pointer-events: none; white-space: nowrap;
}
.field-phone .cl-flag { flex: none; border-radius: 2px; display: block; }
.cta-form .field-phone .phone-code { color: #6b634f; }
