/* AutomatIzA — hoja de estilos principal */
:root {
  --bg: #0B0F19;
  --bg-2: #111727;
  --surface: #151C2E;
  --border: #243049;
  --text: #F3F4F8;
  --muted: #A7B0C2;      /* contraste 8.8:1 sobre --bg */
  --accent: #2EE6C5;     /* contraste 12.1:1 sobre --bg */
  --accent-dim: #1E8F7E;
  --accent-ink: #062621; /* texto sobre botón turquesa: 10.1:1 */
  --danger: #FF8A8A;
  --radius: 14px;
  --maxw: 1160px;
  --font: "Space Grotesk", "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.accent { color: var(--accent); }
.eyebrow { text-transform: uppercase; letter-spacing: .28em; font-size: .78rem; color: var(--muted); font-weight: 600; margin-bottom: 1rem; display: inline-block; }
@media (max-width: 480px) { .eyebrow { letter-spacing: .16em; font-size: .72rem; } }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 640px; }
.section { padding: clamp(64px, 10vw, 112px) 0; position: relative; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p { color: var(--muted); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 12px 24px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 30px -10px rgba(46, 230, 197, .55); }
.btn--primary:hover { transform: translateY(-1px); background: #5BF0D5; }
.btn--ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 15, 25, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; color: var(--text); text-decoration: none; white-space: nowrap; }
.logo .accent { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav a:not(.btn):hover { color: var(--accent); }
.nav .btn { min-height: 42px; padding: 8px 20px; color: var(--accent-ink); }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text); width: 46px; height: 46px; border-radius: 10px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: currentColor; margin: 0 auto; position: relative; content: ""; transition: transform .2s; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 20px 20px; display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--border); }
  .nav .btn { margin-top: 16px; border-bottom: 0; }
}

/* Hero */
.hero { padding: clamp(72px, 12vw, 140px) 0 clamp(64px, 10vw, 110px); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 620px; height: 620px; background: radial-gradient(closest-side, rgba(46, 230, 197, .16), transparent 70%); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; max-width: 860px; }
.hero h1 .accent { color: var(--accent); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 28px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: .95rem; }
.hero-trust li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 8px; }
.circuit { position: absolute; left: 0; right: 0; bottom: 18px; height: 80px; opacity: .9; pointer-events: none; }
.circuit path { fill: none; stroke: var(--accent-dim); stroke-width: 1.5; }
.circuit circle { fill: var(--accent-dim); }
.circuit .pulse { fill: var(--accent); animation: pulse 2.8s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: .35; } 50% { opacity: 1; } }

/* Tarjetas de servicios */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--accent-dim); }
.card-icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: rgba(46, 230, 197, .1); border: 1px solid rgba(46, 230, 197, .3); margin-bottom: 20px; }
.card-icon svg { width: 26px; height: 26px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card p { color: var(--muted); }
.card ul { list-style: none; padding: 0; margin: 0 0 20px; color: var(--text); font-size: .97rem; }
.card ul li { padding: 6px 0 6px 22px; position: relative; }
.card ul li::before { content: ""; position: absolute; left: 0; top: 15px; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--accent); }
.price { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--border); color: var(--muted); font-size: .95rem; }
.price strong { color: var(--text); font-size: 1.2rem; }
.note { color: var(--muted); font-size: .9rem; margin-top: 20px; }

/* Sistema conectado */
.system { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 8px; counter-reset: sys; }
.system-step { padding: 24px; border: 1px solid var(--border); background: var(--surface); position: relative; }
.system-step:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.system-step:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.system-step + .system-step { border-left: 0; }
.system-step .tag { color: var(--accent); font-weight: 700; font-size: .85rem; letter-spacing: .15em; text-transform: uppercase; }
.system-step p { color: var(--muted); margin: 0; }
@media (max-width: 760px) {
  .system { grid-template-columns: 1fr; }
  .system-step, .system-step:first-child, .system-step:last-child { border-radius: 0; border-left: 1px solid var(--border); }
  .system-step + .system-step { border-top: 0; }
  .system-step:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .system-step:last-child { border-radius: 0 0 var(--radius) var(--radius); }
}

/* Proceso */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; position: relative; padding: 28px 24px 24px; border-top: 2px solid var(--accent-dim); }
.steps li::before { content: "0" counter(step); font-size: 2.4rem; font-weight: 800; color: var(--accent); display: block; line-height: 1; margin-bottom: 14px; }
.steps li::after { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.steps p { color: var(--muted); margin: 0; }
.steps .time { display: inline-block; margin-top: 12px; font-size: .85rem; color: var(--accent); font-weight: 600; }

/* Beneficios */
.stat { font-size: 2.2rem; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 10px; }
.uses { margin-top: 56px; }
.use { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 10px; padding: 22px 24px; }
.use h3 { font-size: 1.08rem; }
.use p { color: var(--muted); margin: 0; font-size: .98rem; }
.pill { display: inline-block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; margin-bottom: 10px; }

/* Garantías */
.guarantees { list-style: none; padding: 0; margin: 0; }
.guarantees li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.guarantees li:last-child { border-bottom: 0; }
.guarantees svg { flex: 0 0 24px; width: 24px; height: 24px; stroke: var(--accent); fill: none; stroke-width: 2; margin-top: 3px; }
.guarantees strong { display: block; }
.guarantees span { color: var(--muted); }

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

/* CTA band */
.cta-band { text-align: center; padding: clamp(56px, 8vw, 88px) 24px; border-radius: 24px; background: linear-gradient(135deg, rgba(46,230,197,.14), rgba(46,230,197,.03)); border: 1px solid rgba(46,230,197,.35); }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 28px; }

/* Contacto / formulario */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info p { color: var(--muted); }
.contact-info dl { margin: 24px 0 0; }
.contact-info dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .15em; color: var(--muted); margin-top: 16px; }
.contact-info dd { margin: 4px 0 0; }
.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.req { color: var(--accent); }
input, select, textarea { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid #5E6E91; border-radius: 10px; padding: 12px 14px; min-height: 48px; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46,230,197,.25); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.error-msg { color: var(--danger); font-size: .88rem; margin-top: 6px; min-height: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; color: var(--muted); font-size: .93rem; }
.check input { width: 20px; height: 20px; min-height: 0; margin-top: 3px; flex: 0 0 20px; accent-color: var(--accent); }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 10px; display: none; }
.form-status.is-ok { display: block; background: rgba(46,230,197,.12); border: 1px solid var(--accent-dim); }
.form-status.is-error { display: block; background: rgba(255,138,138,.1); border: 1px solid var(--danger); }
.form small { color: var(--muted); display: block; margin-top: 12px; font-size: .85rem; }

/* Pie */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 32px; color: var(--muted); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.tagline { text-transform: uppercase; letter-spacing: .28em; font-size: .72rem; margin-top: 8px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border); padding-top: 24px; font-size: .88rem; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--text); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linklike:hover { color: var(--accent); }

/* Banner de cookies */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; max-width: 720px; margin: 0 auto; background: #0F1524; border: 1px solid var(--border); border-radius: 16px; padding: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { font-size: 1.1rem; margin-bottom: 8px; }
.cookie-banner p { color: var(--muted); font-size: .94rem; margin-bottom: 16px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { min-height: 44px; padding: 8px 18px; font-size: .95rem; flex: 1 1 auto; }
.cookie-prefs { margin: 0 0 16px; padding: 14px; border: 1px solid var(--border); border-radius: 10px; }
.cookie-prefs[hidden] { display: none; }
.cookie-prefs .check { margin-bottom: 10px; color: var(--text); }
.cookie-prefs .check span { color: var(--muted); display: block; font-size: .86rem; }

/* Páginas legales */
.legal { padding: 64px 0 96px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.4rem; margin-top: 2.2em; }
.legal p, .legal li { color: #D3D8E3; }
.legal table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .95rem; display: block; overflow-x: auto; }
.legal th, .legal td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--surface); }
.placeholder { background: rgba(255, 200, 60, .14); color: #FFD77A; border: 1px dashed #FFD77A; border-radius: 6px; padding: 0 6px; font-weight: 600; white-space: normal; }
.updated { color: var(--muted); font-size: .95rem; }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.notfound .code { font-size: clamp(5rem, 18vw, 10rem); font-weight: 800; line-height: 1; color: var(--accent); letter-spacing: -0.05em; }
.notfound p { color: var(--muted); }
.notfound .btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }

/* ===== Ilustraciones y agente (v2) ===== */
.hero { background-image: linear-gradient(rgba(46,230,197,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(46,230,197,.05) 1px, transparent 1px); background-size: 48px 48px; background-position: center top; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-inner { max-width: none; }
.hero-art { margin: 0; position: relative; z-index: 1; }
.hero-art img { width: 100%; height: auto; animation: float 7s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 560px; margin: 8px auto 0; }
}

.card--media { padding: 0; overflow: hidden; }
.card--media > :not(.card-img) { margin-left: 28px; margin-right: 28px; }
.card--media h3 { margin-top: 24px; }
.card--media .price { margin-bottom: 28px; }
.card-img { width: 100%; height: auto; aspect-ratio: 400 / 220; object-fit: cover; border-bottom: 1px solid var(--border); background: #0F1524; transition: transform .4s ease; }
.card--media:hover .card-img { transform: scale(1.03); }

.use img { width: calc(100% + 48px); max-width: none; height: auto; margin: -22px -24px 18px; aspect-ratio: 2 / 1; border-bottom: 1px solid var(--border); border-radius: 10px 10px 0 0; background: #0F1524; }
.use { overflow: hidden; }

.system-step { background-image: radial-gradient(circle at 100% 0, rgba(46,230,197,.12), transparent 55%); }

.agent-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 880px) { .agent-grid { grid-template-columns: 1fr; } }
.agent-points { list-style: none; padding: 0; margin: 0 0 8px; }
.agent-points li { padding: 6px 0 6px 28px; position: relative; }
.agent-points li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.agent-art { margin: 0; }
.agent-art img { width: 100%; height: auto; max-width: 460px; margin: 0 auto; }
.agent-embed iframe { width: 100%; min-height: 560px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
