/* ==========================================================
   ORBYT — Estilos
   Para cambiar los colores de toda la web, edita solo estas variables.
   ========================================================== */
:root {
  --bg: #0A0B14;          /* Fondo */
  --surface: #13152B;     /* Tarjetas */
  --surface-2: #1A1D38;   /* Tarjetas al pasar el cursor */
  --primary: #00D1FF;     /* Cian eléctrico: botones y acentos */
  --primary-ink: #0A0B14; /* Texto sobre el cian */
  --silver: #C3CAD9;      /* Plateado */
  --text: #E8EAF6;        /* Texto principal */
  --muted: #9AA0B8;       /* Texto secundario */
  --border: rgba(195, 202, 217, .14);
  --danger: #FF7A8A;
  --success: #3BE8A0;

  --font-title: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --radius: 14px;
  --max: 1160px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 17px; line-height: 1.65;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); margin-bottom: 14px; }
.lead { color: var(--muted); font-size: 1.1rem; }
.grad { background: linear-gradient(90deg, var(--primary), var(--silver)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: var(--primary-ink); padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 12px; border: 1px solid transparent;
  font: 600 1rem var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: #4CE0FF; }
.btn-ghost { border-color: var(--silver); color: var(--silver); background: transparent; }
.btn-ghost:hover { background: rgba(195, 202, 217, .08); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Fondo de partículas */
#particles { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* Entrada animada */
.intro {
  position: fixed; inset: 0; z-index: 300; background: var(--bg);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 22px;
  transition: opacity .5s ease, visibility .5s ease;
}
.intro.hide { opacity: 0; visibility: hidden; }
.intro .sym { width: 96px; height: 96px; animation: spin 1.6s cubic-bezier(.6, 0, .3, 1) both; }
.intro-skip { background: none; border: 1px solid var(--border); color: var(--muted); border-radius: 999px; padding: 6px 16px; font: 500 .85rem var(--font-body); cursor: pointer; }
@keyframes spin { from { transform: rotate(-180deg) scale(.6); opacity: 0; } to { transform: rotate(0) scale(1); opacity: 1; } }

/* Menú */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-h); transition: background-color .3s ease, border-color .3s ease; border-bottom: 1px solid transparent; }
.header.scrolled { background: rgba(10, 11, 20, .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: var(--border); }
.header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 2px; text-decoration: none; color: var(--text); font: 600 1.6rem/1 var(--font-title); letter-spacing: -.04em; }
.logo svg { width: 30px; height: 30px; transition: transform .6s ease; }
.logo:hover svg { transform: rotate(90deg); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; transition: color .2s; }
.nav a:not(.btn):hover { color: var(--text); }
.nav .btn { min-height: 42px; padding: 0 18px; font-size: .92rem; }
.lang { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.lang button { background: none; border: 0; color: var(--muted); font: 600 .78rem var(--font-body); padding: 5px 10px; border-radius: 999px; cursor: pointer; min-width: 40px; }
.lang button[aria-pressed="true"] { background: var(--silver); color: var(--bg); }
.menu-btn { display: none; background: none; border: 1px solid var(--border); border-radius: 10px; width: 44px; height: 44px; color: var(--text); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 22px; height: 22px; }
.header-right { display: flex; align-items: center; gap: 12px; }

/* Portada */
.hero { min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero p.lead { max-width: 540px; font-size: 1.2rem; margin-bottom: 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.badge { display: inline-flex; align-items: center; gap: 10px; margin-top: 32px; padding: 10px 16px; border: 1px solid var(--border); border-radius: 999px; background: rgba(19, 21, 43, .7); font-size: .92rem; color: var(--silver); }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(59, 232, 160, .18); }
.hero-in > * { animation: fadeUp .7s ease both; }
.hero-in > *:nth-child(2) { animation-delay: .08s; }
.hero-in > *:nth-child(3) { animation-delay: .16s; }
.hero-in > *:nth-child(4) { animation-delay: .24s; }
.hero-in > *:nth-child(5) { animation-delay: .32s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-art { position: relative; aspect-ratio: 1; width: 100%; max-width: 480px; margin: 0 auto; }
.hero-art svg { width: 100%; height: 100%; overflow: visible; }
.orbit-ring { transform-origin: 250px 250px; animation: rotate 40s linear infinite; }
.orbit-ring.r2 { animation-duration: 60s; animation-direction: reverse; }
.orbit-ring.r3 { animation-duration: 90s; }
@keyframes rotate { to { transform: rotate(360deg); } }

/* Tarjetas genéricas */
.cards { display: grid; gap: 20px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform .25s ease, border-color .25s ease, background-color .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(0, 209, 255, .4); background: var(--surface-2); }
.card p { color: var(--muted); margin: 0; }
.icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(0, 209, 255, .1); color: var(--primary); margin-bottom: 18px; }
.icon svg { width: 24px; height: 24px; }
.tag { display: inline-block; margin-top: 16px; font-size: .8rem; font-weight: 600; color: var(--silver); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; }

/* Calculadora */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.calc-form { padding: 36px; display: grid; gap: 24px; }
.calc-field label { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-weight: 500; margin-bottom: 10px; }
.calc-field output { color: var(--primary); font-weight: 700; font-family: var(--font-title); }
input[type="range"] { width: 100%; accent-color: var(--primary); height: 28px; }
.calc-result { padding: 36px; background: linear-gradient(160deg, rgba(0, 209, 255, .14), rgba(195, 202, 217, .06)); display: flex; flex-direction: column; justify-content: center; }
.calc-result .amount { font: 700 clamp(2.4rem, 6vw, 3.6rem)/1.1 var(--font-title); color: var(--text); margin: 8px 0 6px; }
.calc-result .hours { color: var(--silver); margin-bottom: 20px; }
.note { font-size: .82rem; color: var(--muted); margin-top: 16px; }

/* Sistema en órbita */
.system { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.system-art { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; margin: 0 auto; }
.system-art svg { width: 100%; height: 100%; overflow: visible; }
.sys-node rect { fill: var(--surface); stroke: var(--border); }
.sys-node text { fill: var(--text); font: 600 17px var(--font-body); }
.sys-steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.sys-steps li { display: flex; gap: 12px; color: var(--muted); }
.sys-steps li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 10px; border-radius: 50%; background: var(--primary); }

/* Método */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; counter-reset: step; }
.steps::before { content: ""; position: absolute; top: 27px; left: 12%; right: 12%; height: 2px; background: linear-gradient(90deg, var(--primary), var(--silver)); opacity: .5; }
.step { position: relative; text-align: center; padding: 0 8px; }
.step-num { width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 2px solid var(--primary); color: var(--primary); font: 700 1.2rem var(--font-title); position: relative; }
.step p { color: var(--muted); font-size: .97rem; }

/* Para quién */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fit ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.fit li { display: flex; gap: 12px; align-items: flex-start; }
.fit li svg { flex: none; width: 22px; height: 22px; margin-top: 3px; }
.fit .yes li svg { color: var(--success); }
.fit .no li svg { color: var(--danger); }
.fit .card:hover { transform: none; }

/* Preguntas frecuentes */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.6rem/1 var(--font-title); color: var(--primary); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 20px; color: var(--muted); margin: 0; }

/* Contacto */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
.contact-side .btn { margin-top: 12px; }
.form { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 32px; display: grid; gap: 18px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-weight: 500; font-size: .95rem; margin-bottom: 8px; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
  font: 16px var(--font-body); transition: border-color .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); outline: none; }
.field.invalid input, .field.invalid select { border-color: var(--danger); }
.phone { display: grid; grid-template-columns: 120px 1fr; gap: 10px; }
.error { color: var(--danger); font-size: .86rem; margin-top: 6px; min-height: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: .95rem; margin: 0; }
.form-status.err { color: var(--danger); }
.form .btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* Cierre y pie */
.cta-final { text-align: center; padding: 72px 28px; border-radius: 24px; border: 1px solid var(--border); background: radial-gradient(circle at 50% 0%, rgba(0, 209, 255, .18), transparent 60%), var(--surface); }
.cta-final .lead { max-width: 560px; margin: 0 auto 28px; }
.footer { border-top: 1px solid var(--border); padding: 48px 0 32px; margin-top: 40px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer p, .footer a { color: var(--muted); font-size: .92rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.copy { margin-top: 32px; font-size: .85rem; color: var(--muted); }

/* Botón flotante de WhatsApp */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }

/* Cursor personalizado (solo computador) */
.cursor { position: fixed; top: 0; left: 0; width: 34px; height: 34px; border: 1.5px solid var(--primary); border-radius: 50%; pointer-events: none; z-index: 400; transform: translate(-50%, -50%); transition: width .2s, height .2s, background-color .2s, opacity .2s; opacity: 0; }
.cursor.on { opacity: .8; }
.cursor.hover { width: 54px; height: 54px; background: rgba(0, 209, 255, .1); }

/* Aparición al desplazarse */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Páginas simples (gracias / privacidad) */
.page { padding: calc(var(--header-h) + 56px) 0 64px; min-height: 80vh; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose p, .prose li { color: var(--muted); }
.draft { border: 1px dashed var(--silver); border-radius: 12px; padding: 14px 18px; color: var(--silver); font-size: .92rem; margin-bottom: 32px; }
.thanks { text-align: center; max-width: 620px; margin: 0 auto; }
.thanks .sym { width: 120px; height: 120px; margin: 0 auto 28px; animation: spin 1.4s cubic-bezier(.6, 0, .3, 1) both; }
.thanks .card { text-align: left; margin: 32px 0; }
.thanks .card:hover { transform: none; }

/* Tableta */
@media (max-width: 960px) {
  .nav { position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 20px 24px; transform: translateY(-120%); transition: transform .3s ease; visibility: hidden; }
  .nav.open { transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
  .nav .btn { margin-top: 18px; min-height: 50px; }
  .menu-btn { display: inline-flex; }
  .hero-grid, .system, .contact { grid-template-columns: 1fr; }
  .hero-art { max-width: 360px; }
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .steps::before { display: none; }
  .calc { grid-template-columns: 1fr; }
}

/* Celular */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero { padding-top: calc(var(--header-h) + 24px); }
  .hero-art { max-width: 280px; }
  .hero-ctas .btn { width: 100%; }
  .cards-3, .fit, .steps, .row-2 { grid-template-columns: 1fr; }
  .calc-form, .calc-result, .form { padding: 24px; }
  .card { padding: 24px; }
  .phone { grid-template-columns: 105px 1fr; }
  .cta-final { padding: 48px 20px; }
  .header-right .lang button { min-width: 36px; padding: 5px 8px; }
}

/* Reducir movimiento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
