/* ---------- Tokens ---------- */
:root {
  --bg: #0b0f1a;
  --surface: #141a2a;
  --surface-2: #1b2338;
  --line: #27314a;
  --primary: #ff6b1a;
  --primary-ink: #1a0c02;
  --cyan: #22d3ee;
  --amber: #ffc53d;
  --text: #f4f6fb;
  --muted: #9aa4b8;
  --wa: #25d366;
  --radius: 18px;
  --max: 1160px;
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6.2vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px;
}
.lead { color: var(--muted); font-size: 1.1rem; max-width: 60ch; }
.section-head { margin-bottom: 44px; }
.grad {
  background: linear-gradient(90deg, var(--primary), var(--amber) 45%, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px; border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem var(--font-head); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: var(--primary-ink); box-shadow: 0 10px 30px -10px rgba(255, 107, 26, .7); }
.btn-primary:hover { box-shadow: 0 16px 40px -10px rgba(255, 107, 26, .85); }
.btn-wa { background: var(--wa); color: #06260f; box-shadow: 0 10px 30px -12px rgba(37, 211, 102, .7); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: var(--cyan); }
.btn-sm { padding: 10px 18px; font-size: .92rem; }

/* ---------- Cabecera ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.header.scrolled { background: rgba(11, 15, 26, .82); backdrop-filter: blur(14px); border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.25rem var(--font-head); }
.brand svg { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--muted); font-size: .95rem; transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(120px, 16vw, 170px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 85% 20%, rgba(34, 211, 238, .13), transparent 70%),
    radial-gradient(500px 400px at 10% 80%, rgba(255, 107, 26, .14), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 10%, transparent 70%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero .lead { font-size: 1.2rem; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: .93rem; }
.hero-notes li { display: flex; align-items: center; gap: 8px; }
.hero-notes li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.printer { width: 100%; max-width: 440px; margin-inline: auto; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .5)); }
.line-wrap { display: block; overflow: hidden; }
.line-wrap > span { display: block; }

/* ---------- Barra de confianza ---------- */
.trust { padding: 0; }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.trust-item { padding: 26px 22px; text-align: center; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-num { font: 700 2.3rem var(--font-head); color: var(--text); line-height: 1; }
.trust-num small { font-size: 1.1rem; color: var(--primary); margin-left: 3px; }
.trust-label { color: var(--muted); font-size: .92rem; margin-top: 8px; }

/* ---------- Cinta ---------- */
.marquee { overflow: hidden; padding: 26px 0; border-block: 1px solid var(--line); margin-top: clamp(48px, 7vw, 90px); }
.marquee-track { display: flex; gap: 46px; width: max-content; animation: marquee 32s linear infinite; }
.marquee span { font: 600 1.05rem var(--font-head); color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 46px; }
.marquee span::after { content: "◆"; font-size: .7rem; color: var(--primary); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Tarjetas ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; overflow: hidden; transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .25s ease, border-color .25s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(34, 211, 238, .14), transparent 60%);
}
.card:hover { border-color: #3a4868; }
.card:hover::before { opacity: 1; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
.icon {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(255, 107, 26, .12); color: var(--primary);
}
.icon svg { width: 26px; height: 26px; }
.card:nth-child(3n+2) .icon { background: rgba(34, 211, 238, .12); color: var(--cyan); }
.card:nth-child(3n) .icon { background: rgba(255, 197, 61, .12); color: var(--amber); }

/* ---------- Pasos ---------- */
.alt { background: linear-gradient(180deg, transparent, rgba(20, 26, 42, .7) 15%, rgba(20, 26, 42, .7) 85%, transparent); }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: paso; }
.steps-line { position: absolute; top: 27px; left: 8%; right: 8%; height: 2px; background: var(--line); }
.steps-line i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--amber), var(--cyan)); transform-origin: left; }
.step { position: relative; }
.step-num {
  counter-increment: paso; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); border: 2px solid var(--primary); font: 700 1.3rem var(--font-head); margin-bottom: 20px;
}
.step-num::before { content: counter(paso); }
.step:nth-child(3) .step-num { border-color: var(--amber); }
.step:nth-child(4) .step-num { border-color: var(--cyan); }
.step p { color: var(--muted); }
.center-cta { text-align: center; margin-top: 48px; }

/* ---------- Galería ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.filter {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  color: var(--muted); font: 500 .92rem var(--font-body); cursor: pointer; transition: all .2s;
}
.filter:hover { color: var(--text); border-color: #3a4868; }
.filter[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.shot { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); margin: 0; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.shot:hover img { transform: scale(1.06); }
.shot figcaption {
  position: absolute; inset: auto 0 0 0; padding: 30px 16px 14px; font-size: .92rem; font-weight: 500;
  background: linear-gradient(transparent, rgba(5, 8, 15, .9));
}
.shot.placeholder { display: grid; place-items: center; color: var(--muted); font-size: .9rem; border-style: dashed;
  background: repeating-linear-gradient(135deg, var(--surface) 0 14px, var(--surface-2) 14px 28px); }
.shot[hidden] { display: none; }

/* ---------- Materiales ---------- */
.materials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.material h3 { display: flex; align-items: baseline; gap: 10px; }
.material h3 small { font: 500 .8rem var(--font-body); color: var(--muted); letter-spacing: 0; }
.material ul { margin: 14px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .95rem; }
.material li { padding: 7px 0 7px 22px; position: relative; border-top: 1px solid var(--line); }
.material li::before { content: "✓"; position: absolute; left: 0; color: var(--cyan); }
.specs { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.chip b { color: var(--text); font-weight: 600; }

.swatches { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.swatch { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; }
.swatch i { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); }

/* ---------- Estimador ---------- */
.estimator { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: stretch; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.est-result { display: flex; flex-direction: column; justify-content: center; text-align: center; background: linear-gradient(160deg, var(--surface-2), var(--surface)); }
.est-price { font: 700 clamp(1.6rem, 3.4vw, 2.3rem) var(--font-head); margin: 8px 0 6px; }
.est-note { color: var(--muted); font-size: .88rem; margin-bottom: 20px; }

/* ---------- Testimonios ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote blockquote { margin: 0 0 16px; font-size: 1.02rem; }
.quote cite { font-style: normal; color: var(--muted); font-size: .92rem; }
.stars { color: var(--amber); letter-spacing: 3px; margin-bottom: 12px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font: 600 1.08rem var(--font-head);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 400; color: var(--primary); transition: transform .25s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 22px; margin: 0; max-width: 68ch; }

/* ---------- Formulario ---------- */
.quote-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: start; }
.checklist { list-style: none; padding: 0; margin: 24px 0 30px; }
.checklist li { padding: 9px 0 9px 32px; position: relative; color: var(--muted); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 9px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(34, 211, 238, .15); color: var(--cyan); display: grid; place-items: center; font-size: .78rem; font-weight: 700;
}
.form { display: grid; gap: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: .9rem; font-weight: 500; margin-bottom: 7px; }
.field label span { color: var(--muted); font-weight: 400; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field input[type="number"], .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(34, 211, 238, .15); }
.drop {
  border: 2px dashed var(--line); border-radius: 14px; padding: 22px; text-align: center; color: var(--muted);
  cursor: pointer; transition: border-color .2s, background .2s; font-size: .95rem;
}
.drop:hover, .drop.over { border-color: var(--primary); background: rgba(255, 107, 26, .06); }
.drop b { color: var(--text); }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.consent input { margin-top: 4px; accent-color: var(--primary); width: 18px; height: 18px; flex: none; }
.form-msg { font-size: .92rem; color: var(--amber); min-height: 1.4em; margin: 0; }
.hp { position: absolute; left: -9999px; }

/* ---------- CTA final y pie ---------- */
.final { text-align: center; }
.final-box {
  border-radius: 28px; padding: clamp(40px, 7vw, 80px) 24px; border: 1px solid var(--line);
  background: radial-gradient(600px 300px at 50% 0%, rgba(255, 107, 26, .22), transparent 70%), var(--surface);
}
.final-box .lead { margin-inline: auto; margin-bottom: 28px; }
.footer { border-top: 1px solid var(--line); padding: 40px 0 110px; color: var(--muted); font-size: .92rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; padding: 0; margin: 0; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; align-items: center; gap: 10px;
  padding: 14px 20px 14px 16px; border-radius: 999px; background: var(--wa); color: #06260f;
  font: 700 .98rem var(--font-head); text-decoration: none;
  box-shadow: 0 14px 40px -8px rgba(37, 211, 102, .6); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.05); }
.wa-float svg { width: 26px; height: 26px; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--wa);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.35, 1.7); opacity: 0; } }

/* ---------- Páginas simples ---------- */
.page { padding-top: 130px; max-width: 780px; }
.page h2 { font-size: 1.4rem; margin-top: 1.8em; }
.page p, .page li { color: var(--muted); }

/* ---------- Adaptable ---------- */
@media (max-width: 960px) {
  .hero-grid, .quote-grid, .estimator { grid-template-columns: 1fr; }
  .printer { max-width: 320px; }
  .cards, .materials, .quotes, .gallery { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 20px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); display: block; }
  .nav-links .btn { margin-top: 16px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .cards, .materials, .quotes, .steps, .row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .steps-line { display: none; }
  .hero-cta .btn { width: 100%; }
  .wa-float span { display: none; }
  .wa-float { padding: 15px; }
  .panel { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .wa-float::before { animation: none; }
  .card { transform: none; }
  * { transition-duration: .01ms !important; }
}
