/* ==========================================================
   ZUNIO — Estudio de diseño y desarrollo web
   ========================================================== */

:root {
  --bg: #07080b;
  --bg-2: #0b0c11;
  --card: #0d0e14;
  --card-2: #12131a;
  --ink: #ececf1;
  --muted: #8d8d99;
  --dim: #5a5a66;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #8b7bff;
  --accent-2: #00d4ff;
  --grad: linear-gradient(120deg, var(--accent), var(--accent-2));
  --ok: #3ddc97;

  --font-display: "Anton", Impact, "Arial Narrow", sans-serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 22px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
::selection { background: var(--accent); color: #07080b; }

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

/* ---------- Ruido de fondo + brillo que sigue al cursor ---------- */
.noise {
  position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cursor-glow {
  position: fixed; left: 0; top: 0; z-index: 0; pointer-events: none;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 123, 255, 0.10), transparent 65%);
  transform: translate(-50%, -50%);
  transition: opacity 0.4s;
}
@media (hover: none) { .cursor-glow { display: none; } }

/* ---------- Utilidades tipográficas ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); position: relative; }
.display {
  font-family: var(--font-display); text-transform: uppercase; font-weight: 400;
  letter-spacing: 0.005em; line-height: 0.92;
}
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: 0; text-transform: none; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mono { font-family: var(--font-mono); }
.label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: 10px;
}
.label::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.muted { color: var(--muted); }

.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 4.5vw, 56px); max-width: 860px; }
.section-head h2 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); }
.section-head p { color: var(--muted); font-size: clamp(0.98rem, 1.2vw, 1.08rem); max-width: 60ch; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 22px;
  border-radius: 999px; background: var(--ink); color: #07080b;
  font-size: 14.5px; font-weight: 500; white-space: nowrap;
  transition: transform 0.25s var(--ease), background-color 0.25s, box-shadow 0.25s;
}
.btn:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 14px 40px -12px rgba(139, 123, 255, 0.6); }
.btn svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.05); box-shadow: none; }
.btn--grad { background: var(--grad); color: #07080b; }
.btn--grad:hover { background: var(--grad); filter: brightness(1.08); }

.link { position: relative; font-size: 14px; color: var(--muted); transition: color 0.25s; }
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: 0;
  transition: transform 0.35s var(--ease);
}
.link:hover, .link.is-active { color: #fff; }
.link:hover::after, .link.is-active::after { transform: scaleX(1); }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02);
  border-radius: 999px; padding: 6px 12px; font-size: 13px; color: var(--ink);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(61, 220, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); } }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: rgba(7, 8, 11, 0.72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-color: var(--line); }
.header__inner { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { height: 32px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__cta .btn { height: 40px; padding: 0 18px; font-size: 14px; }
@media (max-width: 1180px) { .nav { gap: 22px; } }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform 0.35s var(--ease), opacity 0.2s; }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; }
.menu-open .burger span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: rgba(7, 8, 11, 0.97); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 100px var(--gutter) 40px;
  opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s;
}
.mobile-menu a.display { font-size: clamp(2.6rem, 12vw, 4rem); color: var(--ink); }
.mobile-menu a.display:hover { color: var(--accent); }
.mobile-menu .btn { margin-top: 28px; align-self: flex-start; }
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.menu-open { overflow: hidden; }

@media (max-width: 900px) {
  .nav, .nav__cta .btn--ghost { display: none; }
  .burger { display: block; }
}

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; padding: 130px 0 70px; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__orb {
  position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: 0.35; pointer-events: none;
  background: radial-gradient(circle at 30% 30%, var(--accent), transparent 60%), radial-gradient(circle at 70% 70%, var(--accent-2), transparent 55%);
  top: -25vmax; right: -20vmax; animation: float 18s ease-in-out infinite alternate;
}
@keyframes float { to { transform: translate(-8vmax, 10vmax) rotate(40deg); } }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.hero__content { position: relative; z-index: 2; }
.hero__top { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.hero h1 { font-size: clamp(3.4rem, 12.5vw, 11.5rem); }
.hero h1 .serif { font-size: 0.82em; text-transform: none; }
.hero h1 .rotator__word { font-size: 1em; letter-spacing: -0.01em; }
.hero__bottom { margin-top: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.hero__bottom p { color: var(--muted); font-size: clamp(1.02rem, 1.5vw, 1.25rem); max-width: 52ch; }
.hero__bottom p strong { color: var(--ink); font-weight: 500; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.scroll-hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 2; display: grid; justify-items: center; gap: 10px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.25em; color: var(--dim); }
.scroll-mouse { width: 22px; height: 34px; border: 1.5px solid var(--line-strong); border-radius: 12px; position: relative; }
.scroll-mouse::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 6px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: 1; } 70%, 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 760px) {
  .hero__bottom { grid-template-columns: 1fr; }
  .scroll-hint { display: none; }
}

/* ---------- Portada fija (pantalla única) + scroll ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

.hero-pin { position: relative; height: 240vh; height: 240svh; }
.hero-pin .hero { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; padding: 96px 0 56px; }
/* El titular se adapta también a la altura de la pantalla para que todo quepa */
.hero-pin .hero h1 { font-size: clamp(2.6rem, min(8.6vw, 12vh), 8.4rem); }
.hero-pin .hero__top { margin-bottom: clamp(16px, 3vh, 30px); }
.hero-pin .hero__bottom { grid-template-columns: 1fr; gap: 24px; margin-top: clamp(22px, 4vh, 44px); max-width: 640px; }
.hero-pin .hero__bottom p { font-size: clamp(0.95rem, 1.15vw, 1.05rem); }

/* ---------- Logo 3D ---------- */
.logo3d {
  --s: clamp(200px, min(24vw, 36vh), 340px);
  --depth: calc(var(--s) * 0.012);
  position: absolute; z-index: 1; pointer-events: none;
  right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 - 60px));
  top: 50%; width: var(--s); height: var(--s); margin-top: calc(var(--s) / -2 + 10px);
  perspective: 1100px;
  opacity: 0; transform: scale(0.6) rotate(-12deg); transition: opacity 1.2s var(--ease) 0.5s, transform 1.6s cubic-bezier(0.2, 0.9, 0.2, 1.05) 0.5s;
}
.is-loaded .logo3d { opacity: 1; transform: none; }
.logo3d__float { width: 100%; height: 100%; transform-style: preserve-3d; animation: logoFloat 6s ease-in-out infinite; }
@keyframes logoFloat { 50% { transform: translateY(-14px); } }
.logo3d__tilt { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; will-change: transform; }
.logo3d__body { position: absolute; inset: 0; transform-style: preserve-3d; }
.logo3d__body > span { position: absolute; inset: 0; border-radius: 28%; }
.logo3d__layer {
  transform: translateZ(calc(var(--i) * var(--depth) * -1));
  background: linear-gradient(135deg, #5a49d6, #0a8fb4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  filter: brightness(calc(1 - var(--i) * 0.035));
}
.logo3d__front { overflow: hidden; transform: translateZ(0.5px); box-shadow: 0 0 80px -10px rgba(139, 123, 255, 0.55); }
.logo3d__front img, .logo3d__back img { width: 100%; height: 100%; }
.logo3d__back { overflow: hidden; transform: translateZ(calc(var(--depth) * -14)) rotateY(180deg); filter: brightness(0.75); }
.logo3d__shine {
  position: absolute; inset: -40%; pointer-events: none; mix-blend-mode: overlay;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.85) 48%, transparent 60%);
  transform: translateX(var(--shine, -40%));
}
.logo3d__ring {
  position: absolute; left: 50%; top: 50%; border-radius: 50%; transform-style: preserve-3d;
  border: 1px solid rgba(139, 123, 255, 0.35);
}
.logo3d__ring--a { width: 165%; height: 165%; margin: -82.5% 0 0 -82.5%; animation: ringA 14s linear infinite; }
.logo3d__ring--b { width: 210%; height: 210%; margin: -105% 0 0 -105%; border-color: rgba(0, 212, 255, 0.18); border-style: dashed; animation: ringB 22s linear infinite; }
@keyframes ringA { from { transform: rotateX(74deg) rotateZ(0); } to { transform: rotateX(74deg) rotateZ(360deg); } }
@keyframes ringB { from { transform: rotateX(68deg) rotateY(14deg) rotateZ(360deg); } to { transform: rotateX(68deg) rotateY(14deg) rotateZ(0); } }
.logo3d__ring i { position: absolute; top: 50%; left: -5px; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 16px 3px var(--accent-2); }
.logo3d__ring--b i { left: auto; right: -4px; width: 7px; height: 7px; background: var(--accent); box-shadow: 0 0 14px 3px var(--accent); }
.logo3d__cube {
  position: absolute; width: 9%; height: 9%; border-radius: 22%; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 30px -6px rgba(0, 212, 255, 0.6); opacity: 0.9;
}
.logo3d__cube--1 { left: -14%; top: 12%; transform: translateZ(90px) rotate(18deg); animation: cubeA 7s ease-in-out infinite; }
.logo3d__cube--2 { right: -10%; bottom: 6%; width: 6%; height: 6%; transform: translateZ(140px) rotate(-24deg); animation: cubeA 9s ease-in-out -3s infinite; }
.logo3d__cube--3 { right: 2%; top: -12%; width: 4.5%; height: 4.5%; opacity: 0.6; transform: translateZ(-80px) rotate(40deg); animation: cubeA 8s ease-in-out -5s infinite; }
@keyframes cubeA { 50% { translate: 0 -18px; rotate: 25deg; } }
.logo3d__shadow { position: absolute; left: 15%; right: 15%; bottom: -26%; height: 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(139, 123, 255, 0.45), transparent); filter: blur(14px); animation: shadowPulse 6s ease-in-out infinite; }
@keyframes shadowPulse { 50% { transform: scale(0.82); opacity: 0.6; } }

@media (max-width: 1000px) {
  .logo3d { --s: clamp(160px, 44vw, 300px); top: 20%; right: -6%; margin-top: 0; opacity: 0.35; }
  .is-loaded .logo3d { opacity: 0.35; }
}
@media (prefers-reduced-motion: reduce) { .logo3d { opacity: 1; transform: none; } }
.hero__content, .hero__line, .hero-canvas, .hero__orb, .scroll-hint, .hero__counter { will-change: transform, opacity; }
.hero__shade { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0;
  background: radial-gradient(120% 90% at 50% 120%, rgba(139, 123, 255, 0.25), transparent 60%), #05060a; }

.hero__counter { position: absolute; right: var(--gutter); bottom: 30px; z-index: 2; display: flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: 0.2em; color: var(--dim); }
.hero__counter i { display: block; width: 90px; height: 1px; background: var(--line-strong); position: relative; overflow: hidden; }
.hero__counter b { position: absolute; inset: 0; background: var(--grad); transform-origin: left; transform: scaleX(var(--p, 0)); }
.hero__counter span:first-child { color: var(--ink); }
@media (max-width: 760px) { .hero__counter { display: none; } }

.after-hero {
  position: relative; z-index: 5; margin-top: -100vh; margin-top: -100svh;
  background: var(--bg); border-radius: 40px 40px 0 0;
  box-shadow: 0 -50px 120px -20px rgba(0, 0, 0, 0.85), 0 -1px 0 rgba(255, 255, 255, 0.08);
}
.after-hero::before { /* filo luminoso superior */
  content: ""; position: absolute; top: 0; left: 8%; right: 8%; height: 1px; z-index: 1;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent); opacity: 0.8;
}
.after-hero::after { /* halo bajo el filo */
  content: ""; position: absolute; top: -60px; left: 20%; right: 20%; height: 120px; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(139, 123, 255, 0.35), transparent 70%); filter: blur(20px);
}
.after-hero > .marquee { border-top: 0; padding-top: 34px; }
@media (max-width: 760px) { .after-hero { border-radius: 26px 26px 0 0; } }

.cursor-glow { z-index: 6; mix-blend-mode: screen; }

.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none;
  background: var(--grad); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 12px rgba(0, 212, 255, 0.6); }

@media (prefers-reduced-motion: reduce) {
  .hero-pin { height: auto; }
  .hero-pin .hero { position: relative; }
  .after-hero { margin-top: 0; }
}

/* ---------- Titular animado del hero ---------- */
@property --shift { syntax: "<length>"; inherits: true; initial-value: 0px; }

.hero__title { display: grid; justify-items: start; perspective: 900px; }
.hero__line { display: block; white-space: nowrap; }
.hero__line .w { display: inline-block; white-space: nowrap; }
.hero__line .w + .w { margin-left: 0.22em; }

/* Letra: el contenedor recibe el efecto imán, el interior la entrada */
.char { display: inline-block; will-change: transform; transform-origin: 50% 100%;
  color: color-mix(in oklab, var(--ink), var(--accent-2) calc(var(--lift, 0) * 75%)); }
.char__in { display: inline-block; opacity: 0; filter: blur(12px); transform: translateY(0.55em) rotateX(-70deg);
  transition: opacity 0.9s var(--ease), filter 0.9s var(--ease), transform 1.1s var(--ease); transition-delay: var(--cd, 0s); }
.is-loaded .char__in { opacity: 1; filter: blur(0); transform: none; }

/* Palabra que rota */
.hero__line--rot { margin: -0.06em 0 0.02em; line-height: 0.9; }
.rotator { position: relative; display: inline-block; font-size: 1.12em; line-height: 0.9; padding: 0 0.12em 0.08em 0; }
.rotator__word .rc { line-height: 0.9; }
.rotator__word { display: inline-block; white-space: pre; text-transform: none; transform-style: preserve-3d;
  opacity: 0; transition: opacity 0.8s var(--ease) 0.6s; }
.is-loaded .rotator__word { opacity: 1; }
.rotator__word .rc {
  display: inline-block; white-space: pre; transform-origin: 50% 60% -0.3em; backface-visibility: hidden;
  /* Degradado con brillo continuo, alineado entre letras */
  background-image: linear-gradient(90deg, #8b7bff 0%, #00d4ff 25%, #c9c2ff 50%, #00d4ff 75%, #8b7bff 100%);
  background-size: 600px 100%; background-repeat: repeat-x;
  background-position: calc(var(--shift) - var(--off, 0px)) 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: 0.06em; margin-right: -0.06em; /* evita recortes de la cursiva */
}
.rotator { animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { --shift: 600px; } }

.rc.is-out { animation: charOut 0.6s cubic-bezier(0.55, 0, 0.75, 0.2) forwards; animation-delay: var(--cd, 0s); }
.rc.is-in  { animation: charIn 0.9s cubic-bezier(0.2, 0.9, 0.25, 1.15) both; animation-delay: var(--cd, 0s); }
@keyframes charOut {
  to { opacity: 0; transform: translateY(-0.45em) rotateX(85deg) scale(0.9); filter: blur(10px); }
}
@keyframes charIn {
  from { opacity: 0; transform: translateY(0.6em) rotateX(-90deg) scale(0.9); filter: blur(10px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

.rotator__swash { position: absolute; left: 0; right: 0.1em; bottom: -0.04em; width: calc(100% - 0.1em); height: 0.2em; overflow: visible; pointer-events: none; }
.rotator__swash path { fill: none; stroke: url(#swashGrad); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1;
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.55)); }
.rotator.is-drawing .rotator__swash path { animation: swash 1s var(--ease) 0.35s forwards; }
.rotator.is-erasing .rotator__swash path { stroke-dashoffset: 0; animation: swashOut 0.45s ease-in forwards; }
@keyframes swash { to { stroke-dashoffset: 0; } }
@keyframes swashOut { to { stroke-dashoffset: -1; } }

/* Cursor parpadeante tras la palabra */
.rotator::after { content: ""; position: absolute; right: -0.02em; top: 0.12em; bottom: 0.14em; width: 0.045em; border-radius: 2px;
  background: var(--accent-2); box-shadow: 0 0 14px var(--accent-2); animation: blink 1.1s steps(2, start) infinite; opacity: 0.85; }

@media (prefers-reduced-motion: reduce) {
  .char__in { opacity: 1; filter: none; transform: none; }
  .rotator__word { opacity: 1; }
  .rotator__swash path { stroke-dashoffset: 0; }
}

/* Revelado palabra a palabra */
.reveal-word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.reveal-word > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); }
.is-loaded .reveal-word > span { transform: none; }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); padding-block: 26px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12% 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12% 88%, transparent); }
.marquee__tracks { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__tracks { animation-play-state: paused; }
.marquee__track { display: flex; align-items: center; gap: clamp(40px, 6vw, 90px); padding-right: clamp(40px, 6vw, 90px); }
.marquee__item { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.3rem); text-transform: uppercase; color: var(--dim); white-space: nowrap; display: flex; align-items: center; gap: clamp(40px, 6vw, 90px); transition: color 0.3s; }
.marquee__item:hover { color: var(--ink); }
.marquee__item::after { content: "✦"; font-size: 0.5em; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Animación de aparición ---------- */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }

/* ---------- Sobre nosotros ---------- */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about__text h2 { font-size: clamp(2.3rem, 5.2vw, 4.2rem); margin: 16px 0 22px; }
.about__text p { color: var(--muted); font-size: 1rem; margin-bottom: 16px; max-width: 56ch; }
.about__text p strong { color: var(--ink); font-weight: 500; }
.grid-cells { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.cell { background: var(--card); padding: 26px 22px; position: relative; overflow: hidden; transition: background-color 0.4s; min-height: 160px; display: flex; flex-direction: column; justify-content: flex-end; }
.cell::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 2px; background: var(--grad); transform: scaleY(0); transform-origin: top; transition: transform 0.45s var(--ease); }
.cell:hover { background: var(--card-2); }
.cell:hover::before { transform: scaleY(1); }
.cell__num { font-family: var(--font-display); font-size: clamp(2.4rem, 3.8vw, 3.2rem); line-height: 1; }
.cell__num small { font-size: 0.5em; color: var(--accent); }
.cell p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.cell__ghost { position: absolute; right: 12px; top: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--dim); }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }

/* ---------- Servicios: tarjetas apiladas ---------- */
.stack { display: grid; gap: 24px; }
.svc {
  position: sticky; top: 110px;
  border: 1px solid var(--line); background: var(--card); border-radius: var(--radius);
  overflow: hidden; isolation: isolate;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04), 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  transition: border-color 0.4s;
}
.svc:hover { border-color: var(--line-strong); }
.svc__body { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding: clamp(24px, 3vw, 42px); min-height: 400px; }
.svc__info { display: flex; flex-direction: column; gap: 16px; }
.svc__idx { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; color: var(--accent); }
.svc h3 { font-size: clamp(2rem, 4vw, 3.3rem); }
.svc p { color: var(--muted); max-width: 48ch; font-size: 1rem; }
.svc__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.svc__visual {
  border-radius: 16px; border: 1px solid var(--line); position: relative; overflow: hidden; min-height: 260px;
  background: radial-gradient(120% 120% at 100% 0%, rgba(139, 123, 255, 0.18), transparent 55%), radial-gradient(100% 100% at 0% 100%, rgba(0, 212, 255, 0.12), transparent 55%), var(--bg-2);
}
.svc:nth-child(1) { top: 100px; }
.svc:nth-child(2) { top: 120px; }
.svc:nth-child(3) { top: 140px; }
.svc:nth-child(4) { top: 160px; }
@media (max-width: 860px) {
  .svc { position: relative; top: 0 !important; }
  .svc__body { grid-template-columns: 1fr; min-height: 0; }
}

/* Mockups dentro de las tarjetas */
.mock-browser { position: absolute; inset: 28px 28px -20px 28px; border-radius: 12px; border: 1px solid var(--line-strong); background: #0a0b10; overflow: hidden; box-shadow: 0 30px 60px -20px #000; }
.mock-browser__bar { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.mock-browser__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.mock-browser__bar span { margin-left: 10px; flex: 1; height: 14px; border-radius: 7px; background: rgba(255, 255, 255, 0.05); font-family: var(--font-mono); font-size: 9px; color: var(--dim); line-height: 14px; padding-left: 8px; }
.mock-page { padding: 18px; display: grid; gap: 10px; }
.mock-line { height: 10px; border-radius: 5px; background: rgba(255, 255, 255, 0.07); }
.mock-hero { height: 70px; border-radius: 8px; background: var(--grad); opacity: 0.85; }
.mock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-box { height: 54px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.mock-shop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 18px; }
.mock-product { border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); padding: 8px; display: grid; gap: 6px; }
.mock-product b { display: block; height: 58px; border-radius: 6px; background: linear-gradient(140deg, rgba(139, 123, 255, 0.5), rgba(0, 212, 255, 0.3)); }
.mock-product em { font-style: normal; font-family: var(--font-mono); font-size: 10px; color: var(--accent-2); }
.mock-code { position: absolute; inset: 28px; border-radius: 12px; border: 1px solid var(--line-strong); background: #0a0b10; padding: 18px 20px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.9; color: var(--muted); overflow: hidden; }
.mock-code .k { color: var(--accent); } .mock-code .s { color: var(--ok); } .mock-code .f { color: var(--accent-2); }
.code-cursor { display: inline-block; width: 1.5px; height: 1.05em; background: var(--accent); vertical-align: text-bottom; animation: blink 1.1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.mock-chart { position: absolute; inset: 28px; display: grid; grid-template-rows: auto 1fr; gap: 16px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-kpi { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: rgba(255, 255, 255, 0.02); }
.mock-kpi small { font-family: var(--font-mono); font-size: 9px; color: var(--dim); letter-spacing: 0.1em; text-transform: uppercase; }
.mock-kpi strong { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; }
.mock-kpi strong span { font-size: 0.55em; color: var(--ok); font-family: var(--font-mono); margin-left: 4px; }
.mock-bars { display: flex; align-items: flex-end; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.mock-bars i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(to top, rgba(139, 123, 255, 0.25), var(--accent)); transform-origin: bottom; transform: scaleY(0); transition: transform 1.2s var(--ease); }
.is-in .mock-bars i { transform: scaleY(1); }

/* ---------- Proceso (preview) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.step { background: var(--card); padding: 30px 24px 26px; display: grid; gap: 12px; align-content: start; position: relative; transition: background-color 0.4s; }
.step:hover { background: var(--card-2); }
.step__n { font-family: var(--font-display); font-size: 3.6rem; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0.9; }
.step h3 { font-size: 1.08rem; font-weight: 600; }
.step p { color: var(--muted); font-size: 14px; }
.step__time { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--dim); text-transform: uppercase; }
.process-cta { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Proyectos / tipos de web ---------- */
.works { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.work { grid-column: span 6; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); transition: border-color 0.4s, transform 0.5s var(--ease); }
.work:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.work--wide { grid-column: span 7; }
.work--narrow { grid-column: span 5; }
.work__img { aspect-ratio: 16 / 10; position: relative; overflow: hidden; }
.work__img > div { position: absolute; inset: 0; transition: transform 0.8s var(--ease); }
.work:hover .work__img > div { transform: scale(1.04); }
.work__meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; border-top: 1px solid var(--line); }
.work__meta h3 { font-size: 1.05rem; font-weight: 600; }
.work__meta p { color: var(--muted); font-size: 13.5px; }
.work__arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; flex-shrink: 0; transition: background-color 0.3s, transform 0.4s var(--ease); }
.work:hover .work__arrow { background: var(--ink); color: #07080b; transform: rotate(-45deg); }
.work__arrow svg { width: 16px; height: 16px; }

/* Portadas generadas en CSS */
.cover { display: grid; place-items: center; }
.cover--food { background: radial-gradient(circle at 70% 30%, #ff8a5c55, transparent 50%), linear-gradient(160deg, #1a0f0b, #0b0807); }
.cover--studio { background: radial-gradient(circle at 20% 80%, #8b7bff66, transparent 55%), linear-gradient(160deg, #0f0d1a, #07070c); }
.cover--shop { background: radial-gradient(circle at 80% 70%, #00d4ff55, transparent 55%), linear-gradient(160deg, #08141a, #06090c); }
.cover--clinic { background: radial-gradient(circle at 30% 30%, #3ddc9744, transparent 55%), linear-gradient(160deg, #0a1612, #060a09); }
.cover__title { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.9rem, 4.2vw, 3.4rem); line-height: 0.9; text-align: center; color: rgba(255, 255, 255, 0.92); }
.cover__title .serif { display: block; font-size: 0.6em; color: rgba(255, 255, 255, 0.6); }
.cover__frame { position: absolute; inset: 9% 9% auto 9%; height: 22px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(0, 0, 0, 0.3); display: flex; gap: 5px; align-items: center; padding-left: 9px; }
.cover__frame i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); }
@media (max-width: 860px) { .work, .work--wide, .work--narrow { grid-column: span 12; } }

/* ---------- Proyectos: escaparate con mini-webs ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -12px 0 32px; }
.filter { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14px; color: var(--muted); transition: background-color 0.25s, color 0.25s, border-color 0.25s; }
.filter span { font-family: var(--font-mono); font-size: 11px; opacity: 0.7; }
.filter:hover { color: var(--ink); }
.filter.is-active { background: var(--ink); color: #07080b; border-color: var(--ink); }

.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.shot {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden;
  display: flex; flex-direction: column; transition: border-color 0.5s, box-shadow 0.6s;
}
.shot:hover { border-color: color-mix(in oklab, var(--brand) 45%, transparent); box-shadow: 0 40px 90px -40px color-mix(in oklab, var(--brand) 55%, transparent); }
.shot.is-hidden { display: none; }
.shot.is-leaving { opacity: 0 !important; transform: scale(0.96) !important; transition: opacity 0.3s, transform 0.3s !important; }
.shot.is-entering { animation: shotIn 0.6s var(--ease) both; }
@keyframes shotIn { from { opacity: 0; transform: translateY(24px) scale(0.98); } }

.shot__stage {
  position: relative; aspect-ratio: 16 / 11; padding: 7% 8% 0; overflow: hidden; perspective: 1400px;
  background:
    radial-gradient(70% 70% at 50% 105%, color-mix(in oklab, var(--brand) 38%, transparent), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 28px 28px,
    #0c0d12;
}
.shot__browser {
  position: relative; border-radius: 12px 12px 0 0; overflow: hidden; background: #000;
  border: 1px solid var(--line-strong); border-bottom: 0;
  box-shadow: 0 40px 80px -30px #000, 0 0 0 1px rgba(0, 0, 0, 0.4);
  transform-origin: 50% 100%;
  transform: rotateX(calc(var(--rx, 0) * 1deg)) rotateY(calc(var(--ry, 0) * 1deg));
  transition: transform 0.6s var(--ease);
}
.shot__bar { height: 28px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #15161c; border-bottom: 1px solid var(--line); }
.shot__bar i { width: 8px; height: 8px; border-radius: 50%; background: #3a3b44; }
.shot__bar i:nth-child(1) { background: #ff5f57; } .shot__bar i:nth-child(2) { background: #febc2e; } .shot__bar i:nth-child(3) { background: #28c840; }
.shot__url { flex: 1; max-width: 58%; margin: 0 auto; height: 17px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); font-family: var(--font-mono); font-size: 10px; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; overflow: hidden; }
.shot__url::before { content: ""; width: 7px; height: 8px; border-radius: 2px; background: var(--ok); opacity: 0.8; }
.shot__viewport { position: relative; aspect-ratio: 16 / 10; overflow: hidden; container-type: inline-size; }

.shot__phone {
  position: absolute; right: 5%; bottom: -9%; width: 20%; aspect-ratio: 9 / 19.5; z-index: 2;
  border-radius: 18% / 8.5%; background: #0a0a0d; border: 3px solid #2b2c35; padding: 3px;
  box-shadow: 0 30px 60px -15px #000, inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: translate3d(calc(var(--ry, 0) * -2px), calc(var(--rx, 0) * 2px), 0);
  transition: transform 0.6s var(--ease), bottom 0.6s var(--ease);
}
.shot:hover .shot__phone { bottom: -3%; }
.shot__phone::before { content: ""; position: absolute; top: 3.5%; left: 50%; width: 30%; height: 3.2%; translate: -50% 0; border-radius: 999px; background: #000; z-index: 3; }
.shot__screen { position: relative; width: 100%; height: 100%; border-radius: 15% / 7%; overflow: hidden; container-type: inline-size; }

/* Mini-web: todas las medidas en --u para que escale con su contenedor */
.mini {
  --u: 1cqw; --end: 62.5cqw;
  position: absolute; inset: 0 0 auto 0; font-family: var(--font-sans); line-height: 1.4;
  background: var(--m-bg); color: var(--m-fg);
  transition: transform 1.2s var(--ease);
}
.shot:hover .mini { transform: translateY(calc(-100% + var(--end))); transition: transform 6s cubic-bezier(0.45, 0.05, 0.35, 1); }
.shot:hover .shot__screen .mini { transition-duration: 7s; transition-delay: 0.15s; }
@media (hover: none) {
  .shot.is-in .mini { animation: miniScroll 10s ease-in-out 1s infinite alternate; }
}
@keyframes miniScroll { 0%, 12% { transform: none; } 88%, 100% { transform: translateY(calc(-100% + var(--end))); } }

.m-nav { display: flex; align-items: center; justify-content: space-between; gap: calc(2 * var(--u)); padding: calc(2.2 * var(--u)) calc(4 * var(--u)); }
.m-logo { font-family: var(--m-h); font-size: calc(2.3 * var(--u)); font-style: var(--m-h-style, normal); font-weight: var(--m-h-w, 400); text-transform: var(--m-h-tt, none); letter-spacing: var(--m-ls, 0); white-space: nowrap; }
.m-links { display: flex; gap: calc(2.6 * var(--u)); font-size: calc(1.25 * var(--u)); opacity: 0.75; }
.m-links i { font-style: normal; }
.m-burger { display: none; width: calc(3 * var(--u)); height: calc(2 * var(--u)); border-block: calc(0.35 * var(--u)) solid currentColor; position: relative; }
.m-burger::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: calc(0.35 * var(--u)); margin-top: calc(-0.175 * var(--u)); background: currentColor; }
.m-btn { display: inline-block; padding: calc(0.9 * var(--u)) calc(2 * var(--u)); border-radius: var(--m-r, 999px); background: var(--m-acc); color: var(--m-acc-fg); font-size: calc(1.2 * var(--u)); font-weight: 600; white-space: nowrap; }
.m-btn--big { font-size: calc(1.4 * var(--u)); padding: calc(1.2 * var(--u)) calc(2.8 * var(--u)); margin-top: calc(2.6 * var(--u)); }
.m-hero { position: relative; height: calc(44 * var(--u)); background-size: cover; background-position: center; display: flex; align-items: flex-end; margin: 0 calc(var(--m-inset, 0) * var(--u)); border-radius: calc(var(--m-hr, 0) * var(--u)); overflow: hidden; }
.m-hero::before { content: ""; position: absolute; inset: 0; background: var(--m-overlay, linear-gradient(180deg, rgba(0, 0, 0, 0.05) 20%, rgba(0, 0, 0, 0.78))); }
.m-hero__in { position: relative; padding: calc(4 * var(--u)); max-width: 72%; color: var(--m-hero-fg, #fff); }
.m-hero small { display: block; font-size: calc(1.1 * var(--u)); letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.85; margin-bottom: calc(1.2 * var(--u)); }
.m-hero h4 { font-family: var(--m-h); font-size: calc(var(--m-hs, 5.6) * var(--u)); line-height: 0.98; font-weight: var(--m-h-w, 400); font-style: var(--m-h-style, normal); text-transform: var(--m-h-tt, none); letter-spacing: var(--m-hls, 0); }
.m-hero p { font-size: calc(1.4 * var(--u)); opacity: 0.85; margin-top: calc(1.4 * var(--u)); max-width: 85%; line-height: 1.5; }
.m-sec { padding: calc(5 * var(--u)) calc(4 * var(--u)) calc(4 * var(--u)); }
.m-sec__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: calc(2.4 * var(--u)); }
.m-sec h5, .m-band h5 { font-family: var(--m-h); font-size: calc(3 * var(--u)); font-weight: var(--m-h-w, 400); font-style: var(--m-h-style, normal); text-transform: var(--m-h-tt, none); letter-spacing: var(--m-ls, 0); line-height: 1.05; }
.m-sec__head span { font-size: calc(1.15 * var(--u)); opacity: 0.6; text-decoration: underline; text-underline-offset: 3px; }
.m-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(2 * var(--u)); }
.m-card { background: var(--m-card); border-radius: calc(var(--m-cr, 1.2) * var(--u)); overflow: hidden; padding-bottom: calc(1.5 * var(--u)); }
.m-img { aspect-ratio: 4 / 3; background-size: cover; background-position: center; margin-bottom: calc(1.3 * var(--u)); }
.m-card b { display: block; font-size: calc(1.4 * var(--u)); padding: 0 calc(1.4 * var(--u)); font-weight: 600; }
.m-card em { display: block; font-style: normal; font-size: calc(1.2 * var(--u)); color: var(--m-acc-text, var(--m-acc)); padding: calc(0.3 * var(--u)) calc(1.4 * var(--u)) 0; }
.m-band { margin: 0 calc(4 * var(--u)) calc(4 * var(--u)); padding: calc(4 * var(--u)); border-radius: calc(var(--m-cr, 1.6) * var(--u)); background: var(--m-acc); color: var(--m-acc-fg); display: flex; justify-content: space-between; align-items: center; gap: calc(2 * var(--u)); }
.m-band .m-btn { background: var(--m-acc-fg); color: var(--m-acc); }
.m-foot { display: flex; justify-content: space-between; align-items: center; gap: calc(2 * var(--u)); padding: calc(3 * var(--u)) calc(4 * var(--u)); border-top: 1px solid rgba(127, 127, 127, 0.22); font-size: calc(1.1 * var(--u)); }
.m-foot .m-logo { font-size: calc(1.8 * var(--u)); }
.m-foot span { opacity: 0.6; }

/* Versión móvil (dentro del teléfono) */
.mini--m { --u: 2.5cqw; --end: 216cqw; }
.mini--m .m-links, .mini--m .m-nav .m-btn { display: none; }
.mini--m .m-burger { display: block; }
.mini--m .m-nav { padding: calc(5.5 * var(--u)) calc(3 * var(--u)) calc(2.5 * var(--u)); }
.mini--m .m-hero { height: 150cqw; margin: 0; border-radius: 0; }
.mini--m .m-hero__in { max-width: 100%; padding: calc(3 * var(--u)); }
.mini--m .m-hero h4 { font-size: calc(var(--m-hs, 5.6) * var(--u) * 0.9); }
.mini--m .m-hero p { max-width: 100%; }
.mini--m .m-sec { padding: calc(4 * var(--u)) calc(3 * var(--u)); }
.mini--m .m-grid { grid-template-columns: 1fr; }
.mini--m .m-band { flex-direction: column; align-items: flex-start; margin: 0 calc(3 * var(--u)) calc(3 * var(--u)); padding: calc(3 * var(--u)); }

/* Temas de cada mini-web */
.mini--brasa { --m-bg: #17100c; --m-fg: #f3e6d6; --m-acc: #d98b4a; --m-acc-fg: #17100c; --m-card: #221812; --m-h: "Instrument Serif", Georgia, serif; --m-h-style: italic; --m-hs: 6.4; }
.mini--nomada { --m-bg: #f2efe9; --m-fg: #141414; --m-acc: #141414; --m-acc-fg: #f2efe9; --m-acc-text: #6b6559; --m-card: #e8e3da; --m-h: var(--font-sans); --m-h-w: 600; --m-h-tt: uppercase; --m-ls: 0.2em; --m-hls: 0.06em; --m-hs: 4.2; --m-r: 0px; --m-cr: 0; --m-inset: 4; --m-hero-fg: #141414; --m-overlay: linear-gradient(90deg, rgba(242, 239, 233, 0.96) 0 32%, rgba(242, 239, 233, 0) 72%); }
.mini--nomada.mini--m { --m-overlay: linear-gradient(180deg, rgba(242, 239, 233, 0) 30%, rgba(242, 239, 233, 0.96) 75%); }
.mini--sonrie { --m-bg: #ffffff; --m-fg: #0f2a33; --m-acc: #12b3a5; --m-acc-fg: #ffffff; --m-acc-text: #0d8f84; --m-card: #eef7f6; --m-h: var(--font-sans); --m-h-w: 700; --m-hls: -0.03em; --m-hs: 5; --m-inset: 4; --m-hr: 2; --m-cr: 1.6; --m-overlay: linear-gradient(90deg, rgba(8, 40, 48, 0.88), rgba(8, 40, 48, 0.05) 75%); }
.mini--sonrie.mini--m { --m-overlay: linear-gradient(180deg, rgba(8, 40, 48, 0.1), rgba(8, 40, 48, 0.9)); }
.mini--iron { --m-bg: #0a0a0a; --m-fg: #ffffff; --m-acc: #c6ff2e; --m-acc-fg: #0a0a0a; --m-card: #161616; --m-h: "Anton", Impact, sans-serif; --m-h-tt: uppercase; --m-ls: 0.02em; --m-hs: 7.4; --m-r: 4px; --m-cr: 0.6; }
.mini--horizonte { --m-bg: #0e1726; --m-fg: #f4efe6; --m-acc: #c9a45c; --m-acc-fg: #0e1726; --m-card: #15213a; --m-h: "Instrument Serif", Georgia, serif; --m-hs: 6; --m-r: 2px; --m-cr: 0.4; --m-overlay: linear-gradient(180deg, rgba(14, 23, 38, 0.15), rgba(14, 23, 38, 0.85)); }
.mini--lumen { --m-bg: #0c0c0c; --m-fg: #ededed; --m-acc: #ededed; --m-acc-fg: #0c0c0c; --m-card: transparent; --m-h: "Instrument Serif", Georgia, serif; --m-h-style: italic; --m-hs: 7; --m-cr: 0; }
.mini--lumen .m-grid { grid-template-columns: 1.4fr 1fr; grid-auto-flow: dense; }
.mini--lumen .m-card:first-child { grid-row: span 2; }
.mini--lumen .m-card:first-child .m-img { aspect-ratio: auto; height: calc(100% - 5 * var(--u)); }
.mini--lumen .m-img { aspect-ratio: 3 / 2; }
.mini--lumen .m-card em { color: rgba(237, 237, 237, 0.5); }
.mini--lumen.mini--m .m-card:first-child .m-img { aspect-ratio: 4 / 5; height: auto; }

/* Llamada final de proyectos */
.showcase-cta { margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3.4vw, 40px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; background: linear-gradient(120deg, rgba(139, 123, 255, 0.10), rgba(0, 212, 255, 0.05) 60%, transparent), var(--card); }
.showcase-cta h3 { font-size: clamp(2rem, 4vw, 3.2rem); }
.showcase-cta p { color: var(--muted); max-width: 60ch; margin-top: 8px; font-size: 0.98rem; }

.shot__meta { padding: 22px 26px 26px; display: grid; gap: 14px; border-top: 1px solid var(--line); }
.shot__top { display: flex; justify-content: space-between; align-items: center; }
.shot__sector { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.shot__sector::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 12px var(--brand); }
.shot__badge { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; }
.shot__title { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; }
.shot__title h3 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); }
.shot__title p { color: var(--muted); font-size: 14.5px; margin-top: 6px; max-width: 46ch; }
.shot:hover .work__arrow { background: var(--ink); color: #07080b; transform: rotate(-45deg); }
.shot__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.shot__tags span { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); color: var(--muted); }

@media (max-width: 900px) { .showcase { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .mini { transition: none !important; animation: none !important; } }

/* ---------- Planes ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 30px 26px; display: flex; flex-direction: column; gap: 20px; position: relative; overflow: hidden; transition: border-color 0.4s, transform 0.5s var(--ease); }
.plan:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.plan--featured { border-color: rgba(139, 123, 255, 0.5); background: linear-gradient(160deg, rgba(139, 123, 255, 0.12), rgba(0, 212, 255, 0.04) 50%), var(--card); }
.plan--featured::before { content: ""; position: absolute; width: 300px; height: 300px; top: -150px; right: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(139, 123, 255, 0.35), transparent 65%); filter: blur(20px); pointer-events: none; }
.plan__badge { position: absolute; top: 22px; right: 22px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--grad); color: #07080b; font-weight: 500; }
.plan__name { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.plan__price { font-family: var(--font-display); font-size: 3rem; line-height: 1; }
.plan__price small { font-family: var(--font-sans); font-size: 14px; color: var(--muted); margin-left: 6px; }
.plan__desc { color: var(--muted); font-size: 14px; }
.plan ul { display: grid; gap: 11px; font-size: 14px; }
.plan li { display: flex; gap: 12px; align-items: flex-start; }
.plan li::before { content: ""; flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: rgba(139, 123, 255, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b7bff' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat; }
.plan .btn { margin-top: auto; justify-content: center; }
.plans-note { margin-top: 24px; color: var(--dim); font-size: 13px; text-align: center; }
@media (max-width: 980px) { .plans { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* ---------- Ventajas ---------- */
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.perk { border: 1px solid var(--line); border-radius: 20px; padding: 28px 24px; background: var(--card); display: grid; gap: 12px; align-content: start; transition: border-color 0.4s; }
.perk:hover { border-color: var(--line-strong); }
.perk__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(139, 123, 255, 0.1); border: 1px solid rgba(139, 123, 255, 0.25); color: var(--accent); }
.perk__icon svg { width: 22px; height: 22px; }
.perk h3 { font-size: 1.08rem; font-weight: 600; }
.perk p { color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .perks { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .perks { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px, 6vw, 90px); }
.faq h2 { font-size: clamp(2.3rem, 4.8vw, 4rem); margin-top: 16px; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 1.05rem; font-weight: 500; transition: color 0.3s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: #fff; }
.faq summary i { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; transition: transform 0.4s var(--ease), background-color 0.3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.4s var(--ease); }
.faq details[open] summary i { background: var(--ink); }
.faq details[open] summary i::before, .faq details[open] summary i::after { background: #07080b; }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq details p { color: var(--muted); padding: 0 46px 22px 0; max-width: 64ch; font-size: 0.95rem; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } }

/* ---------- CTA grande ---------- */
.big-cta { border: 1px solid var(--line); border-radius: 32px; padding: clamp(40px, 7vw, 100px) clamp(24px, 5vw, 80px); position: relative; overflow: hidden; text-align: center; background: linear-gradient(140deg, rgba(139, 123, 255, 0.10), rgba(255, 255, 255, 0.01) 45%, rgba(0, 212, 255, 0.08)); }
.big-cta__glow { position: absolute; width: 520px; height: 520px; left: 50%; top: 50%; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(139, 123, 255, 0.28), transparent 65%); filter: blur(30px); pointer-events: none; }
.big-cta h2 { font-size: clamp(2.5rem, 7vw, 6rem); position: relative; }
.big-cta p { color: var(--muted); max-width: 54ch; margin: 20px auto 30px; position: relative; font-size: 1rem; }
.big-cta .hero__actions { justify-content: center; position: relative; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 6vw, 90px); }
.contact h2 { font-size: clamp(2.3rem, 4.8vw, 4rem); margin: 16px 0 20px; }
.contact__info { display: grid; gap: 26px; align-content: start; }
.contact__info > p { color: var(--muted); max-width: 46ch; }
.contact__list { display: grid; gap: 18px; margin-top: 10px; }
.contact__list a, .contact__list div { display: grid; gap: 2px; }
.contact__list small { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); }
.contact__list span { font-size: 1.1rem; }
.contact__list a:hover span { color: var(--accent); }
.form { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: clamp(22px, 3.4vw, 40px); display: grid; gap: 24px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; padding: 10px 0; border-bottom: 1px solid var(--line-strong); outline: none; font-size: 16px; transition: border-color 0.25s; border-radius: 0; }
.field select { appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d8d99' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right center / 16px no-repeat; cursor: pointer; }
.field select option { background: var(--card); }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: #4f4f58; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills label { font-family: var(--font-sans); letter-spacing: 0; text-transform: none; font-size: 13.5px; color: var(--ink); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); cursor: pointer; transition: background-color 0.25s, border-color 0.25s, color 0.25s; }
.pills input:checked + label { background: var(--ink); color: #07080b; border-color: var(--ink); }
.pills input:focus-visible + label { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form__foot small { color: var(--dim); font-size: 12.5px; max-width: 34ch; }
.form__ok { display: none; padding: 14px 16px; border-radius: 12px; background: rgba(61, 220, 151, 0.08); border: 1px solid rgba(61, 220, 151, 0.3); color: var(--ok); font-size: 14px; }
.form.is-sent .form__ok { display: block; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 70px 0 34px; margin-top: 40px; position: relative; overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer__grid h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); font-weight: 400; margin-bottom: 18px; }
.footer__grid ul { display: grid; gap: 10px; }
.footer__about p { color: var(--muted); font-size: 14px; max-width: 34ch; margin-top: 18px; }
.footer__mega { font-family: var(--font-display); font-size: clamp(4rem, 20vw, 17rem); line-height: 0.8; text-transform: uppercase; text-align: center; margin-top: 60px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0)); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; letter-spacing: -0.01em; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__about { grid-column: 1 / -1; } }

/* ==========================================================
   Página "Cómo trabajamos"
   ========================================================== */
.page-hero { padding: 170px 0 60px; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.8rem, 8vw, 7rem); margin-top: 22px; }
.page-hero p { color: var(--muted); font-size: clamp(1.02rem, 1.5vw, 1.25rem); max-width: 58ch; margin-top: 28px; }
.breadcrumb { font-family: var(--font-mono); font-size: 12px; color: var(--dim); display: flex; gap: 10px; }
.breadcrumb a:hover { color: var(--ink); }

/* Reproductor del vídeo explicativo */
.player { border: 1px solid var(--line-strong); border-radius: 28px; background: var(--card); overflow: hidden; box-shadow: 0 60px 120px -40px rgba(139, 123, 255, 0.35), 0 30px 80px -30px #000; }
.player__stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: radial-gradient(90% 90% at 80% 10%, rgba(139, 123, 255, 0.20), transparent 60%), radial-gradient(80% 80% at 10% 100%, rgba(0, 212, 255, 0.14), transparent 60%), #07080b; cursor: pointer; container-type: inline-size; }
.player__stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px); background-size: 4cqw 4cqw; mask-image: radial-gradient(circle at center, #000 30%, transparent 80%); }
.scene { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity 0.6s, visibility 0.6s; padding: 6cqw; }
.scene.is-active { opacity: 1; visibility: visible; }
.scene__title { font-family: var(--font-display); text-transform: uppercase; font-size: 6.4cqw; line-height: 0.92; text-align: center; }
.scene__kicker { font-family: var(--font-mono); font-size: 1.25cqw; letter-spacing: 0.25em; text-transform: uppercase; color: var(--accent); text-align: center; margin-bottom: 1.6cqw; }
.scene__split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 5cqw; align-items: center; width: 100%; }
.scene__split .scene__title { text-align: left; font-size: 5.4cqw; }
.scene__split .scene__kicker { text-align: left; }
.scene__split p { color: var(--muted); font-size: 1.6cqw; margin-top: 1.6cqw; line-height: 1.5; }

/* Animaciones de escenas (solo cuando la escena está activa) */
.anim { opacity: 0; }
.scene.is-active .anim { animation: sceneIn 0.9s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 1s); }
@keyframes sceneIn { from { opacity: 0; transform: translateY(3cqw); } to { opacity: 1; transform: none; } }
.scene.is-active .anim--pop { animation-name: scenePop; }
@keyframes scenePop { from { opacity: 0; transform: scale(0.6) rotate(-8deg); } to { opacity: 1; transform: none; } }
.scene.is-active .anim--grow { animation-name: sceneGrow; transform-origin: bottom; }
@keyframes sceneGrow { from { opacity: 0; transform: scaleY(0); } to { opacity: 1; transform: none; } }
.scene.is-active .anim--w { animation-name: sceneWidth; transform-origin: left; }
@keyframes sceneWidth { from { opacity: 1; transform: scaleX(0); } to { opacity: 1; transform: none; } }
.player.is-paused .scene .anim { animation-play-state: paused; }

.sc-logo { width: 14cqw; height: 14cqw; margin: 0 auto 3cqw; filter: drop-shadow(0 2cqw 5cqw rgba(139, 123, 255, 0.5)); }

.sc-chat { display: grid; gap: 1.4cqw; }
.bubble { max-width: 80%; padding: 1.4cqw 1.8cqw; border-radius: 1.8cqw; font-size: 1.55cqw; line-height: 1.4; border: 1px solid var(--line); }
.bubble--client { background: rgba(255, 255, 255, 0.05); border-bottom-left-radius: 0.4cqw; }
.bubble--us { justify-self: end; background: linear-gradient(140deg, rgba(139, 123, 255, 0.3), rgba(0, 212, 255, 0.15)); border-color: rgba(139, 123, 255, 0.4); border-bottom-right-radius: 0.4cqw; }
.bubble small { display: block; font-family: var(--font-mono); font-size: 1cqw; color: var(--dim); margin-bottom: 0.4cqw; letter-spacing: 0.1em; }

.sc-wire { border: 1px solid var(--line-strong); border-radius: 1.4cqw; background: #0a0b10; padding: 1.8cqw; display: grid; gap: 1.2cqw; }
.sc-wire .w-nav { display: flex; justify-content: space-between; }
.sc-wire .w-nav b { width: 8cqw; height: 1.4cqw; border-radius: 0.7cqw; background: var(--grad); }
.sc-wire .w-nav span { display: flex; gap: 1cqw; }
.sc-wire .w-nav span i { width: 4cqw; height: 1.4cqw; border-radius: 0.7cqw; background: rgba(255, 255, 255, 0.08); }
.sc-wire .w-hero { height: 9cqw; border-radius: 1cqw; background: linear-gradient(120deg, rgba(139, 123, 255, 0.45), rgba(0, 212, 255, 0.25)); }
.sc-wire .w-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1cqw; }
.sc-wire .w-row i { height: 6cqw; border-radius: 1cqw; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.swatches { display: flex; gap: 1cqw; margin-top: 2cqw; }
.swatches i { width: 3.4cqw; height: 3.4cqw; border-radius: 50%; border: 1px solid var(--line-strong); }

.sc-code { border: 1px solid var(--line-strong); border-radius: 1.4cqw; background: #0a0b10; padding: 2cqw 2.4cqw; font-family: var(--font-mono); font-size: 1.45cqw; line-height: 1.9; color: var(--muted); }
.sc-code .k { color: var(--accent); } .sc-code .s { color: var(--ok); } .sc-code .f { color: var(--accent-2); }
.sc-code div { white-space: nowrap; overflow: hidden; }

.sc-devices { display: flex; align-items: flex-end; gap: 2cqw; justify-content: center; }
.dev { border: 1px solid var(--line-strong); background: #0a0b10; border-radius: 1.2cqw; padding: 1cqw; display: grid; gap: 0.8cqw; align-content: start; }
.dev--desk { width: 30cqw; height: 19cqw; }
.dev--tab { width: 13cqw; height: 17cqw; }
.dev--phone { width: 7.5cqw; height: 14cqw; border-radius: 1.4cqw; }
.dev b { height: 28%; border-radius: 0.6cqw; background: var(--grad); opacity: 0.8; }
.dev i { height: 1cqw; border-radius: 0.5cqw; background: rgba(255, 255, 255, 0.07); }
.checks { display: grid; gap: 1.2cqw; margin-top: 2.2cqw; }
.checks div { display: flex; gap: 1.2cqw; align-items: center; font-size: 1.6cqw; }
.checks div::before { content: "✓"; width: 2.4cqw; height: 2.4cqw; border-radius: 50%; display: grid; place-items: center; font-size: 1.3cqw; background: rgba(61, 220, 151, 0.15); color: var(--ok); flex-shrink: 0; }

.sc-launch { display: grid; gap: 2cqw; }
.status { display: inline-flex; align-items: center; gap: 1cqw; padding: 1cqw 1.8cqw; border-radius: 999px; border: 1px solid rgba(61, 220, 151, 0.4); background: rgba(61, 220, 151, 0.08); color: var(--ok); font-family: var(--font-mono); font-size: 1.4cqw; justify-self: start; }
.status::before { content: ""; width: 1cqw; height: 1cqw; border-radius: 50%; background: var(--ok); box-shadow: 0 0 1.4cqw var(--ok); }
.sc-bars { display: flex; align-items: flex-end; gap: 1cqw; height: 18cqw; border: 1px solid var(--line); border-radius: 1.4cqw; padding: 1.6cqw; background: rgba(255, 255, 255, 0.02); }
.sc-bars i { flex: 1; border-radius: 0.5cqw 0.5cqw 0 0; background: linear-gradient(to top, rgba(139, 123, 255, 0.2), var(--accent-2)); }

.player__subs { position: absolute; left: 50%; bottom: 4.4cqw; translate: -50% 0; max-width: 80%; text-align: center; padding: 0.8cqw 1.6cqw; border-radius: 0.8cqw; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(6px); font-size: 1.5cqw; color: #fff; transition: opacity 0.3s; pointer-events: none; }
.player__subs:empty { opacity: 0; }

.player__big-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(7, 8, 11, 0.45); transition: opacity 0.4s, visibility 0.4s; z-index: 3; }
.player__big-play span { width: 11cqw; height: 11cqw; min-width: 64px; min-height: 64px; border-radius: 50%; background: var(--ink); color: #07080b; display: grid; place-items: center; box-shadow: 0 0 0 1.4cqw rgba(255, 255, 255, 0.08), 0 20px 60px -10px rgba(139, 123, 255, 0.7); transition: transform 0.35s var(--ease); }
.player__big-play span svg { width: 34%; height: 34%; margin-left: 6%; }
.player__big-play:hover span { transform: scale(1.06); }
.player.is-started .player__big-play { opacity: 0; visibility: hidden; }

.player__controls { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--line); }
.player__btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; flex-shrink: 0; transition: background-color 0.25s; }
.player__btn:hover { background: rgba(255, 255, 255, 0.06); }
.player__btn svg { width: 16px; height: 16px; }
.player__time { font-family: var(--font-mono); font-size: 12px; color: var(--muted); white-space: nowrap; min-width: 86px; }
.player__bar { flex: 1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); position: relative; cursor: pointer; }
.player__bar::before { content: ""; position: absolute; inset: -10px 0; }
.player__fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 3px; background: var(--grad); }
.player__marks { position: absolute; inset: 0; pointer-events: none; }
.player__marks i { position: absolute; top: -2px; width: 2px; height: 10px; background: var(--bg); }
.chapters { display: flex; gap: 8px; padding: 14px 20px 18px; overflow-x: auto; scrollbar-width: none; }
.chapters::-webkit-scrollbar { display: none; }
.chapter { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--muted); transition: all 0.25s; }
.chapter span { font-family: var(--font-mono); font-size: 11px; color: var(--dim); }
.chapter:hover { color: var(--ink); border-color: var(--line-strong); }
.chapter.is-active { color: #07080b; background: var(--ink); border-color: var(--ink); }
.chapter.is-active span { color: #07080b; }
@media (max-width: 560px) { .player__time { min-width: 0; font-size: 11px; } .player__controls { gap: 10px; padding: 12px 14px; } .player { border-radius: 18px; } }

/* Línea de tiempo del proceso */
.timeline { position: relative; display: grid; gap: 0; }
.timeline::before { content: ""; position: absolute; left: 31px; top: 10px; bottom: 10px; width: 1px; background: var(--line-strong); }
.timeline__progress { position: absolute; left: 31px; top: 10px; width: 1px; height: 0; background: var(--grad); box-shadow: 0 0 12px var(--accent); }
.tl { display: grid; grid-template-columns: 64px 1fr; gap: clamp(20px, 3vw, 40px); padding-bottom: clamp(40px, 6vw, 70px); position: relative; }
.tl__dot { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg); display: grid; place-items: center; font-family: var(--font-display); font-size: 1.5rem; position: relative; z-index: 1; transition: border-color 0.5s, box-shadow 0.5s, color 0.5s; color: var(--dim); }
.tl.is-in .tl__dot { border-color: var(--accent); color: var(--ink); box-shadow: 0 0 0 6px rgba(139, 123, 255, 0.1), 0 0 30px rgba(139, 123, 255, 0.35); }
.tl__card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: clamp(24px, 3.4vw, 40px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 34px; transition: border-color 0.4s; }
.tl__card:hover { border-color: var(--line-strong); }
.tl__card h3 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin: 10px 0 14px; }
.tl__card > div > p { color: var(--muted); }
.tl__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tl__box { border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; background: var(--bg-2); align-self: start; }
.tl__box h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); font-weight: 400; margin-bottom: 12px; }
.tl__box ul { display: grid; gap: 9px; font-size: 14.5px; }
.tl__box li { display: flex; gap: 10px; }
.tl__box li::before { content: "→"; color: var(--dim); }
@media (max-width: 860px) {
  .tl__card { grid-template-columns: 1fr; }
  .tl { grid-template-columns: 44px 1fr; }
  .tl__dot { width: 44px; height: 44px; font-size: 1.1rem; }
  .timeline::before, .timeline__progress { left: 21px; }
}

/* Lo que necesitamos / tú vs nosotros */
.split2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.duo { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 44px); background: var(--card); }
.duo--us { background: linear-gradient(160deg, rgba(139, 123, 255, 0.10), transparent 60%), var(--card); border-color: rgba(139, 123, 255, 0.3); }
.duo h3 { font-size: clamp(2rem, 4vw, 3rem); margin: 14px 0 22px; }
.duo ul { display: grid; gap: 14px; }
.duo li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; color: var(--muted); }
.duo li strong { color: var(--ink); font-weight: 500; display: block; }
.duo li::before { content: attr(data-n); font-family: var(--font-mono); font-size: 12px; color: var(--accent); padding-top: 3px; }
@media (max-width: 860px) { .split2 { grid-template-columns: 1fr; } }

/* Herramientas */
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.tool { background: var(--card); padding: 26px 22px; display: grid; gap: 8px; transition: background-color 0.4s; }
.tool:hover { background: var(--card-2); }
.tool b { font-weight: 600; }
.tool span { color: var(--muted); font-size: 14px; }
.tool small { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 900px) { .tools { grid-template-columns: 1fr 1fr; } }

/* ==========================================================
   Páginas legales
   ========================================================== */
.legal-hero { padding: 150px 0 40px; }
.legal-hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); margin-top: 18px; }
.legal-hero p { color: var(--muted); margin-top: 16px; font-size: 0.95rem; }
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; padding-bottom: 100px; }
.legal-toc { position: sticky; top: 100px; display: grid; gap: 4px; border-left: 1px solid var(--line); padding-left: 18px; }
.legal-toc small { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.legal-toc a { color: var(--muted); font-size: 14px; padding: 4px 0; transition: color 0.25s; }
.legal-toc a:hover { color: var(--ink); }
.legal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.legal-tabs a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 13.5px; color: var(--muted); transition: all 0.25s; }
.legal-tabs a:hover { color: var(--ink); }
.legal-tabs a.is-active { background: var(--ink); color: #07080b; border-color: var(--ink); }
.legal { max-width: 760px; color: var(--muted); font-size: 15.5px; line-height: 1.75; }
.legal section { padding-bottom: 34px; margin-bottom: 34px; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.legal section:last-child { border-bottom: 0; }
.legal h2 { font-family: var(--font-sans); font-size: 1.3rem; font-weight: 600; color: var(--ink); margin-bottom: 14px; letter-spacing: -0.01em; }
.legal h3 { font-size: 1.02rem; font-weight: 600; color: var(--ink); margin: 20px 0 8px; }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: none; display: grid; gap: 8px; margin: 12px 0; }
.legal ul li { padding-left: 20px; position: relative; }
.legal ul li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 8px; height: 1px; background: var(--accent); }
.legal a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(0, 212, 255, 0.35); }
.legal strong { color: var(--ink); font-weight: 500; }
.legal-data { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); margin: 16px 0; }
.legal-data dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); padding-top: 3px; }
.legal-data dd { color: var(--ink); }
.legal-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.legal-table th, .legal-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table th { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); font-weight: 400; }
.legal-table td:first-child { color: var(--ink); white-space: nowrap; }
.table-scroll { overflow-x: auto; }
.legal-note { padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(139, 123, 255, 0.3); background: rgba(139, 123, 255, 0.06); color: var(--ink); font-size: 14.5px; margin: 16px 0; }
/* Datos pendientes de rellenar: resaltados para que no se olviden */
.fill { background: rgba(255, 196, 0, 0.14); color: #ffd54a; border: 1px dashed rgba(255, 196, 0, 0.5); border-radius: 6px; padding: 0 6px; font-style: normal; white-space: nowrap; }
@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { display: none; }
  .legal-data { grid-template-columns: 1fr; gap: 2px; }
  .legal-data dd { margin-bottom: 10px; }
}

/* ---------- Selector de idioma ES / EN ---------- */
[hidden] { display: none !important; }
.lang-switch {
  position: relative; display: inline-flex; align-items: center; padding: 3px; gap: 0;
  border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; flex-shrink: 0;
}
.lang-switch button { position: relative; z-index: 1; width: 38px; height: 32px; border-radius: 999px; color: var(--muted); font-weight: 500; transition: color 0.3s; }
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"] { color: #07080b; }
.lang-switch__pill { position: absolute; top: 3px; left: 3px; width: 38px; height: 32px; border-radius: 999px; background: var(--grad); box-shadow: 0 4px 18px -4px rgba(139, 123, 255, 0.7); transition: transform 0.35s var(--ease); }
.lang-switch.is-en .lang-switch__pill { transform: translateX(38px); }
.lang-switch.is-en button[data-l="en"], .lang-switch:not(.is-en) button[data-l="es"] { color: #07080b; }
.lang-switch.is-en button[data-l="es"] { color: var(--muted); }
.lang-switch--menu { align-self: flex-start; margin-top: 18px; }
.nav__cta .lang-switch { margin-right: 4px; }
@media (max-width: 560px) { .nav__cta > .btn { display: none; } }

/* Casilla de consentimiento del formulario */
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.consent input { appearance: none; flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px; border: 1px solid var(--line-strong); display: grid; place-items: center; cursor: pointer; transition: background-color 0.2s, border-color 0.2s; }
.consent input:checked { background: var(--grad); border-color: transparent; }
.consent input:checked::after { content: "✓"; color: #07080b; font-size: 13px; font-weight: 700; }
.consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

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