:root {
  --black: #0a0a0a;
  --black-2: #171717;
  --black-3: #262626;
  --accent: #d4d4d4;
  --accent-dark: #404040;
  --accent-soft: #efefef;
  --paper: #f5f5f5;
  --ink: #0a0a0a;
  --text: #404040;
  --muted: #737373;
  --line: #e5e5e5;
  --white: #fff;
  --ok: #1f8a5b;
  --err: #c0392b;

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

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 12px 32px -12px rgba(0, 0, 0, .16);
  --container: 1160px;
  --header-h: 72px;
}

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

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

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

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

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

h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.025em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.12rem; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.narrow { max-width: 820px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--white); color: var(--black); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid #a3a3a3; outline-offset: 3px; border-radius: 6px; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--black); --fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.4em; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--bg); color: var(--fg);
  font: 600 1rem/1.2 var(--font-body); cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-light { --bg: var(--white); --fg: var(--black); box-shadow: 0 8px 24px -12px rgba(255, 255, 255, .35); }
.btn-light:hover { --bg: #e5e5e5; }
.btn-dark { --bg: var(--black); --fg: var(--white); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .6); }
.btn-dark:hover { --bg: var(--black-3); }
.btn-ghost { --bg: transparent; --fg: var(--white); border-color: rgba(255, 255, 255, .28); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .06); }
.btn-sm { padding: .55em 1.1em; font-size: .92rem; }
.btn-lg { padding: 1em 1.7em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-sm { white-space: nowrap; }
.label-short { display: none; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header.is-scrolled {
  background: rgba(10, 10, 10, .86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}
.header-inner { display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .72); font-size: 1.2rem; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 9px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
.brand strong { color: var(--white); font-weight: 800; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: rgba(255, 255, 255, .78); font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--white); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--black); color: rgba(255, 255, 255, .78);
  padding: calc(var(--header-h) + clamp(64px, 12vw, 140px)) 0 clamp(80px, 12vw, 140px);
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 85% 0%, rgba(255, 255, 255, .10), transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(255, 255, 255, .05), transparent 60%),
    linear-gradient(160deg, var(--black) 0%, var(--black-2) 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(80% 80% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(80% 80% at 50% 30%, #000 30%, transparent 80%);
}
.hero-inner { max-width: 900px; margin-left: max(20px, calc((100% - var(--container)) / 2)); }
.hero h1 { color: var(--white); }
.hero h1 em { font-style: normal; color: #8a8a8a; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); max-width: 680px; margin-bottom: 2em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-points {
  display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; padding: 0; margin: 40px 0 0;
  font-size: .95rem; color: rgba(255, 255, 255, .7);
}
.hero-points li { display: flex; align-items: center; gap: 10px; }
.hero-points li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: rgba(255, 255, 255, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.eyebrow {
  display: inline-block; margin-bottom: 1.1em;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #a3a3a3;
}
.eyebrow-dark { color: var(--muted); }

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-alt { background: var(--white); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p:last-child { font-size: 1.08rem; }

.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 20px 40px -16px rgba(0,0,0,.22); }
.card p { font-size: .97rem; margin: 0; }

.card-icon, .feature-icon, .contact-points span {
  display: grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 18px;
  background: var(--accent-soft); color: var(--accent-dark);
}
.card-icon svg, .feature-icon svg, .contact-points svg {
  width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.split-text { position: sticky; top: calc(var(--header-h) + 32px); }
.split-text p { font-size: 1.08rem; }

.link-arrow { font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.link-arrow::after { content: "→"; transition: transform .2s ease; }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover::after { transform: translateX(4px); }

.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.feature {
  display: flex; gap: 20px; padding: 24px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line);
}
.feature .feature-icon { margin: 0; }
.feature p { margin: 0; font-size: .98rem; }
.feature h3 { margin-bottom: .3em; }

/* ---------- Pasos ---------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step;
}
.step { position: relative; padding: 28px 24px 24px; border-top: 2px solid var(--line); }
.step::before {
  content: ""; position: absolute; top: -2px; left: 0; width: 56px; height: 2px; background: var(--black);
}
.step-num { display: block; font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; color: var(--accent-dark); line-height: 1; margin-bottom: 18px; }
.step p { font-size: .97rem; margin: 0; }

/* ---------- Sección oscura ---------- */
.section-dark { background: var(--black); color: rgba(255, 255, 255, .74); position: relative; overflow: hidden; }
.section-dark::before {
  content: ""; position: absolute; inset: auto -10% -40% auto; width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 255, 255, .07), transparent 65%); pointer-events: none;
}
.section-dark h2, .section-dark strong { color: var(--white); }

.tags { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  padding: 7px 14px; border-radius: 999px; font-size: .88rem; font-weight: 500;
  border: 1px solid rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .04);
}

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; }
.checklist li {
  position: relative; padding: 22px 24px 22px 64px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09);
}
.checklist li::before {
  content: ""; position: absolute; left: 22px; top: 24px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: box-shadow .2s ease; }
.faq-item[open] { box-shadow: var(--shadow); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative;
  font-weight: 600; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--accent-dark); border-bottom: 2px solid var(--accent-dark);
  transform: rotate(45deg); transition: transform .25s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-item p { padding: 0 24px 22px; margin: 0; }

/* ---------- Contacto ---------- */
.section-contact { background: linear-gradient(180deg, var(--black) 0%, var(--black-2) 100%); color: rgba(255, 255, 255, .76); }
.section-contact h2 { color: var(--white); }
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact-intro p { font-size: 1.08rem; }
.contact-points { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
.contact-points li { display: flex; align-items: center; gap: 16px; }
.contact-points span { margin: 0; width: 42px; height: 42px; background: rgba(255, 255, 255, .08); color: var(--white); }
.contact-points svg { width: 20px; height: 20px; }

.form {
  background: var(--white); color: var(--text); border-radius: 22px;
  padding: clamp(24px, 4vw, 40px); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: #fafafa;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background: #fafafa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--black); background: var(--white); box-shadow: 0 0 0 4px rgba(0, 0, 0, .08);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--err); }
.field-error { font-size: .82rem; color: var(--err); margin-top: 6px; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; margin: 4px 0 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent-dark); flex: none; }
.check.has-error span { color: var(--err); }
.form-legal { font-size: .78rem; color: var(--muted); line-height: 1.5; margin-bottom: 22px; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status:empty { display: none; }
.form-status p { margin: 18px 0 0; padding: 14px 16px; border-radius: 10px; font-size: .95rem; font-weight: 500; }
.form-status .ok { background: #e8f6ef; color: var(--ok); }
.form-status .err { background: #fdecea; color: var(--err); }

.form.is-sent .form-row, .form.is-sent .field, .form.is-sent .check, .form.is-sent .form-legal, .form.is-sent [data-submit] { display: none; }
.form.is-sent .form-status p { margin: 0; padding: 28px; font-size: 1.05rem; text-align: center; }

.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .3); border-top-color: var(--white); animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.site-footer { background: #000; color: rgba(255, 255, 255, .55); padding: 40px 0; font-size: .92rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.footer-claim { margin: 0; }
.footer-links { display: flex; gap: 20px; margin-left: auto; }
.footer-links a { color: rgba(255, 255, 255, .7); }
.footer-copy { margin: 0; width: 100%; font-size: .84rem; color: rgba(255, 255, 255, .4); }

/* ---------- Página legal ---------- */
.legal { padding: calc(var(--header-h) + 64px) 0 96px; }
.legal h1 { font-size: clamp(2rem, 4vw, 3rem); }
.legal h2 { font-size: 1.4rem; margin-top: 1.6em; font-family: var(--font-body); font-weight: 700; letter-spacing: -.01em; }
.legal-page .site-header { background: var(--black); }

/* ---------- Animaciones ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .split, .contact { grid-template-columns: 1fr; }
  .split-text { position: static; }
}
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .nav { display: none; }
  .header-inner { justify-content: space-between; }
  .brand { font-size: 1.08rem; }
  .grid-4, .steps, .form-row { grid-template-columns: 1fr; }
  .form-row { gap: 0; }
  .hero-actions .btn { flex: 1 1 100%; }
  .feature { flex-direction: column; gap: 14px; }
  .footer-links { margin-left: 0; }
}
@media (max-width: 440px) {
  .header-inner .label-long { display: none; }
  .header-inner .label-short { display: inline; }
}
