/* ============================================================
   Nave Espacial — hoja de estilos principal
   Reconstruida desde el diseño de Claude Design (Home v2).
   Paleta, tipografía y animaciones conservadas al detalle.
   ============================================================ */

/* ---------- 1. Fuentes self-hosted ---------- */
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk-var-latin.woff2') format('woff2-variations'),
       url('../fonts/space-grotesk-var-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-italic-700-latin.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 2. Tokens ---------- */
:root {
  --bg: #08050F;
  --surface: #120B1E;
  --surface-hover: #1A102C;
  --text: #F0EDF8;
  --text-80: rgba(240, 237, 248, .8);
  --text-70: rgba(240, 237, 248, .7);
  --text-65: rgba(240, 237, 248, .65);
  --text-60: rgba(240, 237, 248, .6);
  --text-55: rgba(240, 237, 248, .55);
  --text-50: rgba(240, 237, 248, .5);
  --text-45: rgba(240, 237, 248, .45);
  --text-40: rgba(240, 237, 248, .4);

  --purple-deep: #6D00D1;
  --purple: #8B2CF5;
  --magenta: #CC1DB9;
  --red: #E52421;
  --lilac: #c79bff;
  --salmon: #ff9d94;
  --pink: #f2a2e5;

  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);

  --grad: linear-gradient(100deg, #8B2CF5, #CC1DB9, #E52421);
  --grad-btn: linear-gradient(100deg, #6D00D1, #E52421);

  --pad-x: 5%;
  --radius: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --nav-h: 80px;
}

/* ---------- 3. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.5;
}

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--lilac); }

h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; margin: 0; }
p { margin: 0; }

button { font: inherit; color: inherit; border: none; background: none; cursor: pointer; }
input, textarea { font: inherit; }

:focus-visible {
  outline: 2px solid var(--lilac);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Enlace de salto para lectores de pantalla y teclado */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--purple-deep);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 10px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 4. Utilidades tipográficas ---------- */
.serif-grad {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lilac);
  margin-bottom: 14px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 700;
  letter-spacing: -.02em;
  max-width: 640px;
}
.section-head p.lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-60);
  max-width: 480px;
  margin-top: 18px;
}

.section-head--center {
  max-width: 820px;
  margin: 0 auto 48px;
  text-align: center;
  display: block;
}
.section-head--center h2 {
  font-size: clamp(26px, 3.2vw, 40px);
  max-width: none;
}

/* ---------- 5. Fondo espacial ---------- */
.space {
  position: relative;
  min-height: 100vh;
  /* Recorta el desbordamiento horizontal de las nebulosas decorativas (que
     salen del borde a propósito) sin crear contenedor de scroll ni romper el
     header sticky. `clip` permite mantener overflow-y visible. */
  overflow-x: clip;
}

.starfield {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 12%, rgba(255,255,255,.7), transparent),
    radial-gradient(1.5px 1.5px at 22% 34%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 38% 8%, rgba(255,255,255,.6), transparent),
    radial-gradient(1.5px 1.5px at 54% 46%, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 68% 18%, rgba(255,255,255,.55), transparent),
    radial-gradient(1.5px 1.5px at 82% 38%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 92% 10%, rgba(255,255,255,.45), transparent),
    radial-gradient(1.5px 1.5px at 14% 62%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 30% 78%, rgba(255,255,255,.4), transparent),
    radial-gradient(1.5px 1.5px at 46% 90%, rgba(255,255,255,.55), transparent),
    radial-gradient(1px 1px at 62% 68%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.5px 1.5px at 76% 82%, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 90% 60%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.5px 1.5px at 5% 40%, rgba(255,255,255,.35), transparent),
    radial-gradient(1px 1px at 96% 88%, rgba(255,255,255,.4), transparent);
  background-size: 100% 2200px;
  background-repeat: repeat-y;
}

.nebula {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.nebula--1 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(109,0,209,.22), transparent 70%);
  top: -160px; left: -160px;
  animation: drift1 9s ease-in-out infinite alternate;
}
.nebula--2 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(229,36,33,.18), transparent 70%);
  top: 600px; right: -140px;
  animation: drift2 11s ease-in-out infinite alternate;
}
.nebula--3 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(204,29,185,.14), transparent 70%);
  top: 1500px; left: 10%;
  animation: drift1 13s ease-in-out infinite alternate;
}

.shooting-star {
  position: absolute;
  height: 2px;
  border-radius: 2px;
  z-index: 0;
  pointer-events: none;
}
.shooting-star--1 {
  top: 120px; right: 8%; width: 110px;
  background: linear-gradient(90deg, transparent, #fff);
  animation: shoot 9s ease-in-out infinite 2s;
}
.shooting-star--2 {
  top: 1450px; right: 20%; width: 90px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.8));
  animation: shoot 13s ease-in-out infinite 6s;
}

.twinkle {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  z-index: 0;
  pointer-events: none;
}

#cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,44,245,.10), rgba(204,29,185,.05) 45%, transparent 70%);
  pointer-events: none;
  z-index: 2;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity .5s ease;
  will-change: transform;
}

/* ---------- 6. Navegación ---------- */
/* El sticky va en el <header>, no en el <nav>: un elemento sticky solo se
   mantiene dentro de la caja de su padre, y el header mide lo mismo que el
   nav — poniéndolo aquí el menú acompaña todo el scroll de la página. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad-x);
  background: rgba(8, 5, 15, .7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
  transition: padding .35s ease, background .35s ease;
}
.nav.is-scrolled {
  padding: 10px var(--pad-x);
  background: rgba(8, 5, 15, .88);
}

.nav__logo img { height: 52px; width: auto; transition: height .35s ease; }
.nav.is-scrolled .nav__logo img { height: 44px; }

.nav__links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 40px;
  font-size: 14.5px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  color: #fff;
  padding: 8px 2px;
  display: inline-block;
  background-image: var(--grad);
  background-repeat: no-repeat;
  background-size: 0% 2px;
  background-position: left calc(100% - 4px);
  transition: background-size .35s var(--ease), color .3s ease;
}
.nav__links a:hover,
.nav__links a:focus-visible { background-size: 100% 2px; color: #fff; }

/* El CTA dentro de la lista es solo para el menú móvil.
   En escritorio manda el .nav__cta del extremo derecho. */
.nav__links .btn--nav { display: none; }

.nav__toggle {
  display: none;
  height: 44px;
  padding: 0 12px;
  gap: 9px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
}
.nav__toggle-label {
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
}
.nav__toggle .nav__bars {
  display: block;
  width: 20px; height: 2px;
  background: #fff;
  border-radius: 2px;
  position: relative;
  transition: background .2s ease;
}
.nav__toggle .nav__bars::before,
.nav__toggle .nav__bars::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s var(--ease);
}
.nav__toggle .nav__bars::before { top: -6px; }
.nav__toggle .nav__bars::after { top: 6px; }
.nav__toggle[aria-expanded="true"] .nav__bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__bars::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 7. Botones ---------- */
.btn {
  display: inline-block;
  border-radius: 100px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: transform .35s var(--ease), box-shadow .35s ease, border-color .3s ease;
}
.btn--primary {
  background: var(--grad-btn);
  color: #fff;
  padding: 16px 32px;
  font-size: 15.5px;
  font-weight: 700;
  box-shadow: 0 0 40px rgba(109, 0, 209, .35);
}
.btn--primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 60px rgba(204, 29, 185, .55);
  color: #fff;
}
.btn--nav {
  background: var(--grad-btn);
  color: #fff;
  padding: 11px 24px;
  font-size: 14px;
  white-space: nowrap;
}
.btn--nav:hover {
  transform: scale(1.04);
  box-shadow: 0 0 28px rgba(109, 0, 209, .5);
  color: #fff;
}
.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 16px 32px;
  font-size: 15.5px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--ghost:hover { border-color: rgba(199, 155, 255, .6); transform: scale(1.05); color: #fff; }

.btn--outline {
  border: 1px solid var(--line-strong);
  padding: 12px 22px;
  font-size: 14px;
  color: var(--text-80);
  white-space: nowrap;
}
.btn--outline:hover { border-color: rgba(199, 155, 255, .6); color: #fff; }

.btn--white {
  background: #fff;
  color: var(--purple-deep);
  padding: 16px 34px;
  font-size: 15.5px;
  font-weight: 700;
  white-space: nowrap;
}
.btn--white:hover { transform: scale(1.05); color: var(--purple-deep); }

/* ---------- 8. Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  padding: 110px var(--pad-x) 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(109, 0, 209, .15);
  border: 1px solid rgba(109, 0, 209, .35);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--lilac);
  margin-bottom: 32px;
}
.badge__dot { animation: pulseDot 2s infinite; }

.hero h1 {
  font-size: clamp(40px, 6.4vw, 92px);
  line-height: 1.03;
  font-weight: 700;
  letter-spacing: -.03em;
  max-width: 1000px;
}
.hero__sub {
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.7;
  color: var(--text-60);
  max-width: 620px;
  margin-top: 26px;
}
.hero__cta {
  display: flex;
  gap: 16px;
  margin-top: 38px;
  flex-wrap: wrap;
  justify-content: center;
}

.stats {
  display: flex;
  gap: 56px;
  margin-top: 64px;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
}
.stats li { text-align: center; }
.stats__num {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.stats__label {
  font-size: 12.5px;
  color: var(--text-50);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-top: 4px;
}

.hero__visual {
  margin-top: 64px;
  width: 100%;
  max-width: 1040px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .1);
  overflow: hidden;
  background: linear-gradient(160deg, rgba(109, 0, 209, .18), rgba(0, 0, 0, .2));
  animation: floatY 7s ease-in-out infinite;
  will-change: transform;
}
.hero__visual img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

/* ---------- 9. Marquee de marcas ---------- */
.marquee-section {
  position: relative;
  z-index: 1;
  padding: 70px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.marquee-section h2 {
  text-align: center;
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 36px;
  padding: 0 var(--pad-x);
}
.marquee { display: flex; overflow: hidden; }
.marquee__track {
  display: flex;
  gap: 48px;
  align-items: center;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  padding-right: 48px;
  list-style: none;
  margin: 0;
}
.marquee__track li {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-40);
}

/* ---------- 10. Servicios ---------- */
.services {
  position: relative;
  z-index: 1;
  padding: 120px var(--pad-x);
  scroll-margin-top: var(--nav-h);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5px;
  background: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  list-style: none;
  padding: 0;
  margin: 0;
}
.service {
  background: var(--surface);
  padding: 36px 30px;
  transition: background .35s ease;
}
.service:hover { background: var(--surface-hover); }
.service__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service__icon svg { width: 26px; height: 26px; }
.service__icon--p {
  background: rgba(109, 0, 209, .18);
  border: 1px solid rgba(109, 0, 209, .35);
  color: var(--lilac);
}
.service__icon--r {
  background: rgba(229, 36, 33, .18);
  border: 1px solid rgba(229, 36, 33, .35);
  color: var(--salmon);
}
.service h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.service p { font-size: 14.5px; color: var(--text-55); line-height: 1.65; }

/* ---------- 11. Proyectos ---------- */
.projects {
  position: relative;
  z-index: 1;
  padding: 0 var(--pad-x) 130px;
  scroll-margin-top: var(--nav-h);
}
.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.project {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  background: var(--surface);
  transition: transform .4s var(--ease), border-color .3s ease, box-shadow .4s ease;
}
.project:hover {
  transform: translateY(-8px);
  border-color: rgba(139, 44, 245, .45);
  box-shadow: 0 20px 50px rgba(109, 0, 209, .25);
}
.project__body { padding: 24px; position: relative; }
.project__kicker {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lilac);
  margin-bottom: 10px;
}
.project__body h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.project__body p { font-size: 14px; color: var(--text-55); line-height: 1.6; }

.project__stage {
  position: relative;
  height: 230px;
  background: var(--bg);
  overflow: hidden;
}
.project__glow {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(109,0,209,.4), rgba(204,29,185,.18) 55%, transparent 75%);
  bottom: -70px; left: 50%;
  transform: translateX(-50%);
  filter: blur(10px);
  width: 340px; height: 180px;
}

.tags {
  position: absolute;
  top: 14px; left: 14px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0; padding: 0;
  z-index: 2;
}
.tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 4px 10px;
  border-radius: 100px;
}
.tag--p { background: rgba(109,0,209,.25); border: 1px solid rgba(139,44,245,.4); color: var(--lilac); }
.tag--m { background: rgba(204,29,185,.18); border: 1px solid rgba(204,29,185,.4); color: var(--pink); }
.tag--r { background: rgba(229,36,33,.18); border: 1px solid rgba(229,36,33,.4); color: var(--salmon); }

/* Mockup laptop (Ripley) */
.laptop {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  width: 250px;
}
.laptop__screen {
  background: #1a1a1f;
  border: 1.5px solid #2c2c33;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  padding: 6px 6px 0;
  box-shadow: 0 -10px 50px rgba(109, 0, 209, .35);
}
.laptop__screen > div {
  height: 132px;
  border-radius: 5px 5px 0 0;
  overflow: hidden;
  background: #0d0a16;
}
.laptop__screen img { width: 100%; height: 100%; object-fit: cover; }
.laptop__base {
  height: 9px;
  background: linear-gradient(180deg, #3a3a42, #232329);
  border-radius: 0 0 10px 10px;
}
.laptop__foot {
  width: 70px; height: 3px;
  background: #3a3a42;
  border-radius: 0 0 4px 4px;
  margin: 0 auto;
}

/* Mockup teléfono (Cerdeña) */
.phone {
  position: absolute;
  left: 50%; bottom: -34px;
  transform: translateX(-50%);
  width: 118px;
  background: #1a1a1f;
  border: 1.5px solid #2c2c33;
  border-radius: 18px 18px 0 0;
  padding: 5px 5px 0;
  box-shadow: 0 -12px 50px rgba(204, 29, 185, .4);
}
.phone__screen {
  position: relative;
  height: 212px;
  border-radius: 13px 13px 0 0;
  overflow: hidden;
  background: #0d0a16;
}
.phone__screen img { width: 100%; height: 100%; object-fit: cover; }
.phone__notch {
  position: absolute;
  top: 5px; left: 50%;
  transform: translateX(-50%);
  width: 34px; height: 10px;
  border-radius: 100px;
  background: #1a1a1f;
}
.metric-pill {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(8, 5, 15, .7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 100px;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 700;
  z-index: 2;
}
.metric-pill__from { color: var(--text-50); }
.metric-pill__arrow { color: var(--magenta); }

/* Ventana de analytics (KFC) */
.project__stage--pad {
  position: relative;
  padding: 14px 18px;
  background: var(--bg);
  overflow: hidden;
  height: auto;
}
.project__stage--pad .project__glow { height: 200px; bottom: -90px; }
.project__stage--pad .tags { position: relative; top: auto; left: auto; margin-bottom: 12px; }

.window {
  position: relative;
  border: 1px solid rgba(109, 0, 209, .3);
  background: rgba(10, 5, 21, .85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(109, 0, 209, .25);
}
.window__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.window__dot { width: 8px; height: 8px; border-radius: 50%; display: block; }
.window__title {
  margin-left: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-45);
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  list-style: none;
  margin: 0;
}
.stack li { display: flex; align-items: center; gap: 10px; }
.stack__icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: #181022;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stack__text { flex: 1; min-width: 0; }
.stack__text b { font-size: 12.5px; font-weight: 700; color: var(--text); display: block; }
.stack__text span { font-size: 11px; color: var(--text-45); }
.stack__check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(52, 199, 89, .15);
  border: 1px solid rgba(52, 199, 89, .4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------- 12. Testimonios ---------- */
.testimonials {
  position: relative;
  z-index: 1;
  padding: 0 var(--pad-x) 130px;
  scroll-margin-top: var(--nav-h);
}
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  list-style: none;
  padding: 0; margin: 0;
}
.testimonial {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.testimonial__stars { color: var(--red); font-size: 15px; letter-spacing: 2px; margin-bottom: 20px; }
.testimonial blockquote {
  font-size: 14.5px;
  color: var(--text-65);
  font-style: italic;
  line-height: 1.75;
  margin: 0 0 28px;
}
.testimonial__author { display: flex; align-items: center; gap: 12px; }
.testimonial__avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-deep), var(--red));
  flex-shrink: 0;
  object-fit: cover;
}
.testimonial__name { font-size: 14px; font-weight: 700; }
.testimonial__role { font-size: 12.5px; color: var(--text-50); }

/* ---------- 13. Banner CTA ---------- */
.cta-banner {
  position: relative;
  z-index: 1;
  margin: 0 var(--pad-x) 110px;
  background: linear-gradient(120deg, #6D00D1, #CC1DB9, #E52421, #CC1DB9, #6D00D1);
  background-size: 200% 200%;
  animation: gradDrift 8s ease infinite;
  border-radius: 28px;
  padding: 64px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-banner h2 {
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 700;
  letter-spacing: -.02em;
}
.cta-banner p {
  color: rgba(255, 255, 255, .85);
  margin-top: 10px;
  max-width: 420px;
}

/* ---------- 14. Fundador ---------- */
.founder {
  position: relative;
  z-index: 1;
  padding: 0 var(--pad-x) 130px;
  scroll-margin-top: var(--nav-h);
}
.founder__card {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 56px;
  align-items: center;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 24px;
  padding: 56px;
  overflow: hidden;
}
.founder__photo {
  position: relative;
  width: 80%;
  max-width: 340px;
  aspect-ratio: 3 / 4;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: radial-gradient(120% 100% at 50% 100%, rgba(229,36,33,.35), rgba(204,29,185,.25) 40%, rgba(109,0,209,.35) 75%, #170c2a);
  border: 1px solid rgba(255, 255, 255, .12);
}
.founder__photo img {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  filter: drop-shadow(0 0 22px rgba(255,255,255,.28)) drop-shadow(0 -6px 30px rgba(8,5,15,.4));
}
.founder__photo::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  background: linear-gradient(to top, rgba(8, 5, 15, .55), transparent);
  pointer-events: none;
}
.founder__caption {
  position: absolute;
  bottom: 14px; left: 0; right: 0;
  text-align: center;
  pointer-events: none;
  z-index: 2;
}
.founder__caption b { font-size: 14.5px; font-weight: 700; display: block; }
.founder__caption span { font-size: 12px; color: var(--text-70); }

.founder__text h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 18px;
}
.founder__text p {
  color: var(--text-65);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 16px;
}
.founder__text p.strong {
  color: var(--text);
  font-weight: 600;
  margin-bottom: 28px;
}
.founder__text .btn--outline { padding: 13px 26px; font-size: 14.5px; }

/* ---------- 15. FAQ ---------- */
.faq {
  position: relative;
  z-index: 1;
  padding: 0 var(--pad-x) 130px;
}
.faq__list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.faq__item { background: var(--surface); padding: 24px 28px; }
.faq__item h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.faq__item p { font-size: 14.5px; color: var(--text-60); line-height: 1.7; }

/* ---------- 16. Contacto ---------- */
.contact {
  position: relative;
  z-index: 1;
  padding: 0 var(--pad-x) 130px;
  scroll-margin-top: var(--nav-h);
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  align-items: start;
}
.contact h2 {
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 18px;
}
.contact__lead {
  color: var(--text-60);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 420px;
}
.contact__method {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  color: var(--text);
}
.contact__method:hover { color: var(--text); }
.contact__method:hover .contact__icon { border-color: rgba(199, 155, 255, .6); }
.contact__icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .3s ease;
}
.contact__icon svg { width: 24px; height: 24px; }
.contact__icon--p {
  background: rgba(109, 0, 209, .18);
  border: 1px solid rgba(109, 0, 209, .35);
  color: var(--lilac);
}
.contact__icon--r {
  background: rgba(229, 36, 33, .18);
  border: 1px solid rgba(229, 36, 33, .35);
  color: var(--salmon);
}
.contact__label {
  font-size: 12px;
  color: var(--text-50);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.contact__value { font-size: 15.5px; font-weight: 600; }

.form {
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  padding: 36px;
}
.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-55);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.field input,
.field textarea {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  padding: 13px 14px;
  color: var(--text);
  font-size: 14.5px;
  outline: none;
  transition: border-color .25s ease, background .25s ease;
  width: 100%;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-40); }
.field input:focus,
.field textarea:focus {
  border-color: rgba(199, 155, 255, .6);
  background: rgba(255, 255, 255, .07);
}
.field textarea { min-height: 100px; resize: vertical; font-family: inherit; }
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--red); }
.field__error { font-size: 12.5px; color: var(--salmon); min-height: 0; }

.form__submit {
  margin-top: 18px;
  background: var(--grad-btn);
  color: #fff;
  text-align: center;
  padding: 15px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 700;
  width: 100%;
  transition: transform .3s var(--ease), box-shadow .3s ease, opacity .2s ease;
}
.form__submit:hover:not(:disabled) {
  transform: scale(1.02);
  box-shadow: 0 0 40px rgba(109, 0, 209, .45);
}
.form__submit:disabled { opacity: .6; cursor: wait; }

.form__status {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.6;
  padding: 12px 14px;
  border-radius: 10px;
  display: none;
}
.form__status.is-ok {
  display: block;
  background: rgba(52, 199, 89, .12);
  border: 1px solid rgba(52, 199, 89, .4);
  color: #7ee2a0;
}
.form__status.is-error {
  display: block;
  background: rgba(229, 36, 33, .12);
  border: 1px solid rgba(229, 36, 33, .4);
  color: var(--salmon);
}

/* Honeypot antispam — oculto para humanos, visible para bots */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ---------- 17. Footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 48px var(--pad-x) 0;
}
.footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  padding-bottom: 36px;
}
.footer__brand { max-width: 340px; }
.footer__brand img { height: 48px; width: auto; margin-bottom: 14px; }
.footer__brand p { font-size: 14px; color: var(--text-55); line-height: 1.7; }

.social { display: flex; gap: 10px; margin-top: 18px; list-style: none; padding: 0; }
.social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: border-color .3s ease, background .3s ease;
}
.social a:hover { border-color: rgba(199, 155, 255, .6); background: rgba(109, 0, 209, .15); color: #fff; }
.social svg { width: 20px; height: 20px; }

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  list-style: none;
  padding: 0; margin: 0;
}
.footer__col h2, .footer__heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-45);
  margin-bottom: 4px;
}
.footer__col a, .footer__col li { color: var(--text-70); }
.footer__col a:hover { color: var(--lilac); }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding: 18px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-40);
}

/* ---------- 18. WhatsApp flotante ---------- */
.wa-fab {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 60;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(37, 211, 102, .45);
  transition: transform .3s var(--ease);
}
.wa-fab:hover { transform: scale(1.08); }
.wa-fab svg { width: 28px; height: 28px; color: #fff; }

/* ---------- 19. Animaciones ---------- */
@keyframes shoot {
  0%   { transform: translate(0, 0) rotate(-35deg); opacity: 0; }
  5%   { opacity: 1; }
  25%  { transform: translate(-420px, 290px) rotate(-35deg); opacity: 0; }
  100% { transform: translate(-420px, 290px) rotate(-35deg); opacity: 0; }
}
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
@keyframes drift1 { from { transform: translate(0, 0); } to { transform: translate(40px, 26px); } }
@keyframes drift2 { from { transform: translate(0, 0); } to { transform: translate(-36px, -24px); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
@keyframes twinkleA { 0%, 100% { opacity: .15; } 50% { opacity: .9; } }
@keyframes twinkleB { 0%, 100% { opacity: .7; } 50% { opacity: .2; } }
@keyframes gradDrift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* Sin JS, todo el contenido debe verse igual */
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------- 20. Responsive ---------- */
@media (max-width: 1024px) {
  .founder__card { grid-template-columns: 1fr; gap: 40px; padding: 40px; }
  .founder__text p { max-width: none; }
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .contact__lead { max-width: none; }
  .hero__visual img { height: 400px; }
}

@media (max-width: 900px) {
  :root { --pad-x: 6%; }

  .nav__toggle { display: flex; }
  .nav__cta { display: none; }
  /* Con el menú abierto, header y desplegable forman una sola superficie
     sólida (sin costura ni transparencia que deje ver el contenido). */
  .nav--open,
  .nav--open.is-scrolled { background: #08050f; border-bottom-color: transparent; }
  /* Páginas sin menú hamburguesa (legal): el CTA sí se mantiene */
  .nav__cta--always { display: inline-block; padding: 10px 18px; font-size: 13.5px; }

  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    transform: none;
    left: 0;
    flex-direction: column;
    gap: 0;
    background: #08050f;
    border-bottom: 1px solid var(--line);
    padding: 0 0 24px;
    font-size: 17px;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height .35s var(--ease), visibility .35s;
  }
  .nav__links.is-open {
    max-height: 80vh;
    visibility: visible;
    overflow-y: auto;
  }
  .nav__links li { width: 100%; }
  .nav__links a {
    display: block;
    padding: 16px var(--pad-x);
    background-image: none;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
  }
  .nav__links .btn--nav {
    margin: 18px var(--pad-x) 0;
    display: block;
    text-align: center;
    padding: 14px 24px;
    border-bottom: none;
  }

  .hero { padding-top: 72px; }
  .stats { gap: 32px 40px; }
  .cta-banner { padding: 44px 32px; }
  .services { padding: 90px var(--pad-x); }
}

@media (max-width: 640px) {
  .hero__visual img { height: 280px; }
  .hero__cta { width: 100%; flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .stats { gap: 28px; width: 100%; }
  .stats li { flex: 1 1 40%; }
  .form { padding: 24px; }
  .form__grid { grid-template-columns: 1fr; }
  .founder__card { padding: 28px 22px; }
  .founder__photo { width: 100%; }
  .cta-banner { padding: 36px 24px; border-radius: 22px; }
  .cta-banner .btn--white { width: 100%; }
  .testimonial { padding: 24px; }
  .faq__item { padding: 20px 22px; }
  .footer__top { gap: 32px; }
  .wa-fab { bottom: 18px; right: 18px; width: 52px; height: 52px; }
  .wa-fab svg { width: 25px; height: 25px; }
  .marquee__track { gap: 32px; }
  .marquee__track li { font-size: 18px; }
}

/* ---------- 21. Accesibilidad: menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  #cursor-glow { display: none; }
}

/* ---------- 22. Página legal ---------- */
.legal {
  position: relative;
  z-index: 1;
  padding: 72px var(--pad-x) 110px;
  max-width: 880px;
  margin: 0 auto;
}
.legal__intro {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 48px;
  font-size: 14.5px;
  color: var(--text-65);
  line-height: 1.8;
}
.legal h1 {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 12px;
}
.legal__updated { color: var(--text-50); font-size: 14px; margin-bottom: 40px; }
.legal section { scroll-margin-top: calc(var(--nav-h) + 16px); margin-bottom: 56px; }
.legal h2 {
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.legal h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 28px 0 10px;
  color: var(--text);
}
.legal p, .legal li {
  color: var(--text-65);
  line-height: 1.8;
  font-size: 15px;
}
.legal p { margin-bottom: 14px; }
.legal ul { padding-left: 20px; margin: 0 0 14px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--lilac); text-decoration: underline; text-underline-offset: 3px; }
.legal dl { margin: 0 0 16px; }
.legal dt {
  font-weight: 700;
  color: var(--text);
  font-size: 14.5px;
  margin-top: 12px;
}
.legal dd { margin: 2px 0 0; color: var(--text-65); font-size: 15px; }

.legal__toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 48px;
}
.legal__toc a {
  display: inline-block;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-80);
  text-decoration: none;
  transition: border-color .3s ease, color .3s ease;
}
.legal__toc a:hover { border-color: rgba(199, 155, 255, .6); color: #fff; }
