/* Vorenex Labs · v2 (España) */
@font-face { font-family: "Manrope"; src: url("fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("fonts/space-grotesk.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --bg: #041426; --bg-deep: #020b14; --panel: #081c32; --panel-2: #0c233c;
  --ink: #f2fbff; --muted: #9db2c7; --line: rgba(160, 208, 235, .15);
  --cyan: #14d9ff; --blue: #155eef; --ice: #b9f3ff; --success: #62e8ba; --amber: #f5b14c;
  --light: #f1f7fa; --light-ink: #061728; --light-muted: #4f6578; --light-line: #d9e6ec;
  --max: 1180px; --radius: 22px; --shadow: 0 28px 80px rgba(0, 0, 0, .28);
  --display: "Space Grotesk", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg-deep); color: var(--ink); font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
::selection { background: rgba(20, 217, 255, .28); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { padding: 112px 0; }
.section-light { background: var(--light); color: var(--light-ink); }
.section-white { background: #fff; color: var(--light-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 1000; background: var(--cyan); color: var(--bg); padding: 10px 14px; border-radius: 8px; font-weight: 800; text-decoration: none; }
.skip-link:focus { top: 16px; }

h1, h2, h3 { margin: 0; font-family: var(--display); line-height: 1.08; letter-spacing: -.03em; }
h1 { font-size: clamp(2.5rem, 5.2vw, 4.6rem); margin-bottom: 24px; }
h1 em { display: block; font-style: normal; color: transparent; background: linear-gradient(100deg, #fff 0%, var(--cyan) 55%, #6a91ff 100%); -webkit-background-clip: text; background-clip: text; }
h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); margin-bottom: 18px; }
h3 { font-size: 1.22rem; margin-bottom: 10px; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; color: var(--ice); text-transform: uppercase; letter-spacing: .15em; font-size: .72rem; font-weight: 800; }
.eyebrow::before { content: ""; width: 30px; height: 1px; background: linear-gradient(90deg, var(--cyan), transparent); }
.section-light .eyebrow, .section-white .eyebrow { color: #0d6bb0; }
.section-heading { max-width: 780px; margin-bottom: 52px; }
.section-heading p:last-child { color: var(--muted); font-size: 1.06rem; margin: 0; }
.section-light .section-heading p:last-child, .section-white .section-heading p:last-child { color: var(--light-muted); }
.center { text-align: center; margin-inline: auto; }
.center .eyebrow { justify-content: center; }

/* Botones */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 13px 22px; border: 1px solid transparent; border-radius: 10px; font-size: .92rem; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #00111e; background: linear-gradient(115deg, var(--cyan), #77edff); box-shadow: 0 12px 36px rgba(20, 217, 255, .2); }
.button-secondary { border-color: var(--line); background: rgba(255, 255, 255, .04); color: #e8f7ff; }
.button-secondary:hover { border-color: rgba(20, 217, 255, .4); }
.button-dark { background: var(--light-ink); color: #fff; }
.button-wa { background: #25d366; color: #052e16; }
.button-block { width: 100%; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; padding: 16px 0; border-bottom: 1px solid transparent; transition: background .25s ease, padding .25s ease, border-color .25s ease; }
.site-header.scrolled, .no-js .site-header { padding: 10px 0; background: rgba(2, 11, 20, .9); border-color: var(--line); backdrop-filter: blur(16px); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand span { display: grid; line-height: 1; }
.brand strong { font-family: var(--display); letter-spacing: .08em; font-size: 1.02rem; }
.brand small { margin-top: 5px; color: var(--cyan); letter-spacing: .48em; font-size: .55rem; font-weight: 800; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: .9rem; font-weight: 600; color: #c4d3e1; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { color: #fff; }
.site-nav .nav-cta { padding: 10px 18px; border: 1px solid rgba(20, 217, 255, .4); border-radius: 999px; color: var(--ice); background: rgba(20, 217, 255, .07); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span:not(.sr-only) { display: block; width: 24px; height: 2px; margin: 5px 0; background: #fff; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 168px 0 72px; background: linear-gradient(180deg, rgba(4, 20, 38, .2), rgba(2, 11, 20, .95)), radial-gradient(circle at 78% 28%, rgba(21, 94, 239, .2), transparent 36%), var(--bg-deep); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .14; background-image: linear-gradient(rgba(185, 243, 255, .15) 1px, transparent 1px), linear-gradient(90deg, rgba(185, 243, 255, .12) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to bottom, black, transparent 85%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 64px; }
.hero-lead { max-width: 620px; color: #b4c4d4; font-size: clamp(1.04rem, 1.6vw, 1.22rem); margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.trust-list { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 30px 0 0; padding: 0; list-style: none; color: #9fb4c7; font-size: .84rem; }
.trust-list li::before { content: "✓"; color: var(--success); margin-right: 7px; font-weight: 800; }

.demo { position: relative; border: 1px solid rgba(125, 210, 255, .2); border-radius: 26px; background: linear-gradient(150deg, rgba(14, 42, 70, .95), rgba(4, 19, 34, .97)); box-shadow: var(--shadow); overflow: hidden; }
.demo-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.demo-contact { display: flex; align-items: center; gap: 12px; }
.demo-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #0d8fdd, #155eef); font-weight: 800; font-size: .9rem; }
.demo-contact span { display: grid; line-height: 1.3; }
.demo-contact strong { font-size: .88rem; }
.demo-contact small { color: #7f97ad; font-size: .7rem; }
.status { display: flex; align-items: center; gap: 7px; color: var(--success); font-size: .7rem; font-weight: 800; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 12px var(--success); }
.chat { display: flex; flex-direction: column; gap: 12px; padding: 24px 20px; min-height: 380px; }
.ai-note { align-self: center; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .05); color: #8fa6bb; font-size: .68rem; }
.msg { max-width: 84%; padding: 11px 14px; border-radius: 15px; font-size: .84rem; line-height: 1.45; }
.msg small { display: block; margin-top: 4px; font-size: .64rem; opacity: .6; text-align: right; }
.msg-in { align-self: flex-end; border-bottom-right-radius: 4px; background: linear-gradient(130deg, #155eef, #0d8fdd); }
.msg-out { align-self: flex-start; border-bottom-left-radius: 4px; background: #102a44; color: #d6e6f3; border: 1px solid rgba(255, 255, 255, .05); }
.msg-sys { align-self: center; display: flex; gap: 10px; align-items: center; max-width: 96%; background: rgba(98, 232, 186, .08); border: 1px solid rgba(98, 232, 186, .18); color: #dffbef; }
.msg-sys b { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: rgba(98, 232, 186, .15); color: var(--success); }
.msg-sys span { display: grid; font-size: .76rem; }
.msg-sys em { font-style: normal; color: #8db3a5; font-size: .66rem; }
.handoff { display: flex; justify-content: space-between; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, .15); color: #8fa6bb; font-size: .74rem; }
.handoff strong { color: var(--cyan); }
.steps-bar { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 72px; padding: 20px 0; border-block: 1px solid var(--line); color: #b2c3d2; font-size: .86rem; font-weight: 700; }
.steps-bar span { color: var(--cyan); font-size: .7rem; margin-right: 8px; }

/* Tarjetas */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { padding: 28px; border-radius: var(--radius); border: 1px solid var(--light-line); background: #fff; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card:hover { transform: translateY(-4px); border-color: #a8d9e7; box-shadow: 0 20px 50px rgba(21, 56, 82, .08); }
.card p { color: var(--light-muted); margin: 0; font-size: .95rem; }
.card-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 22px; border-radius: 14px; background: linear-gradient(135deg, #e3f6fd, #dce8ff); color: #0b6fb8; font-family: var(--display); font-size: 1.3rem; font-weight: 700; }
.card-num { color: #7e97a9; font-family: var(--display); font-size: .74rem; letter-spacing: .1em; }
.card-dark { background: var(--panel); border-color: var(--line); color: var(--ink); }
.card-dark p { color: var(--muted); }
.card-dark .card-icon { background: rgba(20, 217, 255, .1); color: var(--cyan); }
.card ul { margin: 14px 0 0; padding-left: 18px; color: var(--light-muted); font-size: .9rem; }
.card-dark ul { color: var(--muted); }
.tag { display: inline-block; margin-bottom: 14px; padding: 4px 10px; border-radius: 999px; background: #e6f4fb; color: #0b6fb8; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.card-dark .tag { background: rgba(20, 217, 255, .12); color: var(--cyan); }

/* Diagnóstico gratuito */
.offer { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.offer-list { margin: 24px 0 30px; padding: 0; list-style: none; display: grid; gap: 12px; }
.offer-list li { display: flex; gap: 12px; color: #c9d7e3; }
.offer-list li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(98, 232, 186, .14); color: var(--success); font-size: .8rem; font-weight: 800; }
.report { padding: 26px; border-radius: 24px; background: #fff; color: var(--light-ink); box-shadow: var(--shadow); }
.report-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; font-size: .78rem; color: var(--light-muted); }
.report-head strong { color: var(--light-ink); font-family: var(--display); font-size: 1rem; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi { padding: 14px; border-radius: 14px; background: var(--light); }
.kpi b { display: block; font-family: var(--display); font-size: 1.6rem; color: #155eef; }
.kpi.warn b { color: #d97706; }
.kpi span { font-size: .76rem; color: var(--light-muted); }
.bars { display: grid; gap: 8px; }
.bar { display: grid; grid-template-columns: 120px 1fr 28px; gap: 10px; align-items: center; font-size: .74rem; color: var(--light-muted); }
.bar i { height: 9px; border-radius: 9px; background: linear-gradient(90deg, #155eef, #14d9ff); }
.report-foot { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--light-line); font-size: .72rem; color: var(--light-muted); }

/* Proceso */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; padding: 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.step b { display: block; margin-bottom: 18px; color: var(--cyan); font-family: var(--display); font-size: .8rem; letter-spacing: .1em; }
.step p { color: var(--muted); font-size: .93rem; margin: 0; }
.step .meta { display: inline-block; margin-top: 14px; color: var(--ice); font-size: .76rem; font-weight: 700; }

/* Precios */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 30px; border-radius: var(--radius); border: 1px solid var(--light-line); background: #fff; }
.plan.featured { border: 2px solid #155eef; box-shadow: 0 24px 60px rgba(21, 94, 239, .12); position: relative; }
.plan.featured::before { content: "Recomendado para empezar"; position: absolute; top: -13px; left: 26px; padding: 4px 12px; border-radius: 999px; background: #155eef; color: #fff; font-size: .7rem; font-weight: 800; }
.plan h3 { font-size: 1.15rem; }
.price { margin: 10px 0 4px; font-family: var(--display); font-size: 2.4rem; font-weight: 700; letter-spacing: -.03em; color: var(--light-ink); }
.price small { font-size: .95rem; font-weight: 600; color: var(--light-muted); letter-spacing: 0; }
.plan .sub { color: var(--light-muted); font-size: .88rem; min-height: 2.8em; }
.plan ul { flex: 1; margin: 16px 0 24px; padding: 0; list-style: none; display: grid; gap: 9px; align-content: start; font-size: .9rem; color: #22384b; }
.plan li::before { content: "✓"; color: #0f9d58; font-weight: 800; margin-right: 8px; }
.pricing-note { margin-top: 26px; color: var(--light-muted); font-size: .86rem; text-align: center; }

/* Garantías */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust-item { padding: 24px; border-left: 2px solid var(--cyan); background: rgba(255, 255, 255, .03); border-radius: 0 16px 16px 0; }
.trust-item p { color: var(--muted); font-size: .9rem; margin: 0; }

/* FAQ */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--light-line); border-radius: 16px; background: #fff; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 30px 20px 0; position: relative; font-weight: 700; color: var(--light-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 16px; font-size: 1.4rem; color: #155eef; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--light-muted); margin: 0 0 20px; }

/* Contacto */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; padding: 52px; border-radius: 30px; border: 1px solid var(--line); background: linear-gradient(140deg, var(--panel-2), var(--bg)); }
.contact-alt { display: grid; gap: 12px; margin-top: 26px; }
.contact-meta { margin-top: 26px; display: grid; gap: 8px; color: var(--muted); font-size: .9rem; }
.contact-meta strong { color: var(--ink); }
.form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: .82rem; font-weight: 700; color: #c4d3e1; }
.form input, .form textarea, .form select { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(2, 11, 20, .55); color: var(--ink); }
.form input::placeholder, .form textarea::placeholder { color: #6f879c; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .8rem; color: var(--muted); }
.form .check input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.form .check a { color: var(--ice); }
.form-note { font-size: .74rem; color: #7d94a8; margin: 0; }
.form-feedback { min-height: 1.4em; font-size: .85rem; color: var(--success); margin: 0; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { padding: 46px 0; border-top: 1px solid var(--line); color: #8ea4b8; font-size: .86rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 30px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: #fff; }

/* Páginas legales */
.legal { padding: 140px 0 80px; background: #fff; color: var(--light-ink); }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.legal h2 { font-size: 1.35rem; margin: 36px 0 12px; }
.legal p, .legal li { color: #2c4256; }
.legal .note { padding: 14px 18px; border-radius: 12px; background: #fff7e8; border-left: 3px solid var(--amber); font-size: .9rem; }
.legal table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.legal td, .legal th { border: 1px solid var(--light-line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--light); }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #25d366; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
[hidden] { display: none !important; }

/* Animación de entrada: solo si hay JS */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1020px) {
  .hero-grid, .offer, .contact { grid-template-columns: 1fr; }
  .grid-4, .timeline, .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .section { padding: 80px 0; }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 20px; background: rgba(2, 11, 20, .97); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; }
  .site-nav .nav-cta { text-align: center; margin-top: 8px; }
  .grid-3, .grid-4, .timeline, .trust-grid, .form-row, .kpis { grid-template-columns: 1fr; }
  .steps-bar { grid-template-columns: repeat(2, 1fr); }
  .contact { padding: 28px 20px; }
  .hero { padding-top: 130px; }
  .bar { grid-template-columns: 96px 1fr 24px; }
}
