/* ==========================================================================
   Yosian Telecom & Systems — Hoja de estilos principal
   Temas: oscuro (default), claro, esmeralda, amatista, oceano, cyberpunk
   Cada tema solo redefine variables; el resto del CSS usa var(--...).
   ========================================================================== */

/* ---------- Tema base: OSCURO (inspirado en neón magenta / índigo) ---------- */
:root,
[data-theme="oscuro"] {
  --bg: #0a0b26;
  --bg-2: #12143a;
  --surface: rgba(28, 31, 82, 0.55);
  --surface-solid: #171a4a;
  --surface-2: rgba(255, 255, 255, 0.04);
  --border: rgba(160, 170, 255, 0.16);
  --border-strong: rgba(200, 205, 255, 0.45);
  --text: #f4f5ff;
  --muted: #a3a8d6;
  --accent: #ff1f8f;        /* botón principal */
  --accent-2: #6d7cff;      /* azul eléctrico */
  --accent-3: #b25cff;      /* violeta */
  --on-accent: #ffffff;
  --glow-1: rgba(178, 92, 255, 0.45);
  --glow-2: rgba(109, 124, 255, 0.35);
  --glow-3: rgba(255, 31, 143, 0.22);
  --logo-tile: #ffffff;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --radius: 22px;
  --radius-btn: 999px;
  color-scheme: dark;
}

[data-theme="claro"] {
  --bg: #f4f5fb;
  --bg-2: #e9ebf8;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-solid: #ffffff;
  --surface-2: rgba(20, 24, 70, 0.035);
  --border: rgba(40, 46, 120, 0.12);
  --border-strong: rgba(40, 46, 120, 0.35);
  --text: #12143a;
  --muted: #565c86;
  --accent: #5a3dff;
  --accent-2: #0a8cff;
  --accent-3: #c234ff;
  --on-accent: #ffffff;
  --glow-1: rgba(194, 52, 255, 0.18);
  --glow-2: rgba(10, 140, 255, 0.18);
  --glow-3: rgba(90, 61, 255, 0.14);
  --shadow: 0 30px 70px -35px rgba(30, 36, 110, 0.35);
  color-scheme: light;
}

[data-theme="esmeralda"] {
  --bg: #03140f;
  --bg-2: #062219;
  --surface: rgba(10, 52, 38, 0.55);
  --surface-solid: #0a2d22;
  --border: rgba(110, 255, 196, 0.15);
  --border-strong: rgba(160, 255, 215, 0.45);
  --text: #ecfff7;
  --muted: #94c9b4;
  --accent: #10d98a;
  --accent-2: #2ee6c8;
  --accent-3: #9ff06b;
  --on-accent: #02160e;
  --glow-1: rgba(16, 217, 138, 0.38);
  --glow-2: rgba(46, 230, 200, 0.28);
  --glow-3: rgba(159, 240, 107, 0.16);
  color-scheme: dark;
}

[data-theme="amatista"] {
  --bg: #13081f;
  --bg-2: #1e0f33;
  --surface: rgba(58, 28, 92, 0.5);
  --surface-solid: #2a1546;
  --border: rgba(214, 160, 255, 0.16);
  --border-strong: rgba(230, 195, 255, 0.45);
  --text: #f9f2ff;
  --muted: #bda6d8;
  --accent: #c86bff;
  --accent-2: #8b5cf6;
  --accent-3: #f472b6;
  --on-accent: #1a0628;
  --glow-1: rgba(200, 107, 255, 0.42);
  --glow-2: rgba(139, 92, 246, 0.35);
  --glow-3: rgba(244, 114, 182, 0.22);
  color-scheme: dark;
}

[data-theme="oceano"] {
  --bg: #020f22;
  --bg-2: #061a36;
  --surface: rgba(12, 46, 88, 0.5);
  --surface-solid: #0b2649;
  --border: rgba(110, 200, 255, 0.16);
  --border-strong: rgba(160, 225, 255, 0.45);
  --text: #eef9ff;
  --muted: #8fb5d3;
  --accent: #22d3ee;
  --accent-2: #3b82f6;
  --accent-3: #14b8a6;
  --on-accent: #01131f;
  --glow-1: rgba(34, 211, 238, 0.35);
  --glow-2: rgba(59, 130, 246, 0.38);
  --glow-3: rgba(20, 184, 166, 0.2);
  color-scheme: dark;
}

/* Cyberpunk: amarillo de señalización, cian/azul neón y morado — esquinas cortadas */
[data-theme="cyberpunk"] {
  --bg: #08080f;
  --bg-2: #10101c;
  --surface: rgba(22, 20, 40, 0.72);
  --surface-solid: #15142a;
  --surface-2: rgba(252, 238, 10, 0.03);
  --border: rgba(0, 240, 255, 0.22);
  --border-strong: rgba(252, 238, 10, 0.7);
  --text: #f2f6ff;
  --muted: #9aa3c7;
  --accent: #fcee0a;
  --accent-2: #00f0ff;
  --accent-3: #b026ff;
  --on-accent: #0a0a0a;
  --glow-1: rgba(176, 38, 255, 0.38);
  --glow-2: rgba(0, 240, 255, 0.25);
  --glow-3: rgba(252, 238, 10, 0.12);
  --font-display: "Rajdhani", "Sora", system-ui, sans-serif;
  --radius: 4px;
  --radius-btn: 0px;
  color-scheme: dark;
}

/* ---------- Reset y base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
html[data-size="grande"] { font-size: 112.5%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  transition: background-color .5s ease, color .5s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .6em; letter-spacing: -0.02em; }
[data-theme="cyberpunk"] h1, [data-theme="cyberpunk"] h2, [data-theme="cyberpunk"] h3 { letter-spacing: 0.01em; text-transform: uppercase; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Fondo global con brillos de color */
.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 85% 8%, var(--glow-1), transparent 60%),
    radial-gradient(50vw 45vh at 10% 30%, var(--glow-2), transparent 60%),
    radial-gradient(55vw 50vh at 60% 100%, var(--glow-3), transparent 65%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  transition: background .6s ease;
}
[data-theme="cyberpunk"] .bg-glow::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0, 240, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .85em 1.6em;
  border-radius: var(--radius-btn);
  font: 600 .95rem/1 var(--font-body);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn svg { width: 1.1em; height: 1.1em; transition: transform .25s ease; }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 30px -10px var(--accent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px var(--accent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent-2); background: var(--surface-2); transform: translateY(-2px); }
[data-theme="cyberpunk"] .btn {
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  text-transform: uppercase; letter-spacing: .08em; font-family: var(--font-display); font-size: 1.05rem;
}
[data-theme="cyberpunk"] .btn-ghost { border-color: var(--accent-2); color: var(--accent-2); }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background .3s ease, backdrop-filter .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 16px; }
.brand { display: flex; align-items: center; height: 54px; flex-shrink: 0; }
.brand img { height: 100%; width: auto; }
.brand .logo-light { display: none; }
[data-theme="claro"] .brand .logo-dark { display: none; }
[data-theme="claro"] .brand .logo-light { display: block; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 10px;
  font-size: .93rem; font-weight: 500; color: var(--muted);
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text); cursor: pointer; transition: border-color .2s ease, transform .3s ease;
}
.icon-btn:hover { border-color: var(--accent-2); }
.icon-btn svg { width: 20px; height: 20px; }
.settings-trigger:hover svg { transform: rotate(60deg); }
.settings-trigger svg { transition: transform .5s ease; }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 40px 0 110px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; min-height: min(78vh, 680px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: 26px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); font-weight: 700; margin-bottom: 22px; }
.grad-text {
  background: linear-gradient(95deg, var(--accent-2), var(--accent-3) 55%, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 520px; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 46px; color: var(--muted); font-size: .88rem; }
.hero-badges strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--text); }

/* Cubo 3D */
.cube-stage { position: relative; height: 460px; display: grid; place-items: center; perspective: 1100px; }
.cube-stage::before {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, var(--glow-1), transparent 65%); filter: blur(30px);
}
.cube-floor {
  position: absolute; bottom: 40px; width: 360px; height: 70px; border-radius: 50%;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--accent-3) 70%, transparent), transparent 70%);
  filter: blur(14px); animation: pulse 4s ease-in-out infinite;
}
.cube {
  --s: 230px;
  position: relative; width: var(--s); height: var(--s);
  transform-style: preserve-3d;
  transform: rotateX(-22deg) rotateY(38deg);
  animation: spin 22s linear infinite;
}
.cube .face {
  position: absolute; inset: 0; border-radius: 18px;
  border: 1.5px solid color-mix(in srgb, #fff 55%, transparent);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-2) 40%, transparent), color-mix(in srgb, var(--accent-3) 26%, transparent) 60%, color-mix(in srgb, var(--accent) 18%, transparent));
  box-shadow: inset 0 0 50px color-mix(in srgb, var(--accent-3) 60%, transparent), 0 0 40px -6px var(--glow-1);
  backdrop-filter: blur(2px);
}
[data-theme="cyberpunk"] .cube .face { border-radius: 2px; border-color: var(--accent-2); }
.cube .f1 { transform: translateZ(calc(var(--s) / 2)); }
.cube .f2 { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.cube .f3 { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.cube .f4 { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.cube .f5 { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.cube .f6 { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
.cube .f1 .cube-mono { position: absolute; inset: 17%; width: 66%; height: 66%; object-fit: contain; filter: drop-shadow(0 0 14px var(--accent-2)) drop-shadow(0 0 4px rgba(255,255,255,.35)); }
.cube-core {
  position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px;
  border-radius: 50%; transform-style: preserve-3d;
  background: radial-gradient(circle, #fff 0%, var(--accent-2) 30%, var(--accent-3) 55%, transparent 72%);
  filter: blur(6px); opacity: .85;
}
.orbit {
  position: absolute; border-radius: 50%; border: 1px dashed var(--border-strong);
  width: 420px; height: 420px; opacity: .4; animation: rot 40s linear infinite;
}
.orbit::after {
  content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 16px 3px var(--accent);
}
.orbit.o2 { width: 330px; height: 330px; animation-duration: 26s; animation-direction: reverse; }
.orbit.o2::after { background: var(--accent-2); box-shadow: 0 0 16px 3px var(--accent-2); }

@keyframes spin { from { transform: rotateX(-22deg) rotateY(38deg); } to { transform: rotateX(-22deg) rotateY(398deg); } }
@keyframes rot { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .55; transform: scaleX(.9); } }

/* ---------- Secciones ---------- */
.section { position: relative; padding: 110px 0; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 14px;
}
.section h2 { font-size: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* Bloque "especialistas" (split como la referencia) */
.split-panel {
  display: grid; grid-template-columns: 1fr 1fr; border-radius: calc(var(--radius) + 8px);
  overflow: hidden; border: 1px solid var(--border); background: var(--surface);
  box-shadow: var(--shadow); position: relative;
}
.split-left { position: relative; padding: 70px 56px 150px; overflow: hidden; }
.split-left h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.split-left p { color: var(--muted); max-width: 440px; margin-bottom: 30px; }
.waves { position: absolute; left: -10%; bottom: -30px; width: 130%; height: 220px; pointer-events: none; opacity: .9; }
.waves path { fill: none; stroke-width: 1; }
.split-right { padding: 56px 48px; background: var(--surface-2); border-left: 1px solid var(--border); display: grid; gap: 34px; align-content: center; }
.feature { display: grid; grid-template-columns: 54px 1fr; gap: 20px; }
.feature .ico {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  color: var(--accent-2); border: 1px solid var(--border);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent);
}
.feature .ico svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .93rem; margin: 0; }

/* Servicios */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  position: relative; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); overflow: hidden;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent-2) 60%, transparent); box-shadow: 0 24px 60px -30px var(--accent-2); }
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent-3) 22%, transparent), transparent 45%);
}
.card:hover::before { opacity: 1; }
.service-media { height: 190px; background: var(--logo-tile); padding: 14px; }
.service-media img { width: 100%; height: 100%; object-fit: contain; }
.service-body { padding: 22px 22px 26px; }
.service-body .num { font-family: var(--font-display); font-size: .8rem; color: var(--accent-2); font-weight: 700; letter-spacing: .1em; }
.service-body h3 { font-size: 1.12rem; margin: 6px 0 12px; }
.service-body ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.service-body li { position: relative; padding-left: 18px; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.service-body li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 2px; background: linear-gradient(135deg, var(--accent-2), var(--accent-3)); }

/* Nosotros */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
.about-visual { position: relative; border-radius: calc(var(--radius) + 6px); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.about-visual img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, color-mix(in srgb, var(--bg) 85%, transparent)); }
.about-badge {
  position: absolute; z-index: 2; left: 22px; bottom: 22px; display: flex; align-items: center; gap: 14px;
  padding: 12px 18px 12px 12px; border-radius: 16px; background: var(--surface-solid); border: 1px solid var(--border);
}
.about-badge img { width: 64px; height: 46px; object-fit: contain; background: #fff; border-radius: 8px; padding: 3px; }
.about-badge strong { display: block; font-family: var(--font-display); }
.about-badge span { color: var(--muted); font-size: .85rem; }
.about-text p { color: var(--muted); font-size: 1.04rem; }
.mvv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 60px; }
.mvv .card { padding: 30px 28px; }
.mvv .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: var(--on-accent); background: linear-gradient(135deg, var(--accent-2), var(--accent-3)); margin-bottom: 18px; }
.mvv .ico svg { width: 22px; height: 22px; }
.mvv p { color: var(--muted); font-size: .95rem; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); }
[data-theme="cyberpunk"] .chip { border-radius: 0; border-color: var(--accent-3); }

/* Clientes (carrusel infinito de logos) */
.marquee { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 22px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.logo-tile {
  width: 200px; height: 112px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; padding: 16px 22px; overflow: hidden;
  background: var(--logo-tile); border-radius: 18px; border: 1px solid var(--border);
}
[data-theme="cyberpunk"] .logo-tile { border-radius: 2px; }
.logo-tile img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; filter: grayscale(.15); transition: filter .3s ease, transform .3s ease; }
.logo-tile:hover img { filter: none; transform: scale(1.05); }
@keyframes marquee { to { transform: translateX(calc(-50% - 11px)); } }

/* Productos: tienda en línea */
.store .split-left { padding-bottom: 170px; }
.store .split-left h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.store-url { display: inline-block; margin-top: 22px; font-size: .9rem; font-weight: 600; color: var(--accent-2); border-bottom: 1px dashed currentColor; }
.store-url:hover { color: var(--text); }
.store .sp-label { margin-bottom: 0; }
.store-brands { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.store-brands .logo-tile { width: auto; height: 84px; padding: 14px 20px; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 26px; }
.contact-info { display: grid; gap: 18px; align-content: start; }
.contact-hero { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 170px; border: 1px solid var(--border); }
.contact-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, color-mix(in srgb, var(--bg) 92%, transparent) 30%, color-mix(in srgb, var(--accent-3) 30%, transparent)); }
.contact-hero div { position: relative; z-index: 1; padding: 28px; }
.contact-hero h3 { font-size: 1.5rem; margin-bottom: 6px; }
.contact-hero p { color: var(--muted); margin: 0; max-width: 300px; }
.person { padding: 24px 26px; }
.person .role { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
.person h4 { font-size: 1.08rem; margin: 6px 0 12px; }
.person a { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .93rem; padding: 3px 0; transition: color .2s ease; word-break: break-all; }
.person a:hover { color: var(--text); }
.person svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--accent-2); }
.form-card { padding: 38px; }
.form-card h3 { font-size: 1.5rem; }
.form-card > p { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .84rem; font-weight: 600; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font: inherit; font-size: .97rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
[data-theme="cyberpunk"] .field input, [data-theme="cyberpunk"] .field textarea { border-radius: 0; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-2) 22%, transparent); }
.hp { position: absolute; left: -9999px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.form-status { font-size: .92rem; font-weight: 600; margin: 0; }
.form-status.ok { color: #22c58b; }
.form-status.err { color: #ff5d7a; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 60px 0 30px; margin-top: 40px; background: color-mix(in srgb, var(--bg) 60%, transparent); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer p, .site-footer li { color: var(--muted); font-size: .93rem; }
.site-footer h4 { font-size: .95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer ul a:hover { color: var(--text); }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--border); color: var(--text); transition: border-color .2s, color .2s; }
.socials a:hover { border-color: var(--accent-2); color: var(--accent-2); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--border); font-size: .85rem; color: var(--muted); }

/* ---------- Página de productos ---------- */
.page-hero { padding: 40px 0 70px; }
.page-hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 50px; align-items: center; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 480px; }
.slider { position: relative; border-radius: calc(var(--radius) + 6px); overflow: hidden; background: var(--logo-tile); border: 1px solid var(--border); box-shadow: var(--shadow), 0 0 0 1px var(--border); aspect-ratio: 16 / 10; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease, transform 6s ease; transform: scale(1.04); }
.slide.on { opacity: 1; transform: scale(1); }
.slide img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.slider-ui { position: absolute; z-index: 3; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; }
.slider-ui button { width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0; cursor: pointer; background: rgba(20, 20, 60, .25); transition: width .3s ease, background .3s ease; }
.slider-ui button.on { width: 30px; background: var(--accent); }
.slider-arrow { position: absolute; z-index: 3; top: 50%; translate: 0 -50%; width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: rgba(10, 12, 40, .7); color: #fff; }
.slider-arrow svg { width: 20px; height: 20px; }
.slider-arrow.prev { left: 12px; }
.slider-arrow.next { right: 12px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter-btn { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); font: 600 .9rem var(--font-body); cursor: pointer; transition: all .2s ease; }
.filter-btn:hover { color: var(--text); border-color: var(--border-strong); }
.filter-btn.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
[data-theme="cyberpunk"] .filter-btn { border-radius: 0; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.product { display: flex; flex-direction: column; }
.product[hidden] { display: none; }
.product .service-media { height: 210px; }
.product .tag { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); }
.product .service-body { display: flex; flex-direction: column; flex: 1; }
.product .service-body ul { margin-bottom: 22px; }
.product .btn { margin-top: auto; align-self: flex-start; padding: .7em 1.3em; font-size: .88rem; }
.brands-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.brands-grid .logo-tile { width: auto; height: 96px; }

/* ---------- Panel de configuración ---------- */
.settings-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 54px; height: 54px; border-radius: 16px;
  border: 1px solid var(--border-strong); background: var(--surface-solid); color: var(--text);
  display: grid; place-items: center; cursor: pointer; box-shadow: 0 14px 40px -12px var(--accent-3);
  transition: transform .3s ease;
}
.settings-fab:hover { transform: translateY(-3px); }
.settings-fab svg { width: 24px; height: 24px; animation: rot 12s linear infinite; }
.overlay { position: fixed; inset: 0; z-index: 70; background: rgba(4, 5, 20, .55); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.overlay.open { opacity: 1; pointer-events: auto; }
.settings-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 80; width: min(400px, 100%);
  background: var(--surface-solid); border-left: 1px solid var(--border);
  box-shadow: -30px 0 80px -30px rgba(0, 0, 0, .6);
  transform: translateX(105%); transition: transform .4s cubic-bezier(.2, .8, .2, 1);
  display: flex; flex-direction: column;
}
.settings-panel.open { transform: none; }
.sp-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--border); }
.sp-head h2 { font-size: 1.25rem; margin: 0; }
.sp-head p { margin: 2px 0 0; font-size: .85rem; color: var(--muted); }
.sp-body { padding: 24px; overflow-y: auto; display: grid; gap: 30px; align-content: start; }
.sp-label { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; display: block; }
.theme-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.theme-opt {
  position: relative; text-align: left; cursor: pointer; padding: 0; border-radius: 16px; overflow: hidden;
  border: 2px solid var(--border); background: none; color: var(--text); font: inherit;
  transition: border-color .2s ease, transform .2s ease;
}
.theme-opt:hover { transform: translateY(-2px); }
.theme-opt[aria-pressed="true"] { border-color: var(--accent); }
.theme-opt[aria-pressed="true"]::after {
  content: "✓"; position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: .75rem; font-weight: 800; background: var(--accent); color: var(--on-accent);
}
.theme-prev { display: block; height: 74px; position: relative; }
.theme-prev i { position: absolute; bottom: 10px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .6); }
.theme-prev i:nth-of-type(1) { left: 10px; } .theme-prev i:nth-of-type(2) { left: 30px; } .theme-prev i:nth-of-type(3) { left: 50px; }
.theme-prev b { position: absolute; top: 12px; left: 10px; width: 46%; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .85); }
.theme-prev b + b { top: 25px; width: 30%; opacity: .5; }
.theme-name { display: block; padding: 9px 12px; font-size: .88rem; font-weight: 700; background: var(--surface-2); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); }
.toggle-row + .toggle-row { margin-top: 10px; }
.toggle-row strong { display: block; font-size: .95rem; }
.toggle-row span { font-size: .82rem; color: var(--muted); }
.switch { position: relative; width: 48px; height: 28px; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; z-index: 1; }
.switch .track { position: absolute; inset: 0; border-radius: 999px; background: var(--border-strong); transition: background .2s ease; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .25s ease; }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.sp-foot { margin-top: auto; padding: 18px 24px; border-top: 1px solid var(--border); font-size: .82rem; color: var(--muted); }

/* ---------- Animaciones de entrada ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
html.no-motion *, html.no-motion *::before, html.no-motion *::after { animation: none !important; transition: none !important; }
html.no-motion .reveal { opacity: 1; transform: none; }
html.no-motion { scroll-behavior: auto; }

/* ---------- Responsivo ---------- */
@media (max-width: 1060px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .page-hero-grid, .about-grid { grid-template-columns: 1fr; }
  .cube-stage { height: 380px; order: -1; }
  .split-panel { grid-template-columns: 1fr; }
  .split-right { border-left: 0; border-top: 1px solid var(--border); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-grid; }
  .nav-links {
    position: absolute; top: 78px; left: 16px; right: 16px; flex-direction: column; align-items: stretch;
    padding: 12px; border-radius: 18px; background: var(--surface-solid); border: 1px solid var(--border);
    box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(-8px); transition: all .25s ease;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: none; }
  .nav-links a { padding: 12px 14px; }
  .nav-actions .btn { display: none; }
  .mvv { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .brand { height: 42px; }
  .section { padding: 80px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .cube { --s: 170px; }
  .cube-stage { height: 300px; }
  .orbit { width: 300px; height: 300px; }
  .orbit.o2 { width: 240px; height: 240px; }
  .cube-stage::before { width: 300px; height: 300px; }
  .split-left { padding: 44px 24px 130px; }
  .split-right { padding: 36px 24px; }
  .form-card { padding: 26px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .logo-tile { width: 160px; height: 92px; }
  .store-brands .logo-tile { height: 72px; }
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .settings-fab { right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) *, html:not(.force-motion) *::before { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html:not(.force-motion) .reveal { opacity: 1; transform: none; }
}
