/* ==========================================================================
   Clases de DJ — Santiago Rendón
   Sistema visual "La Cabina": negro carbón + violeta eléctrico + LED cian.
   CSS vanilla, sin frameworks. Preparado para migrar a React/Next.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Superficies */
  --bg:              #08060d;
  --bg-2:            #0e0a17;
  --surface:         rgba(255, 255, 255, 0.035);
  --surface-2:       rgba(255, 255, 255, 0.055);
  --surface-solid:   #14101f;
  --line:            rgba(255, 255, 255, 0.09);
  --line-strong:     rgba(255, 255, 255, 0.16);

  /* Texto */
  --text:            #f4f0fb;
  --muted:           #b4aac8;
  --muted-dim:       #8c8299;

  /* Acentos */
  --violet:          #8b5cf6;
  --violet-bright:   #a78bfa;
  --violet-soft:     #c4a5ff;
  --led:             #3de1ff;

  /* Efectos */
  --glow-violet:     0 0 40px rgba(139, 92, 246, 0.35);
  --glow-soft:       0 0 24px rgba(139, 92, 246, 0.22);
  --ring:            0 0 0 2px rgba(196, 165, 255, 0.55);

  /* Tipografía */
  --font-display:    'Sora', system-ui, sans-serif;
  --font-body:       'Manrope', system-ui, sans-serif;
  --font-mono:       'Space Mono', ui-monospace, monospace;

  /* Layout */
  --maxw:            1180px;
  --gutter:          clamp(20px, 5vw, 48px);
  --section-y:       clamp(72px, 11vw, 140px);
  --radius:          16px;
  --radius-lg:       24px;

  /* Motion */
  --ease:            cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
}

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

.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;
}

/* ---------- 3. Layout base ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--violet-soft);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  width: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet));
}

.h2 { font-size: clamp(32px, 5.4vw, 58px); }
.h3 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.025em; }

.lead {
  color: var(--muted);
  font-size: clamp(16px, 1.9vw, 19px);
  max-width: 62ch;
}

/* ---------- 4. Fondo ambiental ---------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(900px 620px at 78% -8%, rgba(139, 92, 246, 0.30), transparent 62%),
    radial-gradient(760px 520px at 8% 22%, rgba(61, 225, 255, 0.10), transparent 60%),
    radial-gradient(1000px 700px at 50% 108%, rgba(139, 92, 246, 0.18), transparent 65%),
    var(--bg);
}

/* Grano sutil: textura de club sin coste de imagen */
.grain {
  position: fixed;
  inset: -50%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Rejilla técnica para secciones concretas */
.grid-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 78%);
  opacity: 0.5;
}

/* ---------- 5. Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, var(--violet) 0%, #6d3ff0 100%);
  color: #fff;
  box-shadow: var(--glow-soft);
}
.btn--primary:hover { box-shadow: var(--glow-violet); }

.btn--ghost {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover { border-color: var(--violet-soft); background: var(--surface-2); }

.btn--lg { padding: 18px 34px; font-size: 16px; }
.btn--sm { padding: 11px 20px; font-size: 14px; }

.btn__ico { width: 17px; height: 17px; flex: none; }

/* ---------- 6. Navbar ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.nav.is-stuck {
  background: rgba(8, 6, 13, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.brand { display: flex; align-items: center; gap: 12px; }
/* Mismo logo que la home (Media/logo.png), blanco sobre fondo oscuro */
.brand__logo {
  height: 40px;
  width: auto;
  flex: none;
  object-fit: contain;
  user-select: none;
  transition: opacity 0.25s var(--ease);
}
.brand:hover .brand__logo { opacity: 0.8; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.brand__sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-top: 2px;
}

.nav__links { display: none; align-items: center; gap: 4px; }
.nav__link {
  position: relative;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav__link:hover { color: var(--text); background: var(--surface); }

/* Volver a la home: se distingue del resto de anclas de esta pagina */
.nav__link--home {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-right: 6px;
  border: 1px solid var(--line);
  color: var(--violet-soft);
}
.nav__link--home svg { width: 14px; height: 14px; }
.nav__link--home:hover { border-color: var(--violet-soft); background: rgba(139, 92, 246, 0.12); color: var(--violet-soft); }
.nav__link--home.is-active::after { display: none; }

.nav__link.is-active { color: var(--text); }
.nav__link.is-active::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--violet-soft);
  box-shadow: 0 0 10px var(--violet);
}

.nav__cta { display: none; }

.nav__burger {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.nav__burger span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav__burger span + span { margin-top: 5px; }
.nav__burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav__mobile {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
  background: rgba(8, 6, 13, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
}
.nav__mobile.is-open { grid-template-rows: 1fr; border-bottom-color: var(--line); }
.nav__mobile > div { overflow: hidden; }
.nav__mobile ul { padding: 8px var(--gutter) 26px; display: grid; gap: 2px; }
.nav__mobile a {
  display: block;
  padding: 14px 4px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.nav__mobile .btn { margin-top: 20px; width: 100%; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(120px, 17vw, 172px);
  padding-bottom: clamp(64px, 9vw, 110px);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  gap: clamp(44px, 6vw, 64px);
  align-items: center;
}

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
}
.hero__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--led);
  box-shadow: 0 0 10px var(--led);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.hero h1 {
  font-size: clamp(40px, 8.4vw, 82px);
  letter-spacing: -0.045em;
  margin-bottom: 24px;
}
.hero h1 .line-2 {
  display: block;
  background: linear-gradient(100deg, var(--violet-soft) 0%, #ffffff 45%, var(--led) 115%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  max-width: 54ch;
  margin-bottom: 28px;
}

.hero__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.25s, color 0.25s;
}
.tag:hover { border-color: var(--violet); color: var(--violet-soft); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }

.hero__trust {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--muted-dim);
}
.hero__trust svg { width: 16px; height: 16px; color: var(--violet-soft); flex: none; }

/* Deck: marco de cabina con placeholder de foto */
.deck { position: relative; }
.deck__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(150deg, rgba(139, 92, 246, 0.16), rgba(61, 225, 255, 0.05) 55%, transparent 80%),
    var(--surface-solid);
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
/* Fotografia del hero: llena el marco y se recorta al centro */
.deck__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  z-index: 1;
}
/* Degradado inferior para que la waveform y el marco no compitan con la foto */
.deck__frame::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(8, 6, 13, 0.75) 0%, transparent 42%),
    linear-gradient(150deg, rgba(139, 92, 246, 0.20), transparent 55%);
}

/* Esquinas tipo visor */
.corner {
  position: absolute;
  width: 22px; height: 22px;
  border: 1.5px solid var(--violet-soft);
  opacity: 0.7;
  z-index: 3;
}
.corner.tl { top: 16px; left: 16px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.corner.tr { top: 16px; right: 16px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.corner.bl { bottom: 16px; left: 16px; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.corner.br { bottom: 16px; right: 16px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }

/* Waveform */
.wave {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 78px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  padding: 0 18px 18px;
  z-index: 3;
  background: linear-gradient(to top, rgba(8, 6, 13, 0.92), transparent);
}
.wave i {
  flex: 1;
  min-width: 2px;
  height: 12%;
  border-radius: 2px;
  background: linear-gradient(to top, var(--violet), var(--violet-soft));
  transform-origin: bottom;
  transform: scaleY(1.6);
  animation: bounce 1.5s var(--ease) infinite alternate;
  animation-delay: calc(var(--i) * -0.06s);
  opacity: 0.85;
}
@keyframes bounce { from { transform: scaleY(1); } to { transform: scaleY(var(--h, 3)); } }

/* ---------- 8. Marquesina ---------- */
.marquee {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  overflow: hidden;
  padding-block: 15px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 44px;
  animation: slide 34s linear infinite;
}
.marquee__track span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-dim);
  display: inline-flex;
  align-items: center;
  gap: 44px;
  white-space: nowrap;
}
.marquee__track span::after { content: '/'; color: var(--violet); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- 9. Propuesta de valor ---------- */
.value__head { max-width: 800px; margin-bottom: clamp(40px, 6vw, 64px); }
.value__head h2 { margin-bottom: 22px; }

.value__layout { display: grid; gap: 22px; }

/* Tarjeta destacada tipo mezclador */
.mixer {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.13), transparent 60%), var(--surface-solid);
  padding: clamp(26px, 4vw, 38px);
  position: relative;
  overflow: hidden;
}
.mixer h3 { margin-bottom: 12px; }
.mixer p { color: var(--muted); font-size: 15.5px; max-width: 44ch; }
.mixer__faders { display: flex; gap: clamp(10px, 3vw, 22px); margin-top: 30px; }
.fader { flex: 1; text-align: center; }
.fader__track {
  height: clamp(90px, 16vw, 130px);
  width: 100%;
  max-width: 34px;
  margin: 0 auto 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}
.fader__fill {
  position: absolute;
  inset: auto 0 0 0;
  height: var(--v, 60%);
  background: linear-gradient(to top, var(--violet), var(--violet-soft));
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.6);
  transition: height 1.1s var(--ease);
}
.reveal:not(.is-in) .fader__fill { height: 6%; }
.fader__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dim);
  line-height: 1.4;
}

.value__cards { display: grid; gap: 16px; }
.vcard {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px 22px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s;
}
.vcard:hover { border-color: rgba(196, 165, 255, 0.5); transform: translateY(-3px); background: var(--surface-2); }
.vcard__ico {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.3);
  margin-bottom: 16px;
}
.vcard__ico svg { width: 19px; height: 19px; color: var(--violet-soft); }
.vcard h4 { font-size: 17px; font-weight: 700; margin-bottom: 7px; letter-spacing: -0.02em; }
.vcard p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* ---------- 10. Módulos ---------- */
.mods__head { display: grid; gap: 22px; margin-bottom: clamp(36px, 5vw, 56px); }
.mods__head h2 { margin-bottom: 18px; }

.rack { display: grid; gap: 14px; position: relative; }
.rack__items { display: grid; gap: 14px; }

.mod {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.mod:hover { border-color: var(--line-strong); }
.mod.is-open {
  border-color: rgba(139, 92, 246, 0.55);
  background: linear-gradient(120deg, rgba(139, 92, 246, 0.1), transparent 55%), var(--surface-solid);
  box-shadow: var(--glow-soft);
}

.mod__head {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(14px, 3vw, 26px);
  padding: clamp(18px, 3vw, 26px) clamp(16px, 3vw, 28px);
  text-align: left;
}

.mod__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 6.4vw, 54px);
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(196, 165, 255, 0.5);
  transition: color 0.35s var(--ease);
}
.mod.is-open .mod__num {
  color: var(--violet-soft);
  -webkit-text-stroke-color: transparent;
  text-shadow: 0 0 26px rgba(139, 92, 246, 0.7);
}

.mod__kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-dim);
  display: block;
  margin-bottom: 6px;
}
.mod__title { font-size: clamp(17px, 2.6vw, 24px); font-weight: 700; letter-spacing: -0.025em; }

.mod__toggle {
  width: 38px; height: 38px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  transition: transform 0.4s var(--ease), background 0.3s, border-color 0.3s;
}
.mod.is-open .mod__toggle { transform: rotate(45deg); background: var(--violet); border-color: var(--violet); }
.mod__toggle svg { width: 15px; height: 15px; }

.mod__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}
.mod.is-open .mod__body { grid-template-rows: 1fr; }
.mod__bodyInner { overflow: hidden; }
.mod__content {
  padding: 0 clamp(16px, 3vw, 28px) clamp(24px, 3vw, 30px);
  display: grid;
  gap: 20px;
}
.mod__content p { color: var(--muted); font-size: 15.5px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.chip {
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.mod.is-open .chip:hover { border-color: var(--violet); color: var(--text); background: rgba(139, 92, 246, 0.14); }

/* Riel de progreso del rack */
.rail {
  display: none;
  position: sticky;
  top: 150px;
  height: 320px;
  width: 3px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}
.rail__fill {
  display: block;
  width: 100%;
  height: var(--fill, 0%);
  background: linear-gradient(to bottom, var(--violet-soft), var(--violet));
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.8);
  transition: height 0.15s linear;
}

/* ---------- 11. Proceso ---------- */
.flow { display: grid; gap: 14px; position: relative; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.step:hover { border-color: rgba(196, 165, 255, 0.45); transform: translateX(4px); }
.step__idx {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--violet-soft);
  border: 1px solid rgba(139, 92, 246, 0.45);
  background: rgba(139, 92, 246, 0.12);
  flex: none;
}
.step h4 { font-size: 16.5px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 3px; }
.step p { font-size: 14px; color: var(--muted); }

/* ---------- 12. Personalización ---------- */
.fit { display: grid; gap: 16px; }
.fcard {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 26px 24px;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
}
.fcard:hover { border-color: rgba(196, 165, 255, 0.45); background: var(--surface-2); transform: translateY(-3px); }
.knob {
  width: 46px; height: 46px;
  border-radius: 50%;
  margin-bottom: 18px;
  background: conic-gradient(from 210deg, var(--violet) 0deg, var(--violet-soft) var(--deg, 200deg), rgba(255, 255, 255, 0.07) var(--deg, 200deg));
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 20px rgba(139, 92, 246, 0.25);
}
.knob::after {
  content: '';
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #100c1c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.fcard__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--violet-soft);
  display: block;
  margin-bottom: 8px;
}
.fcard h4 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.fcard p { font-size: 14.5px; color: var(--muted); }

/* ---------- 13. Sobre Santiago ---------- */
.about { display: grid; gap: clamp(32px, 5vw, 56px); align-items: center; }
.about__photo {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: var(--surface-solid);
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.about__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
/* Tinte violeta que integra el retrato de estudio con el resto de la pagina */
.about__photo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(200deg, rgba(139, 92, 246, 0.22), transparent 55%),
    linear-gradient(to top, rgba(8, 6, 13, 0.35), transparent 45%);
}

.quote {
  font-family: var(--font-display);
  font-size: clamp(20px, 3.1vw, 31px);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.03em;
  margin-block: 24px 26px;
  position: relative;
  padding-left: 22px;
}
.quote::before {
  content: '';
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(var(--violet-soft), var(--violet));
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.6);
}
.signature {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

/* Bloque de contenido pendiente */
/* ---------- 14. CTA final ---------- */
.cta {
  position: relative;
  border-radius: clamp(20px, 4vw, 34px);
  border: 1px solid rgba(139, 92, 246, 0.35);
  background:
    radial-gradient(700px 340px at 50% 0%, rgba(139, 92, 246, 0.32), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    var(--surface-solid);
  padding: clamp(44px, 7vw, 84px) clamp(24px, 5vw, 64px);
  text-align: center;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}
.cta h2 { font-size: clamp(32px, 6vw, 62px); margin-bottom: 20px; }
.cta p { color: var(--muted); max-width: 56ch; margin: 0 auto 34px; font-size: clamp(15px, 1.9vw, 18px); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta__note {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

/* ---------- 15. Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 52px 40px; }
.footer__grid { display: grid; gap: 32px; }
.footer__about p { color: var(--muted); font-size: 14.5px; max-width: 34ch; margin-top: 16px; }
.footer__title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 16px;
}
.footer__links { display: grid; gap: 11px; }
.footer__links a {
  color: var(--muted);
  font-size: 14.5px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--violet-soft); }
.footer__links svg { width: 15px; height: 15px; flex: none; }
.footer__bottom {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--muted-dim);
}

/* ---------- 16. Barra fija en móvil ---------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 55;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgba(8, 6, 13, 0.9);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.4s var(--ease);
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta .btn { width: 100%; }

/* ---------- 17. Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 18. Breakpoints ---------- */
@media (min-width: 640px) {
  .value__cards { grid-template-columns: repeat(2, 1fr); }
  .fit { grid-template-columns: repeat(2, 1fr); }
  .sticky-cta .btn { width: auto; min-width: 300px; display: flex; margin-inline: auto; }
}

@media (min-width: 860px) {
  .mod__content { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 34px; }
}

@media (min-width: 900px) {
  .nav__links, .nav__cta { display: flex; }
  .nav__burger, .nav__mobile { display: none; }

  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }

  .value__layout { grid-template-columns: 0.92fr 1.08fr; align-items: start; }

  .mods__head { grid-template-columns: 1.15fr 0.85fr; align-items: end; }

  .rack--with-rail { grid-template-columns: 3px 1fr; gap: 28px; align-items: start; }
  .rail { display: block; }

  .flow { grid-template-columns: repeat(5, 1fr); gap: 12px; }
  .step { grid-template-columns: 1fr; align-items: start; gap: 14px; padding: 24px 20px; }
  .step:hover { transform: translateY(-4px); }
  .flow::before {
    content: '';
    position: absolute;
    top: 44px;
    left: 8%; right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
  }

  .fit { grid-template-columns: repeat(4, 1fr); }

  .about { grid-template-columns: 0.85fr 1.15fr; }

  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }

  .sticky-cta { display: none; }
}

/* ---------- 19. Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 20. Logo de marca como textura de fondo ----------
   El mismo recurso y la misma discreción que la portada, para que las dos
   páginas se lean como un solo sitio.

   Tres cuidados, y los tres importan:
   · `isolation: isolate` en la sección — sin él, un hijo con z-index negativo
     se va DETRÁS del fondo de la página y no se ve nada.
   · `overflow: hidden` para que el logo, que sobresale a propósito, no genere
     barra horizontal. NO se aplica a #modulos: ahí vive el riel `.rail`, que es
     `position: sticky`, y cualquier ancestro con overflow lo deja clavado.
   · Se oculta en móvil, como en la portada: en pantalla estrecha la marca de
     agua compite con el texto en vez de acompañarlo. */
.section--deco { isolation: isolate; overflow: hidden; }

.deco-logo {
  position: absolute;
  z-index: -1;
  max-width: none;
  pointer-events: none;
  user-select: none;
  opacity: 0.5;
}

/* Abajo a la izquierda, ligeramente girado: el mismo gesto de la portada. */
.deco-logo--bl { bottom: -64px; left: -80px; width: 300px; transform: rotate(6deg); }

/* Arriba a la derecha, espejado, para que las dos marcas no se lean iguales. */
.deco-logo--tr { top: 96px; right: 0; width: 200px; opacity: 0.4; transform: translateX(18%) rotate(-12deg) scaleX(-1); }

/* Abajo a la derecha, más grande y más tumbado (el de la sección de contacto). */
.deco-logo--br { bottom: -96px; right: -80px; width: 320px; opacity: 0.4; transform: rotate(-18deg) scaleX(-1); }

@media (min-width: 768px) {
  .deco-logo--bl { width: 460px; }
  .deco-logo--tr { width: 300px; }
  .deco-logo--br { width: 500px; }
}

/* Móvil: sin marca de agua, igual que en la portada. */
@media (max-width: 639px) { .deco-logo { display: none; } }

/* ---------- 20. Barra de credito del desarrollador ---------- */
.dev-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 20px calc(18px + env(safe-area-inset-bottom));
  background: #050309;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  text-align: left;
  transition: background 0.25s var(--ease);
}
.dev-bar:hover { background: #0a0713; }
.dev-bar img {
  height: 30px;
  width: auto;
  flex: none;
  opacity: 0.85;
  transition: opacity 0.25s var(--ease);
}
.dev-bar:hover img { opacity: 1; }
.dev-bar b {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.35;
  transition: color 0.25s var(--ease);
}
.dev-bar i {
  display: block;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b6479;
  margin-top: 3px;
}
.dev-bar:hover b { color: #a5ce54; }
@media (max-width: 460px) {
  .dev-bar { gap: 11px; padding-inline: 16px; }
  .dev-bar img { height: 26px; }
  .dev-bar b { font-size: 12px; }
  .dev-bar i { font-size: 9.5px; }
}
