/* =====================================================================
   DIGITAL SOLUTIONS CODE — Hoja de estilos principal
   ---------------------------------------------------------------------
   ✏️  CÓMO EDITAR:
   - Colores, tipografías y radios: cambia las variables de :root (abajo).
   - Todo lo demás se adapta solo.
   ===================================================================== */

/* ---------- Tipografías (alojadas en tu servidor: sin enviar datos a Google, cumple RGPD) ---------- */
@font-face {
  font-family: "Outfit";
  src: url("../assets/fonts/outfit-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* ---------- 🎨 VARIABLES EDITABLES ---------- */
:root {
  /* Paleta de marca (la misma de digitalsolutionscode.es) */
  --primary: #3a6ea5;        /* Azul corporativo */
  --secondary: #357df9;      /* Azul eléctrico */
  --secondary-strong: #2563eb; /* Azul eléctrico para fondos con texto blanco (contraste AA 5.2:1) */
  --accent: #7fb2ff;         /* Azul claro para brillos */
  --cyan: #4fd1ff;           /* Toque futurista */
  --dark: #1d1e20;           /* Negro de marca */

  /* Fondos */
  --bg: #06080d;
  --bg-2: #0b1019;
  --bg-3: #111827;

  /* Texto */
  --text: #eef3ff;
  --text-soft: #b7c3d9;
  --muted: #8593ab;

  /* Glassmorphism */
  --glass: rgba(255, 255, 255, 0.055);
  --glass-strong: rgba(255, 255, 255, 0.09);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-blur: 18px;

  /* Degradados */
  --grad: linear-gradient(120deg, var(--secondary) 0%, var(--cyan) 50%, var(--primary) 100%);
  --grad-soft: linear-gradient(135deg, rgba(53, 125, 249, 0.25), rgba(58, 110, 165, 0.05));

  /* Tipografía */
  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Formas y espacios */
  --radius: 22px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(80px, 11vw, 150px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --glow: 0 0 40px rgba(53, 125, 249, 0.45);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1.0625rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul { list-style: none; }
::selection { background: var(--secondary); color: #fff; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--secondary-strong); color: #fff; padding: 10px 18px; border-radius: 10px;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }

/* ---------- Fondo global futurista ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.bg-fx .grid {
  position: absolute; inset: -50%;
  background-image:
    linear-gradient(rgba(127, 178, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 178, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 65%);
  animation: gridMove 30s linear infinite;
}
@keyframes gridMove { to { transform: translate3d(64px, 64px, 0); } }

.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; will-change: transform; }
.orb-1 { width: 520px; height: 520px; background: var(--secondary); top: -160px; left: -120px; animation: float1 18s var(--ease) infinite alternate; }
.orb-2 { width: 460px; height: 460px; background: var(--primary); top: 40%; right: -160px; animation: float2 22s var(--ease) infinite alternate; }
.orb-3 { width: 380px; height: 380px; background: #1b3f86; bottom: -120px; left: 30%; animation: float1 26s var(--ease) infinite alternate-reverse; opacity: .45; }
@keyframes float1 { to { transform: translate(120px, 90px) scale(1.15); } }
@keyframes float2 { to { transform: translate(-140px, -60px) scale(.9); } }

.noise {
  position: absolute; inset: 0; opacity: .06; mix-blend-mode: overlay;
  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'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Brillo que sigue al ratón */
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 520px; height: 520px; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, rgba(53, 125, 249, 0.16), transparent 60%);
  transform: translate(-50%, -50%); transition: opacity .3s; opacity: 0;
}
body.has-pointer .cursor-glow { opacity: 1; }

/* Barra de progreso de scroll */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 200;
  background: var(--grad); transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 999; background: var(--bg);
  display: grid; place-items: center; transition: opacity .6s var(--ease), visibility .6s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader img { width: 84px; animation: pulse 1.2s var(--ease) infinite; }
.preloader .bar { width: 160px; height: 2px; margin-top: 22px; background: rgba(255,255,255,.1); border-radius: 2px; overflow: hidden; }
.preloader .bar::after { content: ""; display: block; height: 100%; width: 40%; background: var(--grad); animation: load 1s var(--ease) infinite; }
@keyframes pulse { 50% { transform: scale(.92); opacity: .7; } }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* ---------- Glass base ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), var(--shadow);
}

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.08; letter-spacing: -0.025em; font-weight: 600; }
.h-xl { font-size: clamp(2.5rem, 5.4vw, 4.9rem); font-weight: 600; letter-spacing: -0.04em; }
.h-lg { font-size: clamp(2.1rem, 4.8vw, 4rem); }
.h-md { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--text-soft); max-width: 62ch; }
.grad-text {
  background: var(--grad); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; text-transform: uppercase; letter-spacing: .18em; font-weight: 600;
  color: var(--accent); padding: 8px 16px; border-radius: var(--radius-pill);
  background: rgba(53,125,249,.1); border: 1px solid rgba(53,125,249,.3);
  margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: blink 1.8s infinite; }
@keyframes blink { 50% { opacity: .3; } }

.section-head { max-width: 780px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.section-head .lead { margin-top: 18px; }

/* ---------- Botones ---------- */
.btn {
  --bx: 0px; --by: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border-radius: var(--radius-pill); font-weight: 600; font-size: 1rem;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s;
  transform: translate(var(--bx), var(--by)); isolation: isolate; overflow: hidden; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--secondary-strong); color: #fff; box-shadow: 0 10px 30px -8px rgba(53,125,249,.7); }
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad); opacity: 0; transition: opacity .4s;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { box-shadow: var(--glow); }
.btn-ghost { background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn-ghost:hover { background: var(--glass-strong); border-color: rgba(127,178,255,.45); }
.btn-sm { padding: 11px 20px; font-size: .92rem; }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 100;
  transition: transform .5s var(--ease), top .4s var(--ease);
}
.header.hide { transform: translateY(-130%); }
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 10px 12px 10px 18px; border-radius: var(--radius-pill);
  background: rgba(10, 14, 24, 0.55); border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  transition: background .4s;
}
.header.scrolled .nav { background: rgba(8, 11, 19, 0.82); box-shadow: var(--shadow); }
.logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; }
.logo img { width: 44px; height: 44px; }
.logo span small { display: block; font-size: .68rem; color: var(--muted); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  position: relative; padding: 10px 16px; border-radius: var(--radius-pill); font-size: .95rem; color: var(--text-soft);
  transition: color .3s, background .3s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,.06); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; background: var(--glass-strong); border: 1px solid var(--glass-border); position: relative; }
.menu-toggle span { position: absolute; left: 14px; right: 14px; height: 2px; background: #fff; border-radius: 2px; transition: transform .4s var(--ease), opacity .3s; }
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 22px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; padding: 120px var(--gutter) 40px;
  background: rgba(6, 8, 13, 0.92); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  display: flex; flex-direction: column; gap: 8px;
  clip-path: circle(0% at calc(100% - 50px) 50px); transition: clip-path .7s var(--ease); visibility: hidden;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 50px) 50px); visibility: visible; }
.mobile-menu a { font-family: var(--font-head); font-size: clamp(2rem, 8vw, 3rem); font-weight: 500; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.06);
  opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .5s var(--ease); }
.menu-open .mobile-menu a { opacity: 1; transform: none; }
.menu-open .mobile-menu a:nth-child(2) { transition-delay: .05s; }
.menu-open .mobile-menu a:nth-child(3) { transition-delay: .1s; }
.menu-open .mobile-menu a:nth-child(4) { transition-delay: .15s; }
.menu-open .mobile-menu a:nth-child(5) { transition-delay: .2s; }
.menu-open .mobile-menu a:nth-child(6) { transition-delay: .25s; }
.mobile-menu .mm-contact { margin-top: auto; color: var(--muted); font-size: .95rem; }
.mobile-menu .mm-contact a { font-size: 1.1rem; border: 0; font-family: var(--font-body); }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; padding-top: 140px; padding-bottom: 80px; position: relative; overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; z-index: -1; opacity: .7; }
.hero-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 50px; align-items: center; }
.hero h1 { margin-bottom: 26px; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; transform: translateY(110%); animation: rise 1.1s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { to { transform: none; } }

.rotator { display: inline-grid; vertical-align: bottom; }
.rotator > span { grid-area: 1 / 1; opacity: 0; transform: translateY(60%) rotateX(-60deg); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.rotator > span.on { opacity: 1; transform: none; }
.rotator > span.off { opacity: 0; transform: translateY(-60%) rotateX(60deg); transition: opacity .25s, transform .5s var(--ease); }
.rotator > span.on { transition-delay: .15s; }

.hero .lead { margin-bottom: 36px; opacity: 0; animation: fadeUp 1s .5s var(--ease) forwards; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; opacity: 0; animation: fadeUp 1s .65s var(--ease) forwards; }
.hero-trust { display: flex; align-items: center; gap: 16px; margin-top: 44px; opacity: 0; animation: fadeUp 1s .8s var(--ease) forwards; }
.avatars { display: flex; }
.avatars span {
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--bg); margin-left: -10px;
  display: grid; place-items: center; font-size: .78rem; font-weight: 700; color: #fff;
}
.avatars span:first-child { margin-left: 0; }
.avatars span:nth-child(1) { background: #3a6ea5; }
.avatars span:nth-child(2) { background: #357df9; }
.avatars span:nth-child(3) { background: #2a4f7a; }
.avatars span:nth-child(4) { background: #4fd1ff; color: #06223a; }
.stars { color: #ffc94d; letter-spacing: 2px; font-size: .95rem; }
.hero-trust p { font-size: .9rem; color: var(--muted); line-height: 1.4; }
.hero-trust strong { color: var(--text); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Tarjetas flotantes del hero */
.hero-visual { position: relative; height: 540px; perspective: 1200px; opacity: 0; animation: fadeUp 1.2s .4s var(--ease) forwards; }
.hv-card { position: absolute; padding: 22px; transform-style: preserve-3d; transition: transform .2s linear; }
.hv-main { inset: 50px 20px 70px 30px; display: flex; flex-direction: column; }
.hv-main .hv-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: .85rem; color: var(--muted); }
.hv-main .hv-num { font-family: var(--font-head); font-size: 2.6rem; font-weight: 600; }
.hv-main .hv-num small { font-size: .9rem; color: #4ade80; margin-left: 8px; font-weight: 500; }
.hv-chart { flex: 1; margin-top: 10px; }
.hv-chart path.line { fill: none; stroke: url(#lg); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.4s 1s var(--ease) forwards; }
.hv-chart path.area { fill: url(#ag); opacity: 0; animation: fadeIn 1.5s 2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
.hv-bars { display: flex; gap: 8px; align-items: flex-end; height: 60px; margin-top: 14px; }
.hv-bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(to top, rgba(53,125,249,.25), var(--secondary)); transform-origin: bottom; animation: bar 1.2s var(--ease) both; }
@keyframes bar { from { transform: scaleY(0); } }
.hv-float { display: flex; align-items: center; gap: 12px; font-size: .88rem; border-radius: 18px; padding: 14px 18px; animation: bob 6s ease-in-out infinite; }
.hv-float b { display: block; font-family: var(--font-head); font-size: 1.25rem; }
.hv-float .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--glass-border); }
.hv-float .ic svg { width: 22px; height: 22px; color: var(--accent); }
.hv-f1 { top: 0; right: 0; }
.hv-f2 { bottom: 20px; left: -10px; animation-delay: -3s; }
.hv-f3 { top: 44%; right: -24px; animation-delay: -1.5s; }
@keyframes bob { 50% { transform: translateY(-14px); } }

.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.scroll-hint i { width: 22px; height: 36px; border: 1.5px solid rgba(255,255,255,.3); border-radius: 12px; position: relative; }
.scroll-hint i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; border-radius: 2px; background: var(--cyan); transform: translateX(-50%); animation: wheel 1.8s infinite; }
@keyframes wheel { to { transform: translate(-50%, 12px); opacity: 0; } }

/* ---------- Marquesina ---------- */
.marquee { padding-block: 34px; border-block: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.015); overflow: hidden; }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 56px; font-family: var(--font-head); font-size: clamp(1.4rem, 3vw, 2.3rem); font-weight: 500; white-space: nowrap; color: rgba(238,243,255,.85); }
.marquee-track span::after { content: "✦"; color: var(--secondary); font-size: .7em; }
.marquee-track span:nth-child(even) { -webkit-text-stroke: 1px rgba(238,243,255,.5); color: transparent; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee.reverse .marquee-track { animation-direction: reverse; }

/* ---------- Manifiesto (texto que se ilumina al hacer scroll) ---------- */
.manifesto .statement { font-family: var(--font-head); font-size: clamp(1.7rem, 4.2vw, 3.4rem); line-height: 1.2; letter-spacing: -.02em; font-weight: 500; }
.manifesto .w { color: rgba(238,243,255,.14); transition: color .4s; }
.manifesto .w.lit { color: var(--text); }
.manifesto .w.hl.lit { color: var(--accent); }
.manifesto-foot { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; align-items: flex-end; margin-top: 60px; }
.manifesto-foot .lead { max-width: 52ch; }

/* ---------- Servicios (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card {
  position: relative; padding: 32px; overflow: hidden; display: flex; flex-direction: column;
  transition: transform .5s var(--ease), border-color .4s;
}
.card::before { /* foco de luz que sigue el ratón */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(79,209,255,.14), transparent 45%);
}
.card:hover::before { opacity: 1; }
.card:hover { border-color: rgba(127,178,255,.35); transform: translateY(-6px); }
.card .num { font-family: var(--font-head); font-size: .85rem; color: var(--muted); letter-spacing: .1em; }
.card .icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; margin: 18px 0 26px; background: var(--grad-soft); border: 1px solid rgba(127,178,255,.25); box-shadow: inset 0 0 20px rgba(53,125,249,.2); }
.card .icon svg { width: 28px; height: 28px; color: var(--accent); }
.card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.card p { color: var(--text-soft); font-size: .98rem; }
.card ul { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.card ul li { font-size: .8rem; padding: 6px 12px; border-radius: var(--radius-pill); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); color: var(--text-soft); }
.card .more { margin-top: auto; padding-top: 26px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent); }
.card .more svg { width: 18px; transition: transform .4s var(--ease); }
.card:hover .more svg { transform: translateX(6px) rotate(-45deg); }
.span-3 { grid-column: span 3; }
.span-2 { grid-column: span 2; }
.span-4 { grid-column: span 4; }
.card.feature { min-height: 420px; }
.card.feature .card-img { position: absolute; right: -40px; bottom: -40px; width: 58%; border-radius: 18px; opacity: .55; transform: rotate(-6deg); transition: transform .8s var(--ease), opacity .5s; mask-image: linear-gradient(to top left, #000 40%, transparent); -webkit-mask-image: linear-gradient(to top left, #000 40%, transparent); }
.card.feature:hover .card-img { transform: rotate(-2deg) scale(1.05); opacity: .8; }
.card.feature .card-body { max-width: 55%; position: relative; }

/* ---------- Estadísticas ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { padding: 34px 28px; text-align: left; }
.stat .value { font-family: var(--font-head); font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 600; line-height: 1; letter-spacing: -.04em; }
.stat .label { color: var(--text-soft); margin-top: 12px; font-size: .95rem; }
.stat .bar { height: 3px; background: rgba(255,255,255,.08); border-radius: 3px; margin-top: 22px; overflow: hidden; }
.stat .bar i { display: block; height: 100%; width: var(--w, 80%); background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 2s var(--ease); }
.stat.in .bar i { transform: none; }

/* ---------- Método ---------- */
.method { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.method-sticky { position: sticky; top: 130px; }
.steps { display: flex; flex-direction: column; gap: 18px; position: relative; }
.steps::before { content: ""; position: absolute; left: 39px; top: 40px; bottom: 40px; width: 2px; background: rgba(255,255,255,.07); }
.steps .progress-line { position: absolute; left: 39px; top: 40px; width: 2px; height: calc(100% - 80px); background: var(--grad); box-shadow: 0 0 12px var(--secondary); transform-origin: top; transform: scaleY(0); transition: transform .2s linear; }
.step { display: grid; grid-template-columns: 80px 1fr; gap: 10px; padding: 28px 28px 28px 0; background: transparent; border-color: transparent; box-shadow: none; transition: background .5s, border-color .5s; }
.step.active { background: var(--glass); border-color: var(--glass-border); }
.step .n { width: 52px; height: 52px; margin-left: 14px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; background: var(--bg-2); border: 1px solid var(--glass-border); position: relative; z-index: 1; transition: all .5s; }
.step.active .n { background: var(--secondary-strong); border-color: var(--secondary-strong); box-shadow: var(--glow); }
.step h3 { font-size: 1.35rem; margin-bottom: 8px; }
.step p { color: var(--text-soft); font-size: .98rem; }

/* ---------- Proyectos ---------- */
.projects-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 56px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button { padding: 10px 18px; border-radius: var(--radius-pill); border: 1px solid var(--glass-border); background: var(--glass); font-size: .9rem; color: var(--text-soft); transition: all .3s; }
.filters button.active, .filters button:hover { background: var(--secondary-strong); border-color: var(--secondary-strong); color: #fff; }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; grid-auto-flow: dense; }
.project { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3.2; border: 1px solid var(--glass-border); background: var(--bg-2); transition: opacity .5s, transform .5s var(--ease); }
.project.tall { grid-row: span 2; aspect-ratio: auto; }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; filter: saturate(.85); }
.project:hover img { transform: scale(1.08); filter: saturate(1.1); }
.project .info { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  transform: translateY(12px); opacity: .92; transition: transform .5s var(--ease), opacity .5s; background: rgba(8,12,20,.6); }
.project:hover .info { transform: none; opacity: 1; }
.project .info h3 { font-size: 1.05rem; }
.project .info span { font-size: .8rem; color: var(--accent); }
.project .info .arrow { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--secondary); transition: transform .5s var(--ease); }
.project:hover .info .arrow { transform: rotate(-45deg); }
.project .info .arrow svg { width: 16px; }
.project.hidden { display: none; }

/* ---------- Packs / Precios ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price { padding: 38px 32px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.price.featured { background: linear-gradient(160deg, rgba(53,125,249,.22), rgba(58,110,165,.06)); border-color: rgba(127,178,255,.45); transform: translateY(-14px); }
.price.featured::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.badge { position: absolute; top: 22px; right: 22px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: var(--radius-pill); background: var(--grad); color: #03122b; }
.price h3 { font-size: 1.4rem; }
.price .desc { color: var(--text-soft); font-size: .95rem; margin: 10px 0 24px; min-height: 3em; }
.price .amount { font-family: var(--font-head); font-size: 2.8rem; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.price .amount small { font-size: .95rem; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.price ul { margin: 28px 0 32px; display: flex; flex-direction: column; gap: 12px; }
.price li { display: flex; gap: 12px; font-size: .96rem; color: var(--text-soft); }
.price li svg { width: 20px; height: 20px; flex: none; color: var(--cyan); margin-top: 2px; }
.price .btn { margin-top: auto; }
.price-note { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 30px; }

/* ---------- Por qué elegirnos ---------- */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.why-img { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--glass-border); }
.why-img img { width: 100%; aspect-ratio: 4/3.4; object-fit: cover; }
.why-img .glass { position: absolute; left: 20px; bottom: 20px; right: 20px; padding: 20px 24px; display: flex; align-items: center; gap: 16px; }
.why-img .glass b { font-family: var(--font-head); font-size: 2rem; color: var(--accent); }
.why-list { display: flex; flex-direction: column; gap: 14px; margin-top: 30px; }
.why-list li { display: flex; gap: 16px; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--glass); border: 1px solid var(--glass-border); transition: transform .4s var(--ease), border-color .4s; }
.why-list li:hover { transform: translateX(8px); border-color: rgba(127,178,255,.35); }
.why-list li svg { width: 24px; height: 24px; flex: none; color: var(--cyan); }
.why-list li p { color: var(--text-soft); font-size: .98rem; }
.why-list li strong { color: var(--text); }

/* ---------- Testimonios ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testi { padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.testi blockquote { font-size: 1.08rem; line-height: 1.6; color: var(--text); flex: 1; }
.testi blockquote::before { content: "“"; display: block; font-family: var(--font-head); font-size: 4rem; line-height: .6; color: var(--secondary); margin-bottom: 10px; }
.testi .who { display: flex; align-items: center; gap: 14px; }
.testi .who .av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--grad); color: #03122b; }
.testi .who b { display: block; font-size: .98rem; }
.testi .who span { color: var(--muted); font-size: .85rem; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { border-radius: var(--radius-sm); background: var(--glass); border: 1px solid var(--glass-border); transition: border-color .3s, background .3s; }
.faq details[open] { border-color: rgba(127,178,255,.4); background: var(--glass-strong); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-family: var(--font-head); font-size: 1.12rem; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { width: 30px; height: 30px; flex: none; border-radius: 50%; background: rgba(255,255,255,.07); position: relative; transition: transform .4s var(--ease), background .3s; }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: #fff; transform: translate(-50%, -50%); }
.faq summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] .plus { transform: rotate(45deg); background: var(--secondary); }
.faq .answer { padding: 0 24px 22px; color: var(--text-soft); }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; }
.contact-info { padding: 40px; display: flex; flex-direction: column; gap: 26px; background: linear-gradient(160deg, rgba(53,125,249,.2), rgba(10,14,24,.4)); }
.contact-info .item { display: flex; gap: 16px; align-items: center; }
.contact-info .item .ic { width: 50px; height: 50px; flex: none; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.07); border: 1px solid var(--glass-border); }
.contact-info .item .ic svg { width: 22px; height: 22px; color: var(--accent); }
.contact-info .item span { display: block; color: var(--muted); font-size: .82rem; }
.contact-info .item a, .contact-info .item p { font-weight: 600; font-size: 1.02rem; }
.contact-info .item a:hover { color: var(--accent); }
.form { padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .85rem; color: var(--text-soft); margin-bottom: 8px; font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; padding: 15px 18px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--glass-border);
  transition: border-color .3s, background .3s, box-shadow .3s; font-size: 1rem;
}
.field select option { background: var(--bg-2); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--secondary); background: rgba(53,125,249,.07); box-shadow: 0 0 0 4px rgba(53,125,249,.15); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--text-soft); }
.check input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--secondary); }
.check a { color: var(--accent); text-decoration: underline; }
.hp { position: absolute; left: -9999px; }
.gdpr-box { font-size: .78rem; color: var(--muted); line-height: 1.5; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); }
.gdpr-box a { color: var(--accent); text-decoration: underline; }
.form-status { font-size: .95rem; padding: 12px 16px; border-radius: 12px; display: none; }
.form-status.ok { display: block; background: rgba(74,222,128,.12); color: #86efac; border: 1px solid rgba(74,222,128,.3); }
.form-status.err { display: block; background: rgba(248,113,113,.12); color: #fca5a5; border: 1px solid rgba(248,113,113,.3); }

/* ---------- CTA final ---------- */
.cta-final { text-align: center; padding: clamp(50px, 8vw, 100px) var(--gutter); position: relative; overflow: hidden; }
.cta-final::before { content: ""; position: absolute; width: 600px; height: 600px; left: 50%; top: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(53,125,249,.4), transparent 60%); filter: blur(40px); z-index: -1; animation: pulse 6s infinite; }
.cta-final .lead { margin: 22px auto 36px; }
.cta-final .hero-ctas { justify-content: center; opacity: 1; animation: none; }

/* ---------- Footer ---------- */
.footer { padding-top: 90px; border-top: 1px solid rgba(255,255,255,.07); background: linear-gradient(to bottom, transparent, rgba(53,125,249,.05)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 60px; }
.footer p { color: var(--text-soft); font-size: .95rem; }
.footer h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); margin-bottom: 18px; font-family: var(--font-body); font-weight: 600; }
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer ul a, .footer ul button { color: var(--text-soft); font-size: .95rem; transition: color .3s; text-align: left; }
.footer ul a:hover, .footer ul button:hover { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--glass-border); transition: all .3s; }
.socials a:hover { background: var(--secondary); transform: translateY(-3px); }
.socials svg { width: 20px; height: 20px; }
.footer-big { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.9rem, 7.2vw, 6.8rem); line-height: .9; letter-spacing: -.05em; text-align: center; white-space: nowrap;
  background: linear-gradient(to bottom, rgba(127,178,255,.22), transparent 85%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; overflow: hidden; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 26px 0 36px; border-top: 1px solid rgba(255,255,255,.07); font-size: .85rem; color: var(--muted); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom a:hover, .footer-bottom button:hover { color: #fff; }
.footer-bottom button { color: var(--muted); font-size: .85rem; }

/* ---------- WhatsApp flotante + volver arriba ---------- */
.fab-wa { position: fixed; right: 20px; bottom: 20px; z-index: 80; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 10px 30px -6px rgba(37,211,102,.6); transition: transform .4s var(--ease); }
.fab-wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ring 2.4s infinite; }
@keyframes ring { to { transform: scale(1.6); opacity: 0; } }
.fab-wa:hover { transform: scale(1.1); }
.fab-wa svg { width: 30px; height: 30px; }
.to-top { position: fixed; right: 28px; bottom: 94px; z-index: 80; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .4s var(--ease); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 18px; }

/* ---------- Banner de cookies ---------- */
.cookie-banner {
  position: fixed; left: 20px; bottom: 20px; z-index: 300; width: min(460px, calc(100% - 40px));
  padding: 26px; transform: translateY(140%); transition: transform .7s var(--ease);
  background: rgba(10, 14, 24, 0.88);
}
.cookie-banner.show { transform: none; }
.cookie-banner h2 { font-size: 1.2rem; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.cookie-banner p { font-size: .88rem; color: var(--text-soft); line-height: 1.55; }
.cookie-banner p a { color: var(--accent); text-decoration: underline; }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.cookie-actions .btn { padding: 13px 16px; font-size: .92rem; }
.cookie-actions .btn-link { grid-column: 1 / -1; font-size: .88rem; color: var(--text-soft); text-decoration: underline; padding: 6px; }
/* Aceptar y Rechazar con la MISMA prominencia (requisito AEPD) */
.cookie-actions .btn-equal { background: var(--secondary-strong); color: #fff; border: 1px solid var(--secondary-strong); }
.cookie-actions .btn-equal:hover { background: #1d4ed8; }

.cookie-modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; background: rgba(2,4,8,.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.cookie-modal.show { opacity: 1; visibility: visible; }
.cookie-modal .panel { width: min(640px, 100%); max-height: calc(100svh - 32px); overflow-y: auto; padding: 32px; background: rgba(12,17,28,.95); transform: translateY(20px) scale(.97); transition: transform .5s var(--ease); }
.cookie-modal.show .panel { transform: none; }
.cookie-modal h2 { font-size: 1.5rem; margin-bottom: 10px; }
.cookie-modal > .panel > p { color: var(--text-soft); font-size: .92rem; margin-bottom: 20px; }
.cookie-cat { padding: 18px 20px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--glass-border); margin-bottom: 12px; }
.cookie-cat .row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.cookie-cat h3 { font-size: 1.02rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.cookie-cat p { font-size: .84rem; color: var(--muted); margin-top: 8px; }
.switch { position: relative; width: 50px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; cursor: pointer; z-index: 1; margin: 0; }
.switch span { position: absolute; inset: 0; border-radius: 28px; background: rgba(255,255,255,.15); transition: background .3s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .35s var(--ease); }
.switch input:checked + span { background: var(--secondary); }
.switch input:checked + span::after { transform: translateX(22px); }
.switch input:disabled + span { opacity: .6; }
.switch input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.cookie-modal .modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.cookie-modal .modal-actions .btn { flex: 1 1 160px; }

/* ---------- Páginas legales / interiores ---------- */
.page-hero { padding-top: 170px; padding-bottom: 60px; }
.page-hero .lead { margin-top: 18px; }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumbs a:hover { color: #fff; }
.legal { padding: clamp(28px, 5vw, 56px); margin-bottom: var(--section); }
.legal h2 { font-size: 1.5rem; margin: 40px 0 14px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.15rem; margin: 26px 0 10px; }
.legal p, .legal li { color: var(--text-soft); margin-bottom: 12px; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal a { color: var(--accent); text-decoration: underline; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: .9rem; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--glass-border); color: var(--text-soft); vertical-align: top; }
.legal th { color: var(--text); background: rgba(255,255,255,.04); }
.legal .todo { background: rgba(255, 201, 77, .15); color: #ffd97a; padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.legal .updated { font-size: .85rem; color: var(--muted); }

.service-content { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: start; margin-bottom: var(--section); }
.service-content .legal { margin: 0; }
.service-aside { position: sticky; top: 120px; padding: 32px; }
.service-aside h3 { font-size: 1.3rem; margin-bottom: 12px; }
.service-aside p { color: var(--text-soft); font-size: .95rem; margin-bottom: 22px; }
.service-aside .btn { width: 100%; margin-bottom: 10px; }

/* ---------- Animaciones de aparición (scroll reveal) ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-50px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal-left.in { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: scale(.92); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal-scale.in { opacity: 1; transform: none; }
.split-reveal .word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.split-reveal .word > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 40ms); }
.split-reveal.in .word > span { transform: none; }

/* ---------- Responsive: TABLET ---------- */
@media (max-width: 1080px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .menu-toggle { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 460px; max-width: 560px; width: 100%; margin-inline: auto; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .span-2, .span-3, .span-4 { grid-column: span 1; }
  .card.feature { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .method, .why, .faq-wrap, .contact, .service-content { grid-template-columns: 1fr; }
  .method-sticky, .service-aside { position: static; }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .price.featured { transform: none; }
  .testimonials { grid-template-columns: 1fr 1fr; }
  .testimonials .testi:last-child { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Responsive: MÓVIL ---------- */
@media (max-width: 680px) {
  body { font-size: 1rem; }
  .header { top: 10px; }
  .nav { padding: 8px 8px 8px 14px; }
  .logo img { width: 38px; height: 38px; }
  .logo span small { display: none; }
  .nav-cta .btn-primary { display: none; }
  .hero { padding-top: 120px; }
  .hero-visual { height: 380px; }
  .hv-main { inset: 40px 0 60px 0; }
  .hv-f3 { right: -4px; }
  .hv-f2 { left: 0; }
  .hv-main .hv-num { font-size: 2rem; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .scroll-hint { display: none; }
  .bento, .stats, .projects, .testimonials { grid-template-columns: 1fr; }
  .testimonials .testi:last-child { grid-column: auto; }
  .card { padding: 26px; }
  .card.feature { min-height: 0; }
  .card.feature .card-body { max-width: 100%; }
  .card.feature .card-img { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 24px; transform: none; opacity: .8; }
  .project.tall { grid-row: auto; aspect-ratio: 4/3.2; }
  .step { grid-template-columns: 64px 1fr; padding: 22px 18px 22px 0; }
  .step .n { width: 44px; height: 44px; margin-left: 10px; }
  .steps::before, .steps .progress-line { left: 31px; }
  .form { grid-template-columns: 1fr; padding: 26px; }
  .contact-info { padding: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; width: auto; padding: 22px; }
  .cookie-actions { grid-template-columns: 1fr 1fr; }
  .fab-wa { width: 54px; height: 54px; right: 14px; bottom: 14px; }
  .to-top { right: 19px; bottom: 80px; }
  .cursor-glow { display: none; }
}

/* ---------- Accesibilidad: movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-left, .reveal-scale, .hero h1 .line > span, .split-reveal .word > span { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none; }
}

/* =====================================================================
   PANTALLA DE CARGA EN VÍDEO (intro)
   ===================================================================== */
.intro { display: none; }
html.intro-playing, html.intro-playing body { overflow: hidden; }
html.intro-playing .intro, html.intro-leaving .intro {
  display: block; position: fixed; inset: 0; z-index: 2000;
  width: 100%; height: 100vh; height: 100dvh; background: #000;
}
.intro video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; background: #000;
  opacity: 0; transition: opacity .35s ease;
}
.intro.is-playing video { opacity: 1; }
html.intro-leaving .intro { opacity: 0; transition: opacity .8s var(--ease); pointer-events: none; }
html.intro-leaving .intro video { transform: scale(1.04); transition: transform .8s var(--ease); }
.intro-skip {
  position: absolute; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom));
  padding: 10px 18px; border-radius: 999px; font-size: .85rem; font-weight: 500; letter-spacing: .04em;
  color: rgba(255,255,255,.85); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; animation: fadeIn .6s 1.2s forwards; transition: background .3s, color .3s;
}
.intro-skip:hover, .intro-skip:focus-visible { background: rgba(255,255,255,.18); color: #fff; }
/* Mientras suena la intro: sin preloader y con la portada en pausa */
html.intro-playing .preloader { display: none; }
html.intro-playing .hero *, html.intro-playing .hero *::before, html.intro-playing .hero *::after { animation-play-state: paused !important; }
