/* Vaelis — web pública. Sistema de diseño "Híbrido · Signal". Fuentes alojadas en la propia web (sin Google Fonts). */
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/unbounded-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --night: #0B0F17; --panel: #151B27; --panel-2: #1C2433; --line: #273042;
  --slate: #8D98AA; --fog: #C6CEDA; --mist: #F1F4F8;
  --blue: #3D7BFF; --blue-hover: #5A8FFF; --green: #7BEA8F; --danger: #FF6B6B;
  --font-logo: "Unbounded", "Schibsted Grotesk", sans-serif;
  --font-sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 24px;
  --ease: cubic-bezier(.2,.7,.2,1); --dur: 160ms;
  --wrap: 1120px; --gutter: 24px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--night); color: var(--fog); font-family: var(--font-sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--green); }
:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(61,123,255,.45); border-radius: var(--r-sm); }
h1, h2, h3 { color: var(--mist); margin: 0; font-weight: 800; }
h1 { font-size: clamp(40px, 7vw, 64px); line-height: 1.02; letter-spacing: -0.03em; }
h2 { font-size: clamp(30px, 4.2vw, 42px); line-height: 1.08; letter-spacing: -0.025em; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: var(--r-sm); z-index: 50; }
.skip:focus { top: 12px; color: #fff; }

.eyebrow { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .04em; color: var(--slate); text-transform: lowercase; }
.eyebrow .dot, .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 8px; vertical-align: 1px; }
.spark { color: var(--green); }
.lead { font-size: clamp(18px, 2vw, 20px); color: var(--fog); max-width: 640px; }
.muted { color: var(--slate); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 16px/1 var(--font-sans); padding: 15px 24px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease); text-align: center; }
.btn-primary { background: #2563D9; color: #fff; }
.btn-primary:hover { background: #1F55BE; color: #fff; }
.btn-spark { background: var(--green); color: var(--night); }
.btn-spark:hover { background: #93F0A3; color: var(--night); }
.btn-ghost { background: transparent; color: var(--mist); border-color: var(--line); }
.btn-ghost:hover { background: var(--panel); color: var(--mist); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(11,15,23,.94); border-bottom: 1px solid transparent; transition: border-color var(--dur) var(--ease); }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--mist); }
.brand:hover { color: var(--mist); }
.brand svg { width: 34px; height: 34px; }
.wordmark { font-family: var(--font-logo); font-weight: 700; font-size: 23px; letter-spacing: -0.02em; line-height: 1; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--fog); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--mist); }
.nav .btn { padding: 11px 18px; font-size: 15px; color: #fff; }
.nav .btn:hover { color: #fff; }
@media (max-width: 860px) { .nav a:not(.btn) { display: none; } }
@media (max-width: 380px) { .wordmark { font-size: 20px; } .nav .btn { padding: 10px 14px; font-size: 14px; } }

/* Secciones */
section { padding: 96px 0; }
section + section { border-top: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head .eyebrow { margin-bottom: 16px; display: block; }
.section-head p { margin-top: 16px; font-size: 18px; }
@media (max-width: 640px) { section { padding: 64px 0; } .section-head { margin-bottom: 32px; } }

/* Hero */
.hero { padding: 72px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { margin: 0 0 24px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .note { margin-top: 20px; font-size: 14px; color: var(--slate); }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } }
@media (max-width: 480px) { .hero { padding: 48px 0 64px; } .hero .actions .btn { width: 100%; } }

/* Teléfono de ejemplo (ilustración hecha con HTML) */
.phone { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 18px; max-width: 380px; margin-left: auto; width: 100%; }
@media (max-width: 920px) { .phone { margin: 0 auto; } }
.phone-top { display: flex; align-items: center; gap: 12px; padding: 4px 4px 16px; border-bottom: 1px solid var(--line); }
.phone-top svg { width: 36px; height: 36px; flex: none; }
.phone-top strong { display: block; color: var(--mist); font-size: 15px; line-height: 1.2; }
.phone-top span { font-family: var(--font-mono); font-size: 11.5px; color: var(--slate); }
.chat { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.45; }
.msg small { display: block; font-family: var(--font-mono); font-size: 10.5px; color: var(--slate); margin-top: 4px; }
.msg.in { background: var(--panel-2); color: var(--mist); border-top-left-radius: 4px; }
.msg.out { background: rgba(61,123,255,.16); border: 1px solid rgba(61,123,255,.35); color: var(--mist); align-self: flex-end; border-top-right-radius: 4px; }
.msg.out small { color: var(--fog); }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 14px; margin-top: 4px; border-top: 1px dashed var(--line); }
.chip { font-family: var(--font-mono); font-size: 11.5px; color: var(--fog); background: var(--night); border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; }
.chip .dot { width: 6px; height: 6px; margin-right: 6px; }

/* Tarjetas */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 920px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 16px; }
.icon { width: 44px; height: 44px; border-radius: var(--r-md); background: rgba(61,123,255,.14); color: var(--blue); display: grid; place-items: center; margin-bottom: 20px; }
.icon svg { width: 22px; height: 22px; }

/* Pasos */
.steps { counter-reset: paso; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; }
@media (max-width: 920px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: paso; position: relative; }
.steps li .num { font-family: var(--font-mono); font-size: 13px; color: var(--green); margin-bottom: 18px; display: block; }
.steps li .num::before { content: "0" counter(paso) " //"; }

/* Módulos */
.modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (max-width: 760px) { .modules { grid-template-columns: 1fr; } }
.module { padding: 26px 28px; background: var(--panel); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 40px 1fr; gap: 16px; }
.module:nth-child(odd) { border-right: 1px solid var(--line); }
@media (max-width: 760px) { .module:nth-child(odd) { border-right: 0; } }
.module .n { font-family: var(--font-mono); font-size: 13px; color: var(--slate); padding-top: 3px; }
.module h3 { font-size: 18px; margin-bottom: 6px; }
.module p { font-size: 15.5px; }
.module.custom { background: var(--panel-2); }
.module.custom .n { color: var(--green); }
.modules .module:last-child { border-bottom: 0; }

/* Planes */
.plan { display: flex; flex-direction: column; }
.plan .tag { font-family: var(--font-mono); font-size: 12px; color: var(--slate); margin-bottom: 14px; }
.plan h3 { font-size: 24px; letter-spacing: -0.02em; }
.plan .price { margin: 18px 0 4px; color: var(--mist); font-size: 15px; }
.plan .price strong { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.plan .fee { font-size: 15px; color: var(--fog); }
.plan ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; font-size: 15.5px; }
.plan li { padding-left: 20px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.plan.featured { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.plan.featured .tag { color: var(--green); }
.plans-note { margin-top: 24px; font-size: 15px; color: var(--slate); max-width: 760px; }

/* Caso */
.case { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; gap: 32px; } }
.case-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.case-list li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 16px; }
.case-list svg { width: 20px; height: 20px; color: var(--green); margin-top: 3px; }

/* Misión y fundador */
.mission { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .mission { grid-template-columns: 1fr; gap: 32px; } }
.mission blockquote { margin: 0; font-size: clamp(22px, 2.8vw, 30px); line-height: 1.3; color: var(--mist); font-weight: 600; letter-spacing: -0.015em; }
.mission blockquote .spark { font-weight: 800; }
.founder { display: flex; gap: 18px; align-items: center; }
.avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--font-logo); color: var(--mist); font-size: 22px; flex: none; }
.founder strong { color: var(--mist); display: block; font-size: 18px; }
.founder span { font-size: 15px; }

/* Preguntas */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 32px 20px 0; color: var(--mist); font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 16px; font-family: var(--font-mono); font-size: 20px; color: var(--blue); transition: transform var(--dur) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; font-size: 16px; }

/* Contacto */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
@media (max-width: 920px) { .contact { grid-template-columns: 1fr; gap: 36px; } }
.contact-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact-points li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.contact-points svg { width: 20px; height: 20px; color: var(--blue); margin-top: 3px; }
form.card { padding: 32px; }
@media (max-width: 480px) { form.card { padding: 22px; } }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
label { font-size: 14.5px; font-weight: 600; color: var(--mist); }
label .opt { font-weight: 400; color: var(--slate); }
input, select, textarea { width: 100%; font: 400 16px/1.4 var(--font-sans); color: var(--mist); background: var(--night); border: 1px solid var(--line); border-radius: var(--r-md); padding: 13px 14px; transition: border-color var(--dur) var(--ease); }
input::placeholder, textarea::placeholder { color: #6B7588; }
input:hover, select:hover, textarea:hover { border-color: #3A465C; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(61,123,255,.3); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238D98AA' stroke-width='1.75' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
textarea { min-height: 120px; resize: vertical; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 14.5px; color: var(--fog); font-weight: 400; margin: 6px 0 22px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); padding: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-legal { font-size: 13px; color: var(--slate); margin-top: 16px; line-height: 1.5; }
.form-status { margin-top: 16px; font-size: 15px; display: none; padding: 14px 16px; border-radius: var(--r-md); }
.form-status.ok { display: block; background: rgba(123,234,143,.1); border: 1px solid rgba(123,234,143,.4); color: var(--mist); }
.form-status.err { display: block; background: rgba(255,107,107,.1); border: 1px solid rgba(255,107,107,.4); color: var(--mist); }
form .btn { width: 100%; }

/* Pie */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 14.5px; }
.footer-row { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.footer-brand .tagline { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--slate); margin-top: 10px; text-transform: uppercase; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--fog); }
.footer-links a:hover { color: var(--green); }
.copy { margin-top: 32px; color: var(--slate); font-size: 13.5px; }

/* Páginas legales */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 800px; }
.legal h1 { font-size: clamp(34px, 5vw, 44px); margin: 14px 0 12px; }
.legal h2 { font-size: 22px; letter-spacing: -0.01em; margin: 40px 0 12px; }
.legal p, .legal li { font-size: 16px; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; display: grid; gap: 8px; margin: 12px 0 0; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--panel); color: var(--mist); font-weight: 600; width: 34%; }
.legal .updated { font-family: var(--font-mono); font-size: 12.5px; color: var(--slate); }
.back { display: inline-block; margin-top: 40px; }
.legal p a, .legal li a, .legal td a, .form-legal a, .check a, .contact-points a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { .legal th, .legal td { display: block; width: 100%; } .legal th { border-bottom: 0; } }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 96px 0; }
.notfound p { margin: 16px 0 28px; }

/* Hero: ejemplo explicado */
.phone-cap { font-family: var(--font-mono); font-size: 11.5px; color: var(--green); padding: 0 4px 14px; text-transform: lowercase; }
.phone-cap .dot { width: 7px; height: 7px; }
.chat .who { font-family: var(--font-mono); font-size: 11px; color: var(--slate); margin: 6px 0 -4px; }
.chat .who.out { align-self: flex-end; text-align: right; }
.chat .who:first-child { margin-top: 0; }
.summary { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.summary .who { font-family: var(--font-mono); font-size: 11px; color: var(--slate); margin-bottom: 8px; }
.summary-card { background: var(--night); border: 1px solid rgba(123,234,143,.35); border-radius: var(--r-md); padding: 14px 16px; }
.summary-card strong { color: var(--mist); font-size: 14.5px; display: block; margin-bottom: 8px; }
.summary-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: 14px; }
.summary-card b { color: var(--green); font-family: var(--font-mono); font-weight: 500; margin-right: 6px; }

/* Problema: oficios y 4 tarjetas */
.trades { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.trades li { font-size: 14px; color: var(--fog); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1040px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-4 { grid-template-columns: 1fr; } }

/* Ejemplos por negocio */
.example .tag { display: inline-block; font-family: var(--font-mono); font-size: 12px; color: var(--green); margin-bottom: 12px; }
.example p { font-size: 16.5px; color: var(--mist); }

.h1-kicker { display: block; font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; letter-spacing: .04em; line-height: 1.4; color: var(--slate); text-transform: lowercase; margin-bottom: 20px; }
.h1-kicker .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 8px; vertical-align: 1px; }
