/* Grupo Amazon Tech — estilos globales
   Estética: industrial oscura, acero + acento naranja (fundición) + oro sutil. */

:root {
  --bg: #0a0a0b;
  --bg-2: #111113;
  --bg-3: #18181b;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #f2f2f0;
  --muted: #a3a3a0;
  --dim: #6f6f6c;
  --accent: #e95126;
  --accent-2: #f4683d;
  --accent-ink: #1a0700;
  --gold: #e6b84f;
  --steel-1: #3a3b3f;
  --steel-2: #8d8f95;
  --ok: #b8f36b;
  --radius: 4px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --font: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; letter-spacing: -.02em; line-height: 1.08; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: 10px 14px; z-index: 999; }
.skip:focus { left: 10px; top: 10px; }

/* ---------- Tipografía utilitaria ---------- */
.kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; gap: 14px;
}
.kicker::after { content: ""; flex: 0 0 72px; height: 1px; background: var(--line-2); }
.kicker.no-line::after { display: none; }
.mono { font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.accent { color: var(--accent); }
.gold { color: var(--gold); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 60ch; }
.h-xl { font-size: clamp(40px, 6.4vw, 84px); }
.h-lg { font-size: clamp(32px, 4.6vw, 60px); }
.h-md { font-size: clamp(26px, 3vw, 38px); }
.h-sm { font-size: clamp(20px, 1.8vw, 24px); letter-spacing: -.01em; }

/* ---------- Botones ---------- */
.btn {
  --b: var(--accent);
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 22px;
  font-size: 15px; font-weight: 500;
  border-radius: var(--radius);
  background: var(--b); color: #fff;
  border: 1px solid var(--b);
  transition: transform .3s var(--ease-out), background .25s, color .25s, border-color .25s;
  cursor: pointer; font-family: inherit; line-height: 1.1;
}
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.06); border-color: var(--text); }
.btn-dark { background: #0d0d0e; border-color: #0d0d0e; }
.btn-dark:hover { background: #000; border-color: #000; }
.btn-wa { background: #1fa855; border-color: #1fa855; }
.btn-wa:hover { background: #22bb5f; border-color: #22bb5f; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; padding-bottom: 4px;
  border-bottom: 1px solid var(--line-2);
  transition: border-color .25s, gap .3s var(--ease-out);
}
.link-arrow svg { width: 15px; height: 15px; }
.link-arrow:hover { border-color: var(--accent); gap: 14px; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .site-header.is-open {
  background: rgba(10,10,11,.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { width: 32px; height: 32px; }
.brand-name { font-size: 14px; font-weight: 600; letter-spacing: .2em; line-height: 1.15; }
.brand-name small { display: block; font-family: var(--mono); font-weight: 400; font-size: 9.5px; letter-spacing: .18em; color: var(--muted); }
.menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu > li { position: relative; }
.menu > li > a, .menu > li > button {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 12px; font-size: 14px; color: var(--text);
  background: none; border: 0; font-family: inherit; cursor: pointer; border-radius: var(--radius);
}
.menu > li > a:hover, .menu > li > button:hover, .menu a[aria-current="page"] { color: var(--accent); }
.menu .caret { width: 10px; height: 10px; opacity: .7; }
.drop {
  position: absolute; top: 100%; left: 0; min-width: 290px;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 8px; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s, transform .25s var(--ease-out), visibility .2s;
}
.menu > li:hover .drop, .menu > li:focus-within .drop { opacity: 1; visibility: visible; transform: none; }
.drop a { display: block; padding: 10px 12px; border-radius: 3px; font-size: 14px; }
.drop a small { display: block; color: var(--dim); font-size: 12px; }
.drop a:hover { background: rgba(255,255,255,.05); color: var(--accent); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { padding: 11px 16px; font-size: 14px; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: var(--radius); background: none; color: var(--text); cursor: pointer; }
.burger span { display: block; width: 18px; height: 1.5px; background: currentColor; margin: 4px auto; transition: transform .3s; }
.is-open .burger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.is-open .burger span:nth-child(2) { opacity: 0; }
.is-open .burger span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 1080px) {
  .burger { display: block; }
  .nav-cta .btn { display: none; }
  .menu {
    position: fixed; inset: 76px 0 0 0; background: var(--bg);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 16px var(--gutter) 120px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .3s var(--ease-out), visibility .25s;
  }
  .is-open .menu { opacity: 1; visibility: visible; transform: none; }
  .menu > li > a, .menu > li > button { font-size: 20px; padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); border-radius: 0; }
  .drop { position: static; opacity: 1; visibility: visible; transform: none; border: 0; background: none; padding: 4px 0 10px 14px; min-width: 0; display: none; }
  .menu > li.sub-open .drop { display: block; }
  .menu .mobile-cta { display: block; padding-top: 22px; }
  .menu .mobile-cta .btn { width: 100%; justify-content: center; margin-bottom: 10px; }
}
.menu .mobile-cta { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px 0 56px;
  overflow: hidden;
  background:
    radial-gradient(60% 60% at 78% 42%, rgba(255,77,31,.16), transparent 62%),
    radial-gradient(40% 50% at 10% 100%, rgba(230,184,79,.06), transparent 70%),
    var(--bg);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(70% 70% at 70% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 70% at 70% 40%, #000 0%, transparent 75%);
  opacity: .5;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; }
.hero h1 { margin: 26px 0 22px; font-size: clamp(38px, 4.4vw, 64px); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-bottom: 34px; }
.hero-visual { position: relative; aspect-ratio: 680/500; margin-right: -40px; }
.hero-visual svg { width: 100%; height: 100%; overflow: visible; transition: transform .6s var(--ease-out); }
.hero-tag {
  position: absolute; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); display: flex; align-items: center; gap: 8px;
}
.hero-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.hero-tag.t1 { top: 6%; right: 4%; }
.hero-tag.t2 { bottom: 10%; left: 4%; }
.hero-tag.t2::before { background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin-top: 54px; }
.stat { padding: 0 28px; border-left: 1px solid var(--line-2); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat b { display: block; white-space: nowrap; font-weight: 400; font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.01em; line-height: 1.15; }
.stat span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.note { font-size: 13px; color: var(--dim); max-width: 70ch; }
.note::before { content: "* "; color: var(--accent); }

/* Hero interno (páginas) */
.page-hero {
  position: relative; padding: 150px 0 70px; overflow: hidden;
  background: radial-gradient(55% 80% at 85% 20%, rgba(255,77,31,.13), transparent 65%), var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-hero .grid-2 { align-items: center; }
.page-hero h1 { margin: 22px 0 20px; font-size: clamp(36px, 5vw, 66px); }
.page-hero .lead { margin-bottom: 30px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 6px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-2); }
.crumbs a:hover { color: var(--accent); }

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section.tight { padding: clamp(56px, 7vw, 90px) 0; }
.section.alt { background: var(--bg-2); }
.sec-head { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head h2 { margin-top: 22px; }
.sec-head .lead { margin-top: 18px; margin-bottom: 0; }
.side-note { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--line-2); padding-top: 10px; line-height: 1.8; min-width: 180px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Tarjetas de equipo — estilo columnas numeradas */
.cols { display: grid; grid-template-columns: repeat(3, 1fr); }
.col { padding: 0 26px; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.col:first-child { border-left: 0; padding-left: 0; }
.col:last-child { padding-right: 0; }
.col-num { display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.col-num i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.col-num::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.col:nth-child(2) .col-num i { background: var(--steel-2); }
.col:nth-child(3) .col-num i { background: var(--gold); }
.col-media { aspect-ratio: 16/10; background: linear-gradient(160deg, #1b1c1f, #0c0c0d); border: 1px solid var(--line); overflow: hidden; position: relative; }
.col-media svg, .col-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.col:hover .col-media svg, .col:hover .col-media img { transform: scale(1.04); }
.col h3 { margin: 22px 0 10px; font-size: 22px; }
.col p { color: var(--muted); font-size: 15.5px; }
.col-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chip { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 13px; color: var(--muted); }
.arrow-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); transition: background .25s, border-color .25s, transform .3s var(--ease-out); flex-shrink: 0; }
.arrow-btn svg { width: 15px; height: 15px; }
.col:hover .arrow-btn { background: var(--accent); border-color: var(--accent); transform: rotate(-45deg); }
.spec-mini { list-style: none; padding: 0; margin: 0 0 16px; font-size: 14px; }
.spec-mini li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.spec-mini li span { color: var(--dim); }

/* Cadena de valor */
.chain { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); }
.chain-step { padding: 28px 22px 30px; border-left: 1px solid var(--line); position: relative; transition: background .3s; }
.chain-step:first-child { border-left: 0; }
.chain-step:hover { background: rgba(255,77,31,.06); }
.chain-step .n { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: .12em; }
.chain-step h3 { font-size: 19px; margin: 34px 0 10px; letter-spacing: .02em; text-transform: uppercase; font-weight: 500; }
.chain-step p { font-size: 14.5px; color: var(--muted); margin: 0; }
.chain-step:not(:last-child)::after {
  content: "+"; position: absolute; right: -9px; top: 24px; z-index: 2;
  width: 18px; height: 18px; display: grid; place-items: center;
  background: var(--bg); color: var(--accent); font-family: var(--mono); font-size: 13px;
}
.section.alt .chain-step:not(:last-child)::after { background: var(--bg-2); }

/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; white-space: nowrap; }
.marquee-track { display: inline-flex; gap: 48px; animation: marquee 40s linear infinite; padding-left: 48px; }
.marquee span { font-size: clamp(22px, 3vw, 36px); letter-spacing: -.01em; color: var(--muted); display: inline-flex; align-items: center; gap: 48px; }
.marquee span::after { content: ""; width: 10px; height: 10px; background: var(--accent); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Problemas */
.problems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.problem { background: var(--bg); padding: 30px 26px; }
.section.alt .problem { background: var(--bg-2); }
.problem .ico { width: 34px; height: 34px; color: var(--accent); margin-bottom: 26px; }
.problem h3 { font-size: 19px; margin-bottom: 10px; letter-spacing: -.01em; }
.problem p { color: var(--muted); font-size: 15px; margin: 0; }

/* Lista con iconos */
.checks { list-style: none; padding: 0; margin: 0 0 24px; }
.checks li { position: relative; padding: 12px 0 12px 32px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 16px; }
.checks li b { color: var(--text); font-weight: 500; }
.checks li::before { content: ""; position: absolute; left: 0; top: 19px; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* Variables (factores) */
.vars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.var { border: 1px solid var(--line); padding: 22px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.02), transparent); }
.var .mono { color: var(--gold); }
.var h3 { font-size: 18px; margin: 14px 0 8px; }
.var p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* Banda naranja CTA */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--accent); color: #fff;
  padding: clamp(70px, 9vw, 120px) 0;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 90% at 85% 50%, rgba(0,0,0,.28), transparent 70%),
              radial-gradient(40% 60% at 0% 0%, rgba(255,255,255,.12), transparent 70%);
}
.cta-band .wrap { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.cta-band .kicker { color: rgba(255,255,255,.8); }
.cta-band .kicker::after { background: rgba(255,255,255,.4); }
.cta-band h2 { margin: 22px 0 18px; font-size: clamp(36px, 5.4vw, 72px); }
.cta-band p { color: rgba(255,255,255,.88); font-size: 18px; max-width: 52ch; }
.cta-band .btn-row { margin-top: 30px; }
.cta-band .small { font-size: 13px; color: rgba(255,255,255,.85); }
.cta-band .btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.cta-art { justify-self: end; width: min(100%, 420px); filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }

/* Spec table */
.spec { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.spec th, .spec td { text-align: left; padding: 15px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { font-weight: 400; color: var(--muted); width: 44%; padding-right: 20px; }
.spec td.pending { color: var(--dim); font-style: italic; }
.spec td b { font-weight: 500; }
.badge { display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 4px 8px; border-radius: 3px; background: rgba(255,77,31,.14); color: var(--accent-2); margin-left: 8px; vertical-align: middle; }

/* Figura de producto */
.figure { position: relative; border: 1px solid var(--line); background: linear-gradient(160deg, #19191c, #0b0b0c 70%); aspect-ratio: 4/3; overflow: hidden; }
.figure svg, .figure img { width: 100%; height: 100%; object-fit: cover; }
.figure figcaption { position: absolute; left: 14px; bottom: 12px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.photo { position: relative; overflow: hidden; border: 1px solid var(--line); }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.05) brightness(.85); transition: transform 1s var(--ease-out), filter .6s; }
.photo:hover img { transform: scale(1.03); filter: grayscale(0) contrast(1.05) brightness(.9); }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(10,10,11,.6)); pointer-events: none; }

/* Pasos */
.steps { counter-reset: s; display: grid; gap: 0; }
.step { counter-increment: s; display: grid; grid-template-columns: 80px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.step::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); color: var(--accent); font-size: 14px; padding-top: 4px; }
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 50px 22px 0; position: relative;
  font-size: clamp(17px, 1.6vw, 20px); letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 22px; color: var(--accent); transition: transform .3s var(--ease-out); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 0 24px; color: var(--muted); max-width: 75ch; }

/* Formulario */
.quote { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 5vw, 70px); }
.quote-aside h2 { margin: 22px 0 18px; }
.quote-aside .checks li { font-size: 15px; }
.wa-cards { display: grid; gap: 10px; margin-top: 26px; }
.wa-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: var(--radius); transition: border-color .25s, background .25s; }
.wa-card:hover { border-color: #1fa855; background: rgba(31,168,85,.08); }
.wa-card b { font-weight: 500; font-size: 18px; display: block; }
.wa-card small { color: var(--dim); font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }
.wa-card svg { width: 26px; height: 26px; color: #1fa855; flex-shrink: 0; }
form.qform { background: var(--bg-2); border: 1px solid var(--line); padding: clamp(22px, 3vw, 36px); border-radius: var(--radius); }
.section.alt form.qform { background: var(--bg); }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field label i { color: var(--accent); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-2);
  color: var(--text); font: inherit; font-size: 16px; padding: 10px 0; border-radius: 0;
  transition: border-color .25s;
}
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 24px; }
.field select option { background: var(--bg-2); color: var(--text); }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; }
.form-foot p { margin: 0; font-size: 13px; color: var(--dim); max-width: 36ch; }
.form-error { color: var(--accent-2); font-size: 14px; margin-top: 12px; display: none; }
.form-error.show { display: block; }

/* Proyectos (placeholder) */
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.slot { border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 22px; min-height: 260px; display: flex; flex-direction: column; background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,.015) 14px 28px); }
.slot .slot-media { flex: 1; min-height: 120px; display: grid; place-items: center; border: 1px solid var(--line); margin-bottom: 18px; color: var(--dim); font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.slot h3 { font-size: 18px; margin-bottom: 8px; }
.slot dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13.5px; }
.slot dt { color: var(--dim); }
.slot dd { margin: 0; color: var(--muted); font-style: italic; }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.post { background: var(--bg); padding: 28px 26px 30px; display: flex; flex-direction: column; min-height: 250px; transition: background .3s; }
.section.alt .post { background: var(--bg-2); }
a.post:hover { background: var(--bg-3); }
.post .mono { color: var(--accent); font-size: 11px; }
.post h3 { font-size: 21px; margin: 18px 0 12px; letter-spacing: -.015em; }
.post p { color: var(--muted); font-size: 15px; }
.post .more { margin-top: auto; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); }
.post .more svg { width: 14px; height: 14px; transition: transform .3s var(--ease-out); }
a.post:hover .more svg { transform: translateX(5px); }
.post.soon { opacity: .7; }
.post.soon .mono { color: var(--dim); }

/* Artículo */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(30px, 5vw, 80px); align-items: start; }
.prose { font-size: 18px; line-height: 1.75; color: #d9d9d6; max-width: 70ch; }
.prose h2 { font-size: clamp(25px, 2.6vw, 32px); margin: 2em 0 .7em; color: var(--text); }
.prose h3 { font-size: 21px; margin: 1.6em 0 .6em; color: var(--text); }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose a { color: var(--accent-2); border-bottom: 1px solid rgba(255,106,61,.35); }
.prose a:hover { border-color: var(--accent-2); }
.prose strong { color: var(--text); font-weight: 600; }
.prose blockquote { margin: 1.8em 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--accent); font-size: 22px; line-height: 1.4; color: var(--text); }
.prose .callout { border: 1px solid var(--line-2); background: var(--bg-2); padding: 22px 24px; border-radius: var(--radius); margin: 1.8em 0; font-size: 16.5px; }
.prose .callout p:last-child { margin: 0; }
.aside-card { position: sticky; top: 100px; border: 1px solid var(--line-2); padding: 26px; border-radius: var(--radius); background: var(--bg-2); }
.aside-card h3 { font-size: 22px; margin: 14px 0 10px; }
.aside-card p { color: var(--muted); font-size: 15px; }
.aside-card .btn { width: 100%; justify-content: center; margin-top: 8px; }
.aside-links { list-style: none; padding: 0; margin: 22px 0 0; border-top: 1px solid var(--line); }
.aside-links a { display: block; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.aside-links a:hover { color: var(--accent); }
.meta-line { display: flex; flex-wrap: wrap; gap: 18px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }

/* Enlaces relacionados */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rel { border: 1px solid var(--line); padding: 22px; border-radius: var(--radius); display: flex; flex-direction: column; gap: 12px; transition: border-color .25s, transform .4s var(--ease-out); }
.rel:hover { border-color: var(--accent); transform: translateY(-3px); }
.rel .mono { color: var(--dim); font-size: 10.5px; }
.rel b { font-weight: 400; font-size: 19px; letter-spacing: -.01em; line-height: 1.25; }

/* ---------- Footer ---------- */
.site-footer { background: #070708; border-top: 1px solid var(--line); padding: 80px 0 28px; }
.f-top { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 30px; }
.f-top h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-bottom: 18px; font-weight: 400; }
.f-top ul { list-style: none; padding: 0; margin: 0; }
.f-top li { margin-bottom: 10px; }
.f-top li a { color: var(--muted); font-size: 14.5px; }
.f-top li a:hover { color: var(--accent); }
.f-brand p { color: var(--muted); font-size: 15px; max-width: 34ch; margin-top: 18px; }
.f-claim { font-size: clamp(30px, 6vw, 88px); letter-spacing: -.03em; line-height: 1; margin: 70px 0 30px; color: #1d1d20; -webkit-text-stroke: 1px #2c2c30; user-select: none; }
.f-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 22px; font-size: 13px; color: var(--dim); }
.f-bottom a:hover { color: var(--accent); }

/* ---------- WhatsApp flotante + barra móvil ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; }
.wa-fab { width: 60px; height: 60px; border-radius: 50%; background: #1fa855; color: #fff; display: grid; place-items: center; border: 0; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.45); transition: transform .3s var(--ease-out); position: relative; }
.wa-fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #1fa855; animation: ping 2.6s var(--ease-out) infinite; }
.wa-fab:hover { transform: scale(1.06); }
.wa-fab svg { width: 30px; height: 30px; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
.wa-pop { position: absolute; right: 0; bottom: 74px; width: 290px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.5); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .3s var(--ease-out), visibility .2s; }
.wa-float.open .wa-pop { opacity: 1; visibility: visible; transform: none; }
.wa-pop p { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.wa-pop .wa-card { padding: 12px 14px; }
.wa-pop .wa-card b { font-size: 16px; }
.mbar { display: none; }
@media (max-width: 760px) {
  .wa-float { display: none; }
  .mbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(10,10,11,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line-2); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 10px; }
  .mbar .btn { justify-content: center; padding: 14px 10px; font-size: 14.5px; }
  .mbar .btn svg { width: 18px; height: 18px; }
  body { padding-bottom: 76px; }
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
.no-js .reveal { opacity: 1; transform: none; }

/* Animaciones SVG del equipo */
.deck-shake { animation: shake 1.1s ease-in-out infinite; transform-box: fill-box; }
@keyframes shake { 0%, 100% { transform: translate(0, 0); } 18% { transform: translate(5px, -2px); } 40% { transform: translate(-2px, .8px); } }
.flow { stroke-dasharray: 6 14; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -40; } }
.spark { animation: spark 3s ease-in-out infinite; }
.spark:nth-of-type(2n) { animation-delay: -1.2s; }
.spark:nth-of-type(3n) { animation-delay: -2.1s; }
@keyframes spark { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.spin-slow { animation: spin 14s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .wa-fab::before, .marquee-track { animation-duration: 90s; }
  .deck-shake { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .f-top { grid-template-columns: 1fr 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
  .chain { grid-template-columns: repeat(3, 1fr); }
  .chain-step:nth-child(4) { border-left: 0; }
  .chain-step:nth-child(n+4) { border-top: 1px solid var(--line); }
  .chain-step:nth-child(3)::after { display: none; }
  .article { grid-template-columns: 1fr; }
  .aside-card { position: static; }
}
@media (max-width: 900px) {
  .hero-grid, .grid-2, .quote, .cta-band .wrap { grid-template-columns: 1fr; }
  .hero { min-height: 0; padding-top: 110px; }
  .hero-visual { order: -1; max-width: 560px; width: 100%; margin: 0 auto -10px; }
  .stat { padding: 0 18px; }
  .cols { grid-template-columns: 1fr; gap: 48px; }
  .col, .col:first-child, .col:last-child { padding: 0; border: 0; }
  .problems, .vars, .posts, .related, .slots { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .sec-head { grid-template-columns: 1fr; }
  .side-note { display: none; }
  .cta-art { justify-self: center; width: min(80%, 340px); }
  .page-hero { padding: 120px 0 56px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .problems, .vars, .posts, .related, .slots, .grid-4 { grid-template-columns: 1fr; }
  .chain { grid-template-columns: 1fr; }
  .chain-step { border-left: 0 !important; border-top: 1px solid var(--line); }
  .chain-step:first-child { border-top: 0; }
  .chain-step::after { display: none; }
  .chain-step h3 { margin-top: 16px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 22px 0; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .fgrid { grid-template-columns: 1fr; }
  .f-top { grid-template-columns: 1fr 1fr; }
  .step { grid-template-columns: 1fr; gap: 6px; }
  .spec th { width: 50%; }
  .btn-row .btn { width: 100%; justify-content: center; }
  .prose { font-size: 17px; }
}

/* Hero: animación de entrada por CSS (no depende de JS ni del scroll) */
.hero .reveal, .page-hero .reveal { opacity: 1; transform: none; transition: none; animation: rise .9s var(--ease-out) both; }
.hero .reveal.d1, .page-hero .reveal.d1 { animation-delay: .08s; }
.hero .reveal.d2, .page-hero .reveal.d2 { animation-delay: .18s; }
.hero .reveal.d3, .page-hero .reveal.d3 { animation-delay: .28s; }
.hero .reveal.d4, .page-hero .reveal.d4 { animation-delay: .38s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* backdrop-filter crea un bloque contenedor para position:fixed; se quita con el menú abierto */
@media (max-width: 1080px) {
  .site-header.is-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .menu { height: calc(100dvh - 76px); }
}

/* Logo */
.brand-logo { height: 38px; width: auto; display: block; }
.site-footer .brand-logo { height: 46px; }
@media (max-width: 600px) { .brand-logo { height: 32px; } }

/* Renders 3D (fondo transparente) */
.figure.render img, .col-media.render img { object-fit: contain; padding: 6% 7%; }
.figure.render { background: radial-gradient(70% 70% at 60% 45%, rgba(233,81,38,.18), transparent 70%), linear-gradient(160deg, #19191c, #0b0b0c 70%); }
.col-media.render { background: radial-gradient(70% 80% at 60% 50%, rgba(233,81,38,.14), transparent 70%), linear-gradient(160deg, #1b1c1f, #0c0c0d); }
.hero-visual img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 40px 50px rgba(0,0,0,.6)); transition: transform .6s var(--ease-out); }

/* Galería de fotos reales */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery.g3 { grid-template-columns: repeat(3, 1fr); }
.gallery figure { margin: 0; position: relative; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 3/4; background: var(--bg-3); }
.gallery figure.wide { grid-column: span 2; aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; font-size: 13px; color: #e6e6e3; background: linear-gradient(180deg, transparent, rgba(5,5,6,.88)); }
.gallery figcaption .mono { display: block; color: var(--accent-2); font-size: 10px; margin-bottom: 3px; }
@media (max-width: 900px) { .gallery, .gallery.g3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .gallery figure.wide { grid-column: span 2; aspect-ratio: 16/10; } }
