/* ===== Overklok — estilos ===== */
:root {
    --bg: #0a0d14;
    --bg-2: #10141f;
    --surface: #151a27;
    --border: #232a3b;
    --text: #e8ecf4;
    --muted: #97a0b5;
    --accent: #5b8cff;
    --accent-2: #2ee6c5;
    --grad: linear-gradient(110deg, var(--accent) 0%, var(--accent-2) 100%);
    --radius: 16px;
    --font: "Inter", system-ui, -apple-system, sans-serif;
    --font-head: "Space Grotesk", "Inter", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 1rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #c9d0df; max-width: 680px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.6rem; border-radius: 999px; border: 0; background: var(--grad); color: #06101f; font-weight: 600; font-size: 1rem; cursor: pointer; transition: transform .2s, box-shadow .2s; font-family: inherit; }
.btn:hover { color: #06101f; transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(91,140,255,.6); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--accent); box-shadow: none; }
.btn-sm { padding: .55rem 1.1rem; font-size: .9rem; }
.btn-block { width: 100%; }
.link-arrow { font-weight: 600; margin-top: auto; }
.link-arrow::after { content: " →"; transition: margin .2s; }
.link-arrow:hover::after { margin-left: 4px; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10,13,20,.8); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.scrolled { border-color: var(--border); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo img { height: 44px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav ul { display: flex; gap: 1.8rem; list-style: none; margin: 0; padding: 0; }
.main-nav ul a { color: var(--muted); font-weight: 500; font-size: .95rem; }
.main-nav ul a:hover, .main-nav ul a.active { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .3s; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(5rem, 12vw, 9rem) 0 clamp(4rem, 9vw, 7rem); }
.hero-glow { position: absolute; inset: -30% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; background: radial-gradient(circle, rgba(91,140,255,.28), rgba(46,230,197,.08) 45%, transparent 70%); filter: blur(20px); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(ellipse at 30% 40%, #000 10%, transparent 65%); opacity: .35; pointer-events: none; }
.hero-inner { position: relative; z-index: 1; }
.hero-inner h1 { max-width: 860px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.page-hero { padding: clamp(4rem, 9vw, 7rem) 0 3rem; background: radial-gradient(ellipse at 80% 0%, rgba(91,140,255,.18), transparent 60%); border-bottom: 1px solid var(--border); }
.page-hero-sm { padding: 4rem 0 2rem; }

/* Secciones */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.section-head { margin-bottom: 3rem; max-width: 640px; }
.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 6vw, 5rem); }
.stack p { color: #c9d0df; }

/* Cifras */
.stats { border-block: 1px solid var(--border); background: var(--bg-2); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 3rem 1.5rem; text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); margin-top: .6rem; display: block; }

/* Tarjetas */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; transition: transform .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); border-color: rgba(91,140,255,.5); }
.card p { color: var(--muted); }
.card-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(91,140,255,.12); margin-bottom: 1.4rem; }
.card-icon svg { width: 24px; height: 24px; fill: var(--accent); }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li { padding: .4rem .85rem; border-radius: 999px; border: 1px solid var(--border); font-size: .9rem; color: #c9d0df; background: var(--bg-2); }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.phase { display: grid; grid-template-columns: 90px 1fr; gap: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }
.phase p { color: var(--muted); margin: 0; }
.phase-num { font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 1rem; display: inline-block; }

/* CTA */
.cta { padding: clamp(4rem, 8vw, 6rem) 0; }
.cta-inner { text-align: center; padding: clamp(2.5rem, 6vw, 4rem); border-radius: 24px; border: 1px solid var(--border); background: radial-gradient(ellipse at 50% 0%, rgba(91,140,255,.25), transparent 70%), var(--surface); }
.cta-inner p { color: var(--muted); max-width: 560px; margin: 0 auto 2rem; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 1rem; }
.contact-list li { display: grid; gap: .1rem; }
.contact-list span { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.map { border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); min-height: 240px; display: grid; place-content: center; text-align: center; padding: 1.5rem; gap: .5rem; overflow: hidden; color: var(--muted); font-size: .95rem; }
.map iframe { width: 100%; height: 280px; border: 0; display: block; }
.map.loaded { padding: 0; display: block; }

.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: 1.1rem; }
.form label { display: grid; gap: .4rem; font-size: .9rem; font-weight: 500; }
.form input, .form textarea { width: 100%; padding: .85rem 1rem; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit; transition: border-color .2s; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91,140,255,.2); }
.form input.invalid { border-color: #ff6b6b; }
.form .check { grid-template-columns: auto 1fr; align-items: start; gap: .7rem; font-weight: 400; color: var(--muted); font-size: .85rem; }
.form .check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; }
.alert { padding: 1rem 1.2rem; border-radius: 10px; font-size: .95rem; }
.alert-ok { background: rgba(46,230,197,.12); border: 1px solid rgba(46,230,197,.4); color: #bff7ec; }
.alert-error { background: rgba(255,107,107,.1); border: 1px solid rgba(255,107,107,.4); color: #ffc9c9; }

/* Legal */
.legal h2 { font-size: 1.4rem; margin-top: 2.5rem; }
.legal h3 { font-size: 1.05rem; margin-top: 1.6rem; color: var(--accent-2); }
.legal p, .legal li { color: #c9d0df; }
.legal #privacidad { font-size: 1.9rem; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--border); }

/* Pie */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.footer-logo { height: 50px; width: auto; margin-bottom: 1.2rem; }
.site-footer h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-links a { color: var(--text); }
.footer-links a:hover { color: var(--accent-2); }
.social { display: flex; gap: .7rem; margin-top: 1.5rem; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border); transition: .2s; }
.social a:hover { border-color: var(--accent); background: rgba(91,140,255,.1); }
.social svg { width: 18px; height: 18px; fill: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.5rem 0; border-top: 1px solid var(--border); font-size: .85rem; color: var(--muted); }
.footer-bottom a { color: var(--muted); }

/* Cookies */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 100; max-width: 560px; margin-left: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem 1.5rem; box-shadow: 0 20px 60px -20px rgba(0,0,0,.7); font-size: .9rem; color: var(--muted); }
.cookie-actions { display: flex; gap: .7rem; justify-content: flex-end; }

/* Animaciones de aparición */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 900px) {
    .cards { grid-template-columns: 1fr; }
    .split, .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > :first-child { grid-column: 1 / -1; }
    .nav-toggle { display: block; }
    .main-nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 1rem; padding: 1.5rem; background: var(--bg); border-bottom: 1px solid var(--border); transform: translateY(-120%); transition: transform .3s; }
    .main-nav.open { transform: none; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav ul a { display: block; padding: .8rem 0; font-size: 1.1rem; border-bottom: 1px solid var(--border); }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 600px) {
    .stats-grid { grid-template-columns: 1fr; }
    .stat { border-right: 0; border-bottom: 1px solid var(--border); padding: 2rem 1rem; }
    .stat:last-child { border-bottom: 0; }
    .phase { grid-template-columns: 1fr; gap: 0; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* Color al seleccionar texto: azul de la marca */
::selection { background: #5b8cff; color: #06101f; -webkit-text-fill-color: #06101f; }
::-moz-selection { background: #5b8cff; color: #06101f; }
img::selection { background: transparent; }
