/* ===== Variables de diseño: cambia aquí los colores y fuentes de toda la web ===== */
:root {
  --bg: #121212;            /* fondo principal: negro grafito */
  --surface: #18181B;       /* tarjetas */
  --surface-2: #0D1117;     /* formulario: obsidiana */
  --line: rgba(255, 255, 255, .08);
  --text: #F5F5F7;          /* blanco hueso */
  --muted: #A1A1AA;         /* gris plata */
  --silver: linear-gradient(135deg, #F5F5F7, #A1A1AA);
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --radius: 20px;
  --wrap: min(1120px, 100% - 48px);
}

/* ===== Base (mobile-first) ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.7 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
svg { display: block; max-width: 100%; }
.wrap { width: var(--wrap); margin-inline: auto; }
.muted { color: var(--muted); }
.mono { font: .8rem var(--mono); color: var(--muted); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--text); color: var(--bg); }
.skip:focus { top: 12px; }

/* ===== Botones ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border: 1px solid transparent; border-radius: 999px; font: 600 .95rem var(--font); cursor: pointer; transition: transform .2s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .22); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .88rem; }

/* ===== Navbar con efecto glass ===== */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(18, 18, 18, .72); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; }
.brand img { width: auto; height: 30px; }
.brand .muted { font-weight: 400; }
.burger { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
.burger span { display: block; width: 20px; height: 1.5px; margin: 6px auto; background: var(--text); transition: transform .25s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.menu { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 24px 28px; background: var(--bg); border-bottom: 1px solid var(--line); }
.menu.open { display: flex; }
.menu a { padding: 10px 0; color: var(--muted); }
.menu a:hover { color: var(--text); }
.menu a.btn { margin-top: 12px; padding: 0 18px; color: var(--text); }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; display: flex; align-items: center; min-height: calc(100svh - 64px); padding: 96px 0; }
.hero .wrap { position: relative; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-logo { width: clamp(110px, 30vw, 170px); height: auto; filter: drop-shadow(0 0 48px rgba(255, 255, 255, .1)); }
.foot-logo { width: auto; height: 36px; margin-bottom: 16px; }
.hero h1 { max-width: 15ch; margin: 0 0 24px; font-size: clamp(2.5rem, 6.4vw, 5rem); line-height: 1.04; font-weight: 700; letter-spacing: -.03em; }
.lead { max-width: 52ch; margin: 0 0 40px; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.meta { margin-top: 56px; }

/* ===== Secciones ===== */
.section { padding: clamp(80px, 12vw, 150px) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 72px); }
h2 { margin: 0 0 16px; font-size: clamp(1.9rem, 4.4vw, 3.2rem); line-height: 1.1; font-weight: 600; letter-spacing: -.025em; }
.section-head p { margin: 0; color: var(--muted); font-size: 1.1rem; }
.lead-sm { max-width: 56ch; margin: 0; color: var(--muted); font-size: 1.1rem; }

/* ===== Bento de servicios ===== */
.bento { display: grid; gap: 16px; }
.card { position: relative; overflow: hidden; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); --x: 50%; --y: 0%; }
/* Brillo suave que sigue al cursor (lo mueve script.js con --x y --y) */
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(360px circle at var(--x) var(--y), rgba(255, 255, 255, .05), transparent 65%); opacity: 0; transition: opacity .3s; pointer-events: none; }
/* Borde que se ilumina cerca del cursor: un degradado recortado con máscara para que solo se vea el contorno */
.card::after { content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit; background: radial-gradient(220px circle at var(--x) var(--y), rgba(255, 255, 255, .55), transparent 70%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover::before, .card:hover::after { opacity: 1; }
.ico { width: 28px; height: 28px; margin-bottom: 56px; fill: none; stroke: var(--text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin: 0 0 12px; font-size: 1.35rem; line-height: 1.25; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.tags li { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font: .75rem var(--mono); color: var(--muted); }

/* ===== Enfoque de ingeniería ===== */
.split { display: grid; gap: 48px; }
.points { margin: 0; padding: 0; list-style: none; }
.points li { padding: 20px 0; border-top: 1px solid var(--line); }
.points li:last-child { border-bottom: 1px solid var(--line); }
.points strong, .points span { display: block; }
.points span { color: var(--muted); }
.founder { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.founder strong { display: block; font-size: 1.1rem; }

/* ===== Proceso ===== */
.steps { display: grid; gap: 40px; margin: 0; padding: 0; list-style: none; }
.steps li { padding-top: 24px; border-top: 1px solid var(--line); }
.n { margin-bottom: 24px; font: 500 clamp(2.2rem, 4vw, 3rem)/1 var(--mono); background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps h3 { margin: 0 0 12px; font-size: 1.25rem; }
.steps p { margin: 0; color: var(--muted); }

/* ===== Contacto ===== */
.contact { display: grid; gap: 48px; }
.links { display: grid; gap: 12px; margin: 32px 0 0; padding: 0; list-style: none; }
.links a { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .2s; }
.links a:hover { border-color: rgba(255, 255, 255, .3); }
form { padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.field { display: grid; gap: 8px; margin-bottom: 20px; }
label { font-size: .88rem; color: var(--muted); }
input, select, textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; background: var(--bg); color: var(--text); font: inherit; }
textarea { min-height: 128px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--text); box-shadow: 0 0 0 3px rgba(255, 255, 255, .12); }
input.error, textarea.error { border-color: #f87171; }
.form-note { margin: 16px 0 0; font-size: .85rem; color: var(--muted); }

/* ===== Footer ===== */
.footer { padding: 48px 0; border-top: 1px solid var(--line); }
.footer .wrap { display: grid; gap: 32px; }
.footer small { color: var(--muted); }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); }
.footer nav a:hover { color: var(--text); }

/* ===== Aparición suave al hacer scroll (la activa script.js) ===== */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.bento .reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: .08s; }
.bento .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: .16s; }
.bento .reveal:nth-child(4) { transition-delay: .24s; }

/* ===== Escritorio (desde 860px) ===== */
@media (min-width: 860px) {
  .burger { display: none; }
  .menu, .menu.open { display: flex; position: static; flex-direction: row; align-items: center; gap: 32px; padding: 0; background: none; border: 0; }
  .menu a { padding: 0; font-size: .92rem; }
  .menu a.btn { margin: 0; }
  .hero-grid { grid-template-columns: 1.25fr .75fr; gap: 64px; }
  .hero-logo { order: 2; justify-self: center; width: min(100%, 380px); }
    .bento { grid-template-columns: repeat(6, 1fr); }
  .c1, .c4 { grid-column: span 4; }
  .c2, .c3 { grid-column: span 2; }
  .split { grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: start; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 48px; }
  .contact { grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
  .footer .wrap { grid-template-columns: 1fr auto; align-items: end; }
}

/* ===== Accesibilidad: sin movimiento si el usuario lo pide ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
