/* AUREA · landing v1 · una familia (Archivo variable), cobre como única tinta */

:root {
  --bg: #ffffff;            --bg: oklch(1 0 0);
  --surface: #f3f3f3;       --surface: oklch(0.965 0 0);
  --line: #d7d7d7;          --line: oklch(0.88 0 0);
  --ink: #16100d;           --ink: oklch(0.18 0.012 49);
  --ink-2: #433b38;         --ink-2: oklch(0.36 0.012 49);
  --muted: #655b56;         --muted: oklch(0.48 0.015 49);
  --copper: #bd4e00;        --copper: oklch(0.56 0.165 49);
  --copper-deep: #993700;   --copper-deep: oklch(0.47 0.15 49);
  --copper-bright: #f87100; --copper-bright: oklch(0.70 0.19 49);
  --copper-drench: #ae4300; --copper-drench: oklch(0.52 0.16 49);

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wrap: 72rem;
  --narrow: 44rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --space: clamp(3rem, 8vw, 7rem);
  --radius: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --z-bar: 10;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(1.0625rem, 0.5vw + 0.95rem, 1.125rem);
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--copper-deep); text-underline-offset: 0.15em; }
a:hover { color: var(--copper); }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1rem; text-wrap: pretty; }
h1, h2, h3 { margin: 0; text-wrap: balance; line-height: 1.05; letter-spacing: -0.02em; }
small { font-size: 0.875em; color: var(--muted); }
strong { font-weight: 650; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap--narrow { max-width: var(--narrow); }

/* ---------- barra ---------- */
.bar { position: sticky; top: 0; z-index: var(--z-bar); background: color-mix(in oklab, var(--bg) 92%, transparent); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); }
.bar__in { display: flex; align-items: center; gap: 1rem; min-height: 3.5rem; }
.brand { font-weight: 900; font-variation-settings: "wdth" 125; letter-spacing: 0.04em; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.bar__meta { margin: 0 auto 0 0; font-size: 0.9rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bar__cta { font-weight: 650; font-size: 0.95rem; text-decoration: none; color: var(--copper-deep); white-space: nowrap; }
@media (max-width: 40rem) { .bar__meta { display: none; } }

/* ---------- hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem); }
.hero__grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 60rem) { .hero__grid { grid-template-columns: 7fr 5fr; } }
.hero__title { font-size: clamp(2.35rem, 6.2vw, 4.6rem); font-weight: 850; font-variation-settings: "wdth" 110; line-height: 1.0; }
.hero__title .line { display: block; }
.line--accent { color: var(--copper); }
.hero__lead { margin-top: 1.5rem; max-width: 36rem; font-size: clamp(1.1rem, 0.6vw + 1rem, 1.3rem); color: var(--ink-2); }
.facts { display: grid; gap: 1.25rem 2rem; margin: 2rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid var(--line); }
@media (min-width: 40rem) { .facts { grid-template-columns: repeat(3, 1fr); } }
.facts div { margin: 0; }
.facts dt { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--copper-deep); margin-bottom: 0.25rem; }
.facts dd { margin: 0; font-weight: 600; line-height: 1.35; font-variant-numeric: tabular-nums; }
.facts dd small { display: block; font-weight: 400; margin-top: 0.2rem; }

/* ---------- formulario ---------- */
.form { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: clamp(1.25rem, 3vw, 2rem); box-shadow: 0 1px 2px rgba(22,16,13,0.04), 0 24px 48px -32px rgba(22,16,13,0.25); }
.form__title { font-size: 1.5rem; font-weight: 800; font-variation-settings: "wdth" 110; }
.form__hint { color: var(--muted); font-size: 0.95rem; margin: 0.35rem 0 1.25rem; }
.field { margin: 0 0 1rem; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 650; font-size: 0.95rem; margin-bottom: 0.4rem; }
.field__note { font-size: 0.85rem; color: var(--muted); margin: 0.4rem 0 0; }
input[type="text"], input[type="email"], input[type="tel"], select {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 0.8rem 0.9rem; min-height: 3.1rem;
}
input::placeholder { color: var(--muted); }
input:focus, select:focus { outline: none; border-color: var(--copper); box-shadow: 0 0 0 3px color-mix(in oklab, var(--copper) 28%, transparent); background: var(--bg); }
input:user-invalid, select:user-invalid { border-color: var(--copper-deep); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2316100d' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.5rem; }
.phone { display: grid; grid-template-columns: 7.25rem 1fr; gap: 0.5rem; }
.check { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.9rem; color: var(--ink-2); margin: 0 0 0.85rem; cursor: pointer; }
.check input { flex: none; width: 1.25rem; height: 1.25rem; margin: 0.1rem 0 0; accent-color: var(--copper); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__fine { font-size: 0.82rem; color: var(--muted); margin: 0.9rem 0 0; }
.form__error { color: var(--copper-deep); font-weight: 600; font-size: 0.95rem; margin: 0 0 0.75rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3.25rem; padding: 0.85rem 1.5rem; border-radius: var(--radius); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background-color 160ms var(--ease), transform 160ms var(--ease), box-shadow 160ms var(--ease); }
.btn--primary { background: var(--copper); color: #fff; }
.btn--primary:hover { background: var(--copper-deep); color: #fff; }
.btn--primary:active { transform: translateY(1px); }
.btn--block { width: 100%; margin-top: 0.5rem; }
.btn--light { background: #fff; color: var(--copper-deep); }
.btn--light:hover { background: var(--surface); color: var(--copper-deep); }
.btn--ghost { background: transparent; color: var(--copper-deep); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--copper); }
.btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }

/* ---------- banda de imagen ---------- */
.band { margin: 0; position: relative; }
.band img { width: 100%; height: clamp(14rem, 38vw, 30rem); object-fit: cover; }
.band figcaption { position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); color: #fff; font-weight: 600; font-size: clamp(0.95rem, 1.4vw, 1.15rem); text-shadow: 0 1px 2px rgba(0,0,0,0.5), 0 0 24px rgba(0,0,0,0.35); text-wrap: balance; }

/* ---------- secciones ---------- */
.section { padding-block: var(--space); }
.section--alt { background: var(--surface); }
.section__title { font-size: clamp(1.75rem, 4.2vw, 2.75rem); font-weight: 800; font-variation-settings: "wdth" 110; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.section__title--quiet { color: var(--ink-2); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); max-width: 52rem; }
.steps li { display: grid; grid-template-columns: 3.25rem 1fr; gap: 1rem; align-items: start; }
.steps__n { font-size: 2.25rem; font-weight: 900; font-variation-settings: "wdth" 125; color: var(--copper); line-height: 1; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.25; margin-bottom: 0.35rem; }
.steps p { margin: 0; color: var(--ink-2); }

.split { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 52rem) { .split { grid-template-columns: 1fr 1fr; } }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.list li { position: relative; padding-left: 1.9rem; }
.list li::before { position: absolute; left: 0; top: 0.05em; font-weight: 900; font-size: 1.1em; }
.list--yes li::before { content: "✓"; color: var(--copper); }
.list--no li::before { content: "✕"; color: var(--muted); }
.list--dash li::before { content: "—"; color: var(--copper); }

.media { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (min-width: 56rem) { .media { grid-template-columns: 5fr 7fr; } }
.media__img img { border-radius: 16px; aspect-ratio: 4 / 5; object-fit: cover; }
.media__copy h3 { font-size: 1.15rem; font-weight: 750; margin: 1.5rem 0 0.75rem; }
.note { margin-top: 1.5rem; padding: 0.9rem 1rem; background: var(--surface); border-radius: var(--radius); font-size: 0.95rem; color: var(--ink-2); }
.section--alt .note { background: var(--bg); }

.who { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (min-width: 56rem) { .who { grid-template-columns: 4fr 7fr; } }
.who__photo img { border-radius: 16px; aspect-ratio: 1; object-fit: cover; }
.who__name { font-size: 1.35rem; font-weight: 800; font-variation-settings: "wdth" 110; margin-bottom: 0.1rem; }
.who__role { color: var(--copper-deep); font-weight: 600; margin-bottom: 1rem; }

.faq { border-top: 1px solid var(--line); }
.faq:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2.25rem 1.1rem 0; font-weight: 700; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.95rem; font-size: 1.5rem; font-weight: 500; color: var(--copper); transition: transform 200ms var(--ease); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 1.2rem; color: var(--ink-2); max-width: 60ch; }

.cta { background: var(--copper-drench); color: #fff; padding-block: clamp(3.5rem, 9vw, 7rem); }
.cta__in { text-align: center; max-width: 44rem; }
.cta__title { font-size: clamp(2rem, 5.5vw, 3.75rem); font-weight: 850; font-variation-settings: "wdth" 110; }
.cta__text { margin: 1rem 0 1.75rem; font-size: 1.15rem; font-variant-numeric: tabular-nums; color: #fff; }

/* ---------- pie ---------- */
.foot { padding-block: 2.5rem 3rem; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--ink-2); }
.foot__legal { max-width: 70ch; }
.foot__links a { color: var(--ink-2); }
.foot__copy { color: var(--muted); margin: 0; }

/* ---------- gracias ---------- */
.thanks { padding-block: clamp(2.5rem, 6vw, 5rem); }
.thanks__kicker { color: var(--copper-deep); font-weight: 700; margin-bottom: 0.5rem; }
.thanks__title { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 850; font-variation-settings: "wdth" 110; margin-bottom: 2.5rem; }
.thanks__step { padding: 1.75rem 0; border-top: 1px solid var(--line); }
.thanks__step h2 { display: flex; align-items: center; gap: 0.75rem; font-size: 1.4rem; font-weight: 800; margin-bottom: 0.5rem; }
.thanks__step h2 .steps__n { font-size: 1.75rem; }
.thanks__step--quiet { color: var(--ink-2); }
.form--inline { border: 0; box-shadow: none; padding: 0.5rem 0 0; }
.radio { display: flex; gap: 0.6rem; align-items: center; padding: 0.55rem 0; cursor: pointer; }
.radio input { accent-color: var(--copper); width: 1.15rem; height: 1.15rem; margin: 0; }

/* ---------- prosa legal ---------- */
.prose { padding-block: clamp(2rem, 5vw, 4rem); }
.prose h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 850; font-variation-settings: "wdth" 110; margin-bottom: 1.5rem; }
.prose h2 { font-size: 1.25rem; font-weight: 750; margin: 1.75rem 0 0.5rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }

/* ---------- motion (solo con JS, respetando reduced-motion) ---------- */
html.js .hero__title .line { opacity: 0; transform: translateY(14px); animation: rise 520ms var(--ease) forwards; }
html.js .hero__title .line:nth-child(2) { animation-delay: 70ms; }
html.js .hero__title .line:nth-child(3) { animation-delay: 140ms; }
html.js .hero__lead, html.js .facts, html.js .form { opacity: 0; animation: rise 600ms var(--ease) forwards; animation-delay: 220ms; }
html.js .form { animation-delay: 300ms; }
@keyframes rise { to { opacity: 1; transform: none; } }
html.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 480ms var(--ease), transform 480ms var(--ease); }
html.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .hero__title .line, html.js .hero__lead, html.js .facts, html.js .form { animation: none; opacity: 1; transform: none; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .faq summary::after { transition: none; }
}
