/* ==========================================================================
   RYJSOFT — Hoja de estilos
   --------------------------------------------------------------------------
   Capa propia sobre Bootstrap 5.3. Bootstrap aporta la rejilla y algunas
   utilidades (d-flex, gap, row/col); todo lo visual vive aquí.

   Color: tema oscuro con acentos neón. Reglas de contraste:
     · --texto (#E6E9FF) sobre --fondo da 16:1.
     · --texto-suave (#A3ACD3) sobre --fondo da 8.4:1, sirve para párrafos.
     · El cian y el violeta van como relleno o borde. Sobre relleno cian el
       texto es --fondo (oscuro), nunca blanco.
     · El botón de WhatsApp usa el verde de marca con texto oscuro (9.6:1).

   Contenido:
     1. Tokens          2. Base             3. Botones
     4. Cabecera        5. Portada (hero)   6. Bloques y títulos
     7. Tarjetas        8. Productos        9. Catálogo y filtros
    10. Cotizador      11. Formularios     12. Planes
    13. Línea de tiempo 14. Pie            15. Flotantes y modal
    16. Animaciones
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  --fondo: #050816;
  --fondo-2: #0A0F24;
  --fondo-3: #10173A;
  --panel: rgba(255, 255, 255, .035);
  --panel-2: rgba(255, 255, 255, .06);
  --borde: rgba(148, 163, 255, .14);
  --borde-fuerte: rgba(148, 163, 255, .28);

  --texto: #E6E9FF;
  --texto-suave: #A3ACD3;
  --texto-tenue: #7480AE;

  --cian: #22D3EE;
  --violeta: #8B5CF6;
  --rosa: #EC4899;
  --verde: #34D399;
  --ambar: #FBBF24;
  --rojo: #F87171;
  --whats: #25D366;

  --degradado: linear-gradient(120deg, var(--cian) 0%, var(--violeta) 55%, var(--rosa) 100%);
  --degradado-suave: linear-gradient(120deg, rgba(34, 211, 238, .16), rgba(139, 92, 246, .16) 55%, rgba(236, 72, 153, .16));

  --f-titulo: 'Space Grotesk', system-ui, sans-serif;
  --f-texto: 'Inter', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  --t-xxs: .72rem;
  --t-xs: .8rem;
  --t-sm: .9rem;
  --t-md: 1.05rem;
  --t-lg: 1.25rem;

  --radio: 18px;
  --radio-sm: 12px;
  --sombra: 0 20px 60px -20px rgba(0, 0, 0, .7);
  --brillo-cian: 0 0 0 1px rgba(34, 211, 238, .35), 0 10px 40px -10px rgba(34, 211, 238, .45);
  --brillo-violeta: 0 10px 40px -10px rgba(139, 92, 246, .55);

  --alto-cabecera: 76px;
}

/* --------------------------------------------------------------------------
   2. BASE
   -------------------------------------------------------------------------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--alto-cabecera) + 16px); }

body {
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--f-texto);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Trama sutil de fondo en todo el sitio */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(139, 92, 246, .14), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(34, 211, 238, .08), transparent 60%),
    var(--fondo);
}

h1, h2, h3, h4 { font-family: var(--f-titulo); font-weight: 700; letter-spacing: -.02em; color: #fff; }
a { color: var(--cian); text-decoration: none; }
a:hover { color: #fff; }
p { color: var(--texto-suave); }
strong { color: var(--texto); }
::selection { background: var(--violeta); color: #fff; }

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

.salto {
  position: absolute; left: 1rem; top: -100px; z-index: 2000;
  background: var(--cian); color: var(--fondo); padding: .6rem 1rem; border-radius: 8px; font-weight: 600;
}
.salto:focus { top: 1rem; }

.texto-degradado {
  background: var(--degradado);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: deslizarDegradado 6s linear infinite;
}

.mono { font-family: var(--f-mono); }

/* Barra de progreso de lectura */
.progreso-scroll {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 1100;
  background: var(--degradado);
  box-shadow: 0 0 12px rgba(34, 211, 238, .7);
}

/* --------------------------------------------------------------------------
   3. BOTONES
   -------------------------------------------------------------------------- */
.btn-r {
  --pad-y: .85rem; --pad-x: 1.4rem;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--f-titulo); font-weight: 600; font-size: .98rem; line-height: 1.1;
  cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, box-shadow .25s ease, background-color .2s, color .2s, border-color .2s;
}
.btn-r:hover { transform: translateY(-2px); }
.btn-r:active { transform: translateY(0); }
.btn-r--sm { --pad-y: .55rem; --pad-x: 1rem; font-size: .88rem; }
.btn-r--ancho { width: 100%; }

.btn-r--neon {
  color: var(--fondo);
  background: var(--degradado); background-size: 200% auto;
  box-shadow: 0 10px 30px -8px rgba(139, 92, 246, .6);
}
.btn-r--neon:hover { color: var(--fondo); background-position: right center; box-shadow: 0 14px 40px -6px rgba(34, 211, 238, .6); }

.btn-r--cian { color: var(--fondo); background: var(--cian); }
.btn-r--cian:hover { color: var(--fondo); box-shadow: var(--brillo-cian); }

.btn-r--linea { color: var(--texto); background: var(--panel); border-color: var(--borde-fuerte); backdrop-filter: blur(8px); }
.btn-r--linea:hover { color: #fff; border-color: var(--cian); box-shadow: var(--brillo-cian); }

.btn-r--whats { color: #04140A; background: var(--whats); }
.btn-r--whats:hover { color: #04140A; box-shadow: 0 10px 34px -6px rgba(37, 211, 102, .65); }

/* --------------------------------------------------------------------------
   4. CABECERA
   -------------------------------------------------------------------------- */
.topbar {
  font-size: var(--t-xs);
  background: rgba(10, 15, 36, .8);
  border-bottom: 1px solid var(--borde);
  padding: .45rem 0;
  color: var(--texto-suave);
}
.topbar .dato { display: inline-flex; align-items: center; gap: .4rem; color: var(--texto-suave); }
.topbar a.dato:hover { color: #fff; }
.topbar i { color: var(--cian); }

.estado { display: inline-flex; align-items: center; gap: .45rem; }
.estado::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--rojo);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, .2);
}
.estado.abierta::before { background: var(--verde); box-shadow: 0 0 0 3px rgba(52, 211, 153, .2); animation: latido 2s infinite; }

.cabecera {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(5, 8, 22, .65);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--borde);
  transition: background .3s, box-shadow .3s;
}
.cabecera > .container { min-height: var(--alto-cabecera); display: flex; flex-direction: column; justify-content: center; }
.cabecera.compacta { background: rgba(5, 8, 22, .9); box-shadow: 0 10px 30px -15px rgba(0, 0, 0, .8); }

.marca { display: inline-flex; align-items: center; gap: .7rem; color: #fff; }
.marca:hover { color: #fff; }
.marca img { filter: drop-shadow(0 0 12px rgba(34, 211, 238, .35)); transition: transform .4s; }
.marca:hover img { transform: rotate(-8deg) scale(1.05); }
.marca__texto { display: flex; flex-direction: column; line-height: 1.05; }
.marca__nombre { font-family: var(--f-titulo); font-weight: 700; font-size: 1.35rem; letter-spacing: .02em; }
.marca__nombre b { background: var(--degradado); -webkit-background-clip: text; background-clip: text; color: transparent; }
.marca__tipo { font-size: var(--t-xxs); color: var(--texto-tenue); letter-spacing: .14em; text-transform: uppercase; }

.nav-r { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-r a {
  position: relative; display: block; padding: .5rem .8rem; border-radius: 999px;
  color: var(--texto-suave); font-weight: 500; font-size: .95rem;
}
.nav-r a:hover { color: #fff; background: var(--panel-2); }
.nav-r a[aria-current="page"] { color: #fff; }
.nav-r a[aria-current="page"]::after {
  content: ''; position: absolute; left: 50%; bottom: 2px; width: 18px; height: 3px; border-radius: 3px;
  transform: translateX(-50%); background: var(--degradado); box-shadow: 0 0 10px var(--cian);
}

.btn-cotizador { position: relative; }
.cuenta {
  display: none; min-width: 1.35rem; height: 1.35rem; padding: 0 .35rem; border-radius: 999px;
  background: var(--rosa); color: #fff; font-size: .72rem; font-weight: 700;
  align-items: center; justify-content: center;
}
.cuenta.visible { display: inline-flex; }

.btn-hamburguesa {
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--borde-fuerte);
  background: var(--panel); color: #fff; font-size: 1.5rem; display: grid; place-items: center;
}

.menu-movil { display: grid; gap: .25rem; padding: .5rem 0 1rem; }
.menu-movil[hidden] { display: none; }
.menu-movil a { padding: .75rem 1rem; border-radius: 12px; color: var(--texto); background: var(--panel); }
.menu-movil a[aria-current="page"] { border: 1px solid var(--cian); }

/* Buscador */
.buscador { position: relative; }
.buscador > i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--texto-tenue); }
.buscador input {
  width: 100%; padding: .7rem 1rem .7rem 2.6rem; border-radius: 999px;
  border: 1px solid var(--borde-fuerte); background: rgba(255, 255, 255, .05); color: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.buscador input::placeholder { color: var(--texto-tenue); }
.buscador input:focus { outline: none; border-color: var(--cian); box-shadow: 0 0 0 4px rgba(34, 211, 238, .15); }
.buscador-grande input { padding: 1rem 1.2rem 1rem 2.9rem; font-size: 1.02rem; }

.sugerencias {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 50;
  background: #0D1330; border: 1px solid var(--borde-fuerte); border-radius: 16px;
  box-shadow: var(--sombra); overflow: hidden;
}
.sugerencias a {
  display: grid; grid-template-columns: 1fr auto; gap: 0 1rem; padding: .7rem 1rem;
  color: var(--texto); border-bottom: 1px solid var(--borde);
}
.sugerencias a:last-child { border-bottom: 0; }
.sugerencias a:hover { background: var(--panel-2); }
.sugerencias .nom { font-weight: 500; }
.sugerencias .sku { grid-column: 1; font-size: var(--t-xs); color: var(--texto-tenue); font-family: var(--f-mono); }
.sugerencias .pre { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--cian); font-weight: 600; }
.sugerencias .vacio { padding: 1rem; margin: 0; font-size: var(--t-sm); }

/* --------------------------------------------------------------------------
   5. PORTADA (HERO)
   -------------------------------------------------------------------------- */
.portada {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(4rem, 8vw, 6.5rem);
}
.portada__lienzo { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.portada__aurora { position: absolute; z-index: -2; border-radius: 50%; filter: blur(80px); opacity: .55; }
.portada__aurora--1 { width: 520px; height: 520px; top: -160px; right: -120px; background: var(--violeta); animation: flotar 14s ease-in-out infinite; }
.portada__aurora--2 { width: 420px; height: 420px; bottom: -200px; left: -120px; background: var(--cian); opacity: .35; animation: flotar 18s ease-in-out infinite reverse; }
.portada__aurora--3 { width: 300px; height: 300px; top: 40%; left: 45%; background: var(--rosa); opacity: .22; animation: flotar 16s ease-in-out infinite; }
.portada__rejilla {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 255, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
}

.chip-anuncio {
  display: inline-flex; align-items: center; gap: .6rem; padding: .35rem .9rem .35rem .4rem; margin-bottom: 1.4rem;
  border-radius: 999px; border: 1px solid var(--borde-fuerte); background: var(--panel);
  font-size: var(--t-sm); color: var(--texto-suave);
}
.chip-anuncio span:first-child {
  padding: .15rem .6rem; border-radius: 999px; background: var(--degradado);
  color: var(--fondo); font-weight: 700; font-size: var(--t-xxs); letter-spacing: .06em; text-transform: uppercase;
}

.portada h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.05; margin-bottom: 1.2rem; }
.rotador { display: inline-block; min-height: 1.1em; }
.rotador::after {
  content: ''; display: inline-block; width: 3px; height: .9em; margin-left: 4px; vertical-align: -.08em;
  background: var(--cian); animation: parpadeo 1s steps(1) infinite;
}
.portada .entrada { font-size: clamp(1.02rem, 1.6vw, 1.18rem); max-width: 56ch; margin-bottom: 1.8rem; }

.sellos { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.sellos li { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--t-sm); color: var(--texto-suave); }
.sellos i { color: var(--verde); }

/* Maqueta flotante: comprobante electrónico */
.maqueta { position: relative; perspective: 1200px; }
.maqueta__ventana {
  position: relative; border-radius: 20px; padding: 1.25rem;
  background: linear-gradient(160deg, rgba(20, 27, 64, .92), rgba(10, 15, 36, .92));
  border: 1px solid var(--borde-fuerte);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .03) inset, 0 0 60px -20px rgba(139, 92, 246, .55);
  transform: rotateY(-12deg) rotateX(6deg);
  transform-style: preserve-3d;
  transition: transform .2s ease-out;
}
.maqueta__barra { display: flex; align-items: center; gap: .4rem; margin-bottom: 1rem; }
.maqueta__barra span { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.maqueta__barra span:nth-child(2) { background: #FEBC2E; }
.maqueta__barra span:nth-child(3) { background: #28C840; }
.maqueta__barra em { margin-left: auto; font-style: normal; font-family: var(--f-mono); font-size: var(--t-xxs); color: var(--texto-tenue); }
.maqueta__cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding-bottom: .9rem; border-bottom: 1px dashed var(--borde-fuerte); }
.maqueta__cab strong { font-family: var(--f-titulo); font-size: 1.05rem; color: #fff; display: block; }
.maqueta__cab small { color: var(--texto-tenue); font-size: var(--t-xxs); }
.maqueta__serie { text-align: right; font-family: var(--f-mono); font-size: var(--t-xs); color: var(--cian); }
.maqueta__filas { margin: .8rem 0; display: grid; gap: .45rem; }
.maqueta__fila { display: flex; justify-content: space-between; font-size: var(--t-sm); color: var(--texto-suave); }
.maqueta__fila b { color: var(--texto); font-weight: 500; }
.maqueta__total {
  display: flex; justify-content: space-between; align-items: center;
  padding: .8rem 1rem; border-radius: 12px; background: var(--degradado-suave); border: 1px solid var(--borde);
}
.maqueta__total span { font-size: var(--t-xs); color: var(--texto-suave); }
.maqueta__total strong { font-family: var(--f-titulo); font-size: 1.4rem; color: #fff; }
.maqueta__estado {
  margin-top: .9rem; display: flex; align-items: center; gap: .55rem; font-size: var(--t-xs);
  color: var(--verde); font-family: var(--f-mono);
}
.maqueta__estado i { font-size: 1rem; }

.flotante-chip {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: .65rem;
  padding: .7rem .95rem; border-radius: 14px;
  background: rgba(13, 19, 48, .92); border: 1px solid var(--borde-fuerte); backdrop-filter: blur(10px);
  box-shadow: var(--sombra); font-size: var(--t-xs); color: var(--texto-suave);
  animation: flotar 6s ease-in-out infinite;
}
.flotante-chip strong { display: block; font-size: var(--t-sm); color: #fff; }
.flotante-chip i {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 1.1rem;
  background: rgba(34, 211, 238, .15); color: var(--cian);
}
.flotante-chip--1 { top: -22px; left: -40px; }
.flotante-chip--2 { top: -34px; right: -28px; animation-delay: -2s; }
.flotante-chip--2 i { background: rgba(236, 72, 153, .15); color: var(--rosa); }
.flotante-chip--3 { bottom: -26px; left: 10%; animation-delay: -4s; }
.flotante-chip--3 i { background: rgba(52, 211, 153, .15); color: var(--verde); }

/* Portada de páginas internas */
.portada-interna { position: relative; overflow: hidden; padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--borde); }
.portada-interna h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: .8rem; }
.portada-interna .entrada { max-width: 62ch; font-size: 1.08rem; margin: 0; }
.migas { display: flex; gap: .5rem; font-size: var(--t-xs); color: var(--texto-tenue); margin-bottom: 1rem; list-style: none; padding: 0; }
.migas a { color: var(--texto-suave); }
.migas li + li::before { content: '/'; margin-right: .5rem; opacity: .5; }

/* --------------------------------------------------------------------------
   6. BLOQUES Y TÍTULOS
   -------------------------------------------------------------------------- */
.bloque { position: relative; padding: clamp(4rem, 8vw, 6.5rem) 0; }
.bloque--panel { background: linear-gradient(180deg, transparent, rgba(16, 23, 58, .45) 20%, rgba(16, 23, 58, .45) 80%, transparent); }

.sobretitulo {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: .8rem;
  font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--cian);
}
.sobretitulo::before { content: ''; width: 24px; height: 2px; background: var(--degradado); }
.titulo-seccion { font-size: clamp(1.85rem, 3.6vw, 2.75rem); line-height: 1.12; margin-bottom: .8rem; }
.bajada { font-size: 1.05rem; max-width: 62ch; }
.centrado { text-align: center; }
.centrado .bajada { margin-inline: auto; }

/* Cinta de marcas */
.cinta { position: relative; overflow: hidden; padding: 1.6rem 0; border-block: 1px solid var(--borde); background: rgba(10, 15, 36, .6); }
.cinta::before, .cinta::after { content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none; }
.cinta::before { left: 0; background: linear-gradient(90deg, var(--fondo), transparent); }
.cinta::after { right: 0; background: linear-gradient(-90deg, var(--fondo), transparent); }
.cinta__pista { display: flex; gap: 3.5rem; width: max-content; animation: cinta 38s linear infinite; }
.cinta:hover .cinta__pista { animation-play-state: paused; }
.cinta__item {
  font-family: var(--f-titulo); font-weight: 700; font-size: 1.45rem; letter-spacing: .04em;
  color: var(--texto-tenue); white-space: nowrap; transition: color .2s;
}
.cinta__item:hover { color: #fff; text-shadow: 0 0 18px rgba(34, 211, 238, .6); }

/* Cifras */
.cifras { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; border-radius: var(--radio); overflow: hidden; background: var(--borde); border: 1px solid var(--borde); }
@media (min-width: 992px) { .cifras { grid-template-columns: repeat(4, 1fr); } }
.cifra { padding: 2rem 1.5rem; background: var(--fondo-2); text-align: center; }
.cifra__num { font-family: var(--f-titulo); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; line-height: 1; }
.cifra__txt { margin: .5rem 0 0; font-size: var(--t-sm); }

/* --------------------------------------------------------------------------
   7. TARJETAS
   -------------------------------------------------------------------------- */
/* Tarjeta con reflejo que sigue al cursor (variables --x, --y desde app.js) */
.tarjeta {
  --x: 50%; --y: 50%;
  position: relative; height: 100%; padding: 1.8rem;
  border-radius: var(--radio); background: var(--panel); border: 1px solid var(--borde);
  overflow: hidden; isolation: isolate;
  transition: transform .3s ease, border-color .3s, box-shadow .3s;
}
.tarjeta::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--x) var(--y), rgba(34, 211, 238, .14), transparent 45%);
}
.tarjeta:hover { transform: translateY(-6px); border-color: var(--borde-fuerte); box-shadow: var(--sombra); }
.tarjeta:hover::before { opacity: 1; }
.tarjeta h3 { font-size: 1.28rem; margin-bottom: .55rem; }
.tarjeta p { margin-bottom: 0; }

.icono {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 1.2rem;
  font-size: 1.6rem; color: #fff; position: relative;
  background: linear-gradient(135deg, rgba(34, 211, 238, .25), rgba(139, 92, 246, .25));
  border: 1px solid rgba(255, 255, 255, .12);
}
.icono--rosa { background: linear-gradient(135deg, rgba(236, 72, 153, .3), rgba(139, 92, 246, .25)); }
.icono--verde { background: linear-gradient(135deg, rgba(52, 211, 153, .3), rgba(34, 211, 238, .2)); }
.icono--ambar { background: linear-gradient(135deg, rgba(251, 191, 36, .3), rgba(236, 72, 153, .2)); }

.tarjeta__lista { list-style: none; padding: 0; margin: 1.1rem 0 0; display: grid; gap: .4rem; font-size: var(--t-sm); color: var(--texto-suave); }
.tarjeta__lista li { display: flex; gap: .5rem; align-items: flex-start; }
.tarjeta__lista i { color: var(--cian); margin-top: .15rem; }
.tarjeta__enlace { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.3rem; font-weight: 600; font-size: var(--t-sm); }
.tarjeta__enlace i { transition: transform .2s; }
.tarjeta:hover .tarjeta__enlace i { transform: translateX(4px); }

/* Tarjeta destacada (borde degradado animado) */
.tarjeta--estrella { border-color: transparent; background: linear-gradient(var(--fondo-2), var(--fondo-2)) padding-box, var(--degradado) border-box; border: 1px solid transparent; }

/* Panel grande de servicio con lista lateral */
.panel-servicio {
  border-radius: 28px; padding: clamp(1.8rem, 4vw, 3rem);
  background: linear-gradient(160deg, rgba(20, 27, 64, .7), rgba(10, 15, 36, .7));
  border: 1px solid var(--borde);
}

/* Bloque de código decorativo */
.codigo {
  border-radius: var(--radio); background: #070B1E; border: 1px solid var(--borde-fuerte);
  font-family: var(--f-mono); font-size: .84rem; line-height: 1.75; overflow: hidden; box-shadow: var(--sombra);
}
.codigo__barra { display: flex; gap: .4rem; padding: .7rem 1rem; border-bottom: 1px solid var(--borde); background: rgba(255, 255, 255, .02); }
.codigo__barra span { width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; }
.codigo__barra span:nth-child(2) { background: #FEBC2E; }
.codigo__barra span:nth-child(3) { background: #28C840; }
.codigo__barra em { margin-left: auto; font-style: normal; color: var(--texto-tenue); font-size: var(--t-xxs); }
.codigo pre { margin: 0; padding: 1.2rem 1.3rem; color: var(--texto-suave); white-space: pre; overflow-x: auto; }
.codigo .k { color: #C084FC; }
.codigo .s { color: #6EE7B7; }
.codigo .f { color: var(--cian); }
.codigo .c { color: var(--texto-tenue); font-style: italic; }
.codigo .n { color: var(--ambar); }

.etiquetas { display: flex; flex-wrap: wrap; gap: .5rem; }
.etiqueta {
  padding: .35rem .8rem; border-radius: 999px; font-size: var(--t-xs); font-family: var(--f-mono);
  border: 1px solid var(--borde-fuerte); background: var(--panel); color: var(--texto-suave);
}

/* Testimonios */
.testimonio { height: 100%; margin: 0; padding: 1.8rem; border-radius: var(--radio); background: var(--panel); border: 1px solid var(--borde); display: flex; flex-direction: column; }
.estrellas { color: var(--ambar); margin-bottom: .8rem; letter-spacing: .1em; }
.testimonio blockquote { flex: 1; margin: 0 0 1.2rem; font-size: 1.02rem; color: var(--texto); }
.testimonio figcaption { display: flex; align-items: center; gap: .8rem; font-size: var(--t-sm); color: var(--texto-tenue); }
.testimonio figcaption strong { display: block; color: #fff; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--degradado); color: var(--fondo); font-family: var(--f-titulo); font-weight: 700;
}

/* Preguntas frecuentes */
.faq { display: grid; gap: .8rem; }
.faq details { border-radius: var(--radio-sm); background: var(--panel); border: 1px solid var(--borde); transition: border-color .2s; }
.faq details[open] { border-color: var(--borde-fuerte); background: var(--panel-2); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 600; color: #fff;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--cian); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.3rem 1.2rem; margin: 0; }

/* Llamado final */
.llamado {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 32px; padding: clamp(2.2rem, 5vw, 4rem);
  background: linear-gradient(135deg, #12185A 0%, #2A1263 50%, #4A0E4E 100%);
  border: 1px solid rgba(255, 255, 255, .12);
}
.llamado::before {
  content: ''; position: absolute; inset: -50%; z-index: -1;
  background: conic-gradient(from 0deg, transparent, rgba(34, 211, 238, .25), transparent 30%);
  animation: girar 10s linear infinite;
}
.llamado::after { content: ''; position: absolute; inset: 1px; z-index: -1; border-radius: 31px; background: linear-gradient(135deg, #0E1347, #1E0E4A 50%, #350C3A); }
.llamado p { color: #C9CEF0; }

/* --------------------------------------------------------------------------
   8. PRODUCTOS
   -------------------------------------------------------------------------- */
.rejilla-productos { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.producto {
  position: relative; display: flex; flex-direction: column; height: 100%;
  border-radius: var(--radio); background: var(--panel); border: 1px solid var(--borde); overflow: hidden;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.producto:hover { transform: translateY(-6px); border-color: var(--borde-fuerte); box-shadow: var(--sombra); }
.producto.en-lista { border-color: rgba(34, 211, 238, .55); box-shadow: 0 0 0 1px rgba(34, 211, 238, .25); }

.producto__lienzo {
  position: relative; aspect-ratio: 4 / 3; cursor: pointer; overflow: hidden;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(34, 211, 238, .22), transparent 55%),
    radial-gradient(circle at 80% 90%, rgba(236, 72, 153, .2), transparent 55%),
    linear-gradient(160deg, #141B44, #0A0F24);
}
.producto__lienzo::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(148, 163, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 255, .07) 1px, transparent 1px);
  background-size: 22px 22px;
}
.producto__icono {
  position: relative; font-size: 4.2rem; line-height: 1;
  background: var(--degradado); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 10px 25px rgba(139, 92, 246, .5));
  transition: transform .4s cubic-bezier(.2, .8, .2, 1.3);
}
.producto:hover .producto__icono { transform: scale(1.12) rotate(-4deg); }
.producto__foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.producto__ojo {
  position: absolute; bottom: .7rem; left: 50%; transform: translate(-50%, 10px); opacity: 0;
  padding: .35rem .8rem; border-radius: 999px; font-size: var(--t-xs); white-space: nowrap;
  background: rgba(5, 8, 22, .85); color: #fff; border: 1px solid var(--borde-fuerte); transition: .25s;
}
.producto:hover .producto__ojo, .producto__lienzo:focus-visible .producto__ojo { opacity: 1; transform: translate(-50%, 0); }

.insignia {
  position: absolute; top: .8rem; left: .8rem; z-index: 2;
  padding: .25rem .65rem; border-radius: 999px; font-size: var(--t-xxs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.insignia--oferta { background: var(--rosa); color: #fff; }
.insignia--nuevo { background: var(--cian); color: var(--fondo); }
.insignia--gamer { background: var(--violeta); color: #fff; }

.producto__cuerpo { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.15rem 1.2rem; }
.producto__meta { display: flex; justify-content: space-between; gap: .5rem; font-size: var(--t-xxs); margin-bottom: .35rem; }
.producto__marca { color: var(--cian); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.producto__sku { color: var(--texto-tenue); font-family: var(--f-mono); }
.producto__nombre { font-family: var(--f-texto); font-size: 1rem; font-weight: 600; line-height: 1.35; margin-bottom: .6rem; cursor: pointer; color: #fff; }
.producto__nombre:hover { color: var(--cian); }

.specs { margin: 0 0 .8rem; display: grid; gap: .2rem; font-size: var(--t-xs); }
.specs div { display: flex; justify-content: space-between; gap: .75rem; }
.specs dt { font-weight: 400; color: var(--texto-tenue); }
.specs dd { margin: 0; color: var(--texto-suave); text-align: right; }

.existencia { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--t-xs); margin-bottom: .8rem; }
.existencia .punto { width: 7px; height: 7px; border-radius: 50%; }
.existencia--si { color: var(--verde); }
.existencia--si .punto { background: var(--verde); box-shadow: 0 0 8px var(--verde); }
.existencia--pedido { color: var(--ambar); }
.existencia--pedido .punto { background: var(--ambar); }

.producto__pie { margin-top: auto; }
.producto__precio { font-family: var(--f-titulo); font-size: 1.45rem; font-weight: 700; color: #fff; line-height: 1; }
.producto__precio del { display: block; font-size: var(--t-xs); font-weight: 400; color: var(--texto-tenue); margin-top: .25rem; font-family: var(--f-texto); }
.producto__unidad { font-size: var(--t-xxs); color: var(--texto-tenue); }

/* --------------------------------------------------------------------------
   9. CATÁLOGO Y FILTROS
   -------------------------------------------------------------------------- */
.filtros { position: sticky; top: calc(var(--alto-cabecera) + 1rem); border-radius: var(--radio); background: var(--panel); border: 1px solid var(--borde); padding: 1.3rem; }
.filtros__grupo + .filtros__grupo { margin-top: 1.3rem; padding-top: 1.3rem; border-top: 1px solid var(--borde); }
.filtros h3 { font-family: var(--f-mono); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--texto-tenue); margin-bottom: .7rem; }
.filtros label { display: flex; align-items: center; gap: .6rem; padding: .3rem 0; font-size: var(--t-sm); color: var(--texto-suave); cursor: pointer; }
.filtros label:hover { color: #fff; }
.filtros input { accent-color: var(--cian); width: 16px; height: 16px; }
.filtros .cuantos { margin-left: auto; font-size: var(--t-xxs); font-family: var(--f-mono); color: var(--texto-tenue); background: var(--panel-2); padding: .05rem .45rem; border-radius: 999px; }

.pildoras { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .4rem; scrollbar-width: none; }
.pildoras::-webkit-scrollbar { display: none; }
.pildora {
  flex: none; display: inline-flex; align-items: center; gap: .45rem; padding: .5rem 1rem; border-radius: 999px;
  border: 1px solid var(--borde-fuerte); background: var(--panel); color: var(--texto-suave); font-size: var(--t-sm); cursor: pointer;
}
.pildora:hover { color: #fff; }
.pildora[aria-pressed="true"] { background: var(--degradado); color: var(--fondo); border-color: transparent; font-weight: 600; }

.barra-catalogo { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-bottom: 1.4rem; }
.barra-catalogo .buscador { flex: 1 1 260px; }
.selector {
  padding: .7rem 2.2rem .7rem 1rem; border-radius: 999px; border: 1px solid var(--borde-fuerte);
  background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='%23A3ACD3'%3E%3Cpath d='M8 11 3 6h10z'/%3E%3C/svg%3E") no-repeat right 1rem center;
  color: var(--texto); appearance: none; font-size: var(--t-sm);
}
.selector option { background: var(--fondo-2); }
.conteo { font-size: var(--t-sm); color: var(--texto-tenue); font-family: var(--f-mono); }

.sin-resultados { grid-column: 1 / -1; text-align: center; padding: 4rem 1rem; border: 1px dashed var(--borde-fuerte); border-radius: var(--radio); color: var(--texto-suave); }
.sin-resultados i { font-size: 2.5rem; color: var(--texto-tenue); }

/* --------------------------------------------------------------------------
   10. COTIZADOR
   -------------------------------------------------------------------------- */
.caja { border-radius: var(--radio); background: var(--panel); border: 1px solid var(--borde); padding: clamp(1.2rem, 3vw, 1.8rem); }
.caja + .caja { margin-top: 1.25rem; }
.caja__titulo { display: flex; align-items: center; gap: .6rem; font-size: 1.15rem; margin-bottom: 1.1rem; }
.caja__titulo .paso {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--degradado); color: var(--fondo); font-size: .85rem; font-weight: 700;
}

.lista-cotizacion__cabeza, .renglon { display: grid; grid-template-columns: 1fr auto 100px 36px; gap: 1rem; align-items: center; }
.lista-cotizacion__cabeza { padding: 0 0 .6rem; border-bottom: 1px solid var(--borde); font-size: var(--t-xxs); font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--texto-tenue); }
.renglon { padding: .9rem 0; border-bottom: 1px solid var(--borde); }
.renglon__prod { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.renglon__ico { width: 46px; height: 46px; border-radius: 12px; flex: none; display: grid; place-items: center; font-size: 1.3rem; color: var(--cian); background: var(--degradado-suave); border: 1px solid var(--borde); }
.renglon__nombre { font-weight: 600; font-size: var(--t-sm); color: #fff; cursor: pointer; }
.renglon__nombre:hover { color: var(--cian); }
.renglon__meta { font-size: var(--t-xxs); color: var(--texto-tenue); font-family: var(--f-mono); }
.renglon__importe { text-align: right; font-weight: 600; color: #fff; }
.renglon__quitar { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--borde); background: transparent; color: var(--texto-tenue); }
.renglon__quitar:hover { color: var(--rojo); border-color: var(--rojo); }
@media (max-width: 575px) {
  .lista-cotizacion__cabeza { display: none; }
  .renglon { grid-template-columns: 1fr auto; }
  .renglon__prod { grid-column: 1 / -1; }
  .renglon__importe { text-align: left; }
  .renglon__quitar { grid-column: 2; grid-row: 2; justify-self: end; }
}

.contador { display: inline-flex; align-items: center; border: 1px solid var(--borde-fuerte); border-radius: 999px; overflow: hidden; }
.contador button { width: 34px; height: 34px; border: 0; background: transparent; color: var(--texto); }
.contador button:hover { background: var(--panel-2); color: var(--cian); }
.contador .cant { min-width: 2.2rem; text-align: center; font-weight: 600; font-family: var(--f-mono); }

.cotizacion-vacia { text-align: center; padding: 2.5rem 1rem; }
.cotizacion-vacia i { font-size: 3rem; color: var(--texto-tenue); display: block; margin-bottom: .6rem; }

.resumen { position: sticky; top: calc(var(--alto-cabecera) + 1rem); }
.resumen dl { margin: 0; display: grid; gap: .55rem; }
.resumen dl div { display: flex; justify-content: space-between; font-size: var(--t-sm); }
.resumen dt { font-weight: 400; color: var(--texto-suave); }
.resumen dd { margin: 0; color: #fff; font-weight: 500; }
.resumen .total { padding-top: .8rem; margin-top: .4rem; border-top: 1px solid var(--borde); }
.resumen .total dd { font-family: var(--f-titulo); font-size: 1.6rem; font-weight: 700; }
.nota-legal { font-size: var(--t-xxs); color: var(--texto-tenue); margin: 1rem 0 0; }

.progreso-envio { margin-top: 1rem; }
.progreso-envio__meta { font-size: var(--t-xs); color: var(--texto-suave); margin-bottom: .45rem; }
.progreso-envio__meta.lograda { color: var(--verde); }
.progreso-pista { height: 8px; border-radius: 99px; background: var(--panel-2); overflow: hidden; }
.progreso-relleno { height: 100%; border-radius: 99px; background: var(--degradado); box-shadow: 0 0 12px var(--cian); transition: width .5s ease; }

/* --------------------------------------------------------------------------
   11. FORMULARIOS
   -------------------------------------------------------------------------- */
.campo { margin-bottom: 1rem; }
.campo label, .campo .rotulo { display: block; margin-bottom: .4rem; font-size: var(--t-sm); font-weight: 500; color: var(--texto); }
.campo .opcional { font-weight: 400; color: var(--texto-tenue); font-size: var(--t-xs); }
.entrada-r {
  width: 100%; padding: .8rem 1rem; border-radius: var(--radio-sm);
  border: 1px solid var(--borde-fuerte); background: rgba(255, 255, 255, .04); color: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.entrada-r::placeholder { color: var(--texto-tenue); }
.entrada-r:focus { outline: none; border-color: var(--cian); box-shadow: 0 0 0 4px rgba(34, 211, 238, .14); }
textarea.entrada-r { min-height: 120px; resize: vertical; }
select.entrada-r { appearance: none; background: rgba(255, 255, 255, .04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='%23A3ACD3'%3E%3Cpath d='M8 11 3 6h10z'/%3E%3C/svg%3E") no-repeat right 1rem center; padding-right: 2.4rem; }
select.entrada-r option { background: var(--fondo-2); }
.entrada-r[aria-invalid="true"] { border-color: var(--rojo); box-shadow: 0 0 0 4px rgba(248, 113, 113, .14); }
.error { margin: .35rem 0 0; font-size: var(--t-xs); color: var(--rojo); }
.ayuda { margin: .35rem 0 0; font-size: var(--t-xs); color: var(--texto-tenue); }

.opciones { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.opcion { position: relative; }
.opcion input { position: absolute; opacity: 0; }
.opcion span {
  display: flex; align-items: center; gap: .6rem; padding: .85rem 1rem; border-radius: var(--radio-sm); cursor: pointer;
  border: 1px solid var(--borde-fuerte); background: var(--panel); font-size: var(--t-sm); color: var(--texto-suave); transition: .2s;
}
.opcion span i { color: var(--cian); font-size: 1.1rem; }
.opcion input:checked + span { border-color: var(--cian); color: #fff; background: rgba(34, 211, 238, .08); box-shadow: 0 0 0 1px var(--cian); }
.opcion input:focus-visible + span { outline: 2px solid var(--cian); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   12. PLANES (facturación)
   -------------------------------------------------------------------------- */
.interruptor { display: inline-flex; padding: .3rem; border-radius: 999px; background: var(--panel); border: 1px solid var(--borde-fuerte); }
.interruptor button {
  border: 0; background: transparent; color: var(--texto-suave); padding: .55rem 1.2rem; border-radius: 999px; font-weight: 600; font-size: var(--t-sm);
}
.interruptor button[aria-pressed="true"] { background: var(--degradado); color: var(--fondo); }
.interruptor small { color: var(--verde); font-weight: 600; }
.interruptor button[aria-pressed="true"] small { color: var(--fondo); }

.plan { display: flex; flex-direction: column; height: 100%; padding: 2rem; border-radius: 24px; background: var(--panel); border: 1px solid var(--borde); position: relative; transition: transform .3s, box-shadow .3s; }
.plan:hover { transform: translateY(-6px); box-shadow: var(--sombra); }
.plan--estrella {
  background: linear-gradient(170deg, #17205A, #0E1236) padding-box, var(--degradado) border-box;
  border: 1.5px solid transparent; box-shadow: 0 30px 70px -30px rgba(139, 92, 246, .7);
}
@media (min-width: 992px) { .plan--estrella { transform: scale(1.04); } .plan--estrella:hover { transform: scale(1.04) translateY(-6px); } }
.plan__cinta { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: .3rem .9rem; border-radius: 999px; background: var(--degradado); color: var(--fondo); font-size: var(--t-xxs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.plan h3 { font-size: 1.3rem; margin-bottom: .3rem; }
.plan__para { font-size: var(--t-sm); margin-bottom: 1.3rem; }
.plan__precio { display: flex; align-items: baseline; gap: .35rem; margin-bottom: .2rem; }
.plan__precio strong { font-family: var(--f-titulo); font-size: 2.8rem; line-height: 1; color: #fff; }
.plan__precio span { color: var(--texto-tenue); font-size: var(--t-sm); }
.plan__nota { font-size: var(--t-xs); color: var(--texto-tenue); margin-bottom: 1.4rem; min-height: 1.3em; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.8rem; display: grid; gap: .6rem; font-size: var(--t-sm); color: var(--texto-suave); flex: 1; }
.plan li { display: flex; gap: .55rem; }
.plan li i { color: var(--verde); }
.plan li.no { opacity: .45; }
.plan li.no i { color: var(--texto-tenue); }

/* Documentos SUNAT */
.doc-sunat { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem; border-radius: var(--radio-sm); background: var(--panel); border: 1px solid var(--borde); height: 100%; }
.doc-sunat .codigo-doc { flex: none; font-family: var(--f-mono); font-weight: 700; font-size: .85rem; padding: .4rem .55rem; border-radius: 8px; background: rgba(34, 211, 238, .12); color: var(--cian); border: 1px solid rgba(34, 211, 238, .3); }
.doc-sunat h3 { font-size: 1rem; margin-bottom: .2rem; font-family: var(--f-texto); font-weight: 600; }
.doc-sunat p { font-size: var(--t-sm); margin: 0; }

/* --------------------------------------------------------------------------
   13. LÍNEA DE TIEMPO (proceso)
   -------------------------------------------------------------------------- */
.proceso { counter-reset: paso; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.proceso__paso { position: relative; padding: 1.5rem; border-radius: var(--radio); background: var(--panel); border: 1px solid var(--borde); }
.proceso__paso::before {
  counter-increment: paso; content: '0' counter(paso);
  display: block; margin-bottom: .8rem; font-family: var(--f-mono); font-size: 1.9rem; font-weight: 700; line-height: 1;
  background: var(--degradado); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.proceso__paso h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.proceso__paso p { font-size: var(--t-sm); margin: 0; }

/* --------------------------------------------------------------------------
   14. PIE
   -------------------------------------------------------------------------- */
.pie-sitio { position: relative; padding: 4.5rem 0 2rem; border-top: 1px solid var(--borde); background: linear-gradient(180deg, transparent, rgba(10, 15, 36, .9)); font-size: var(--t-sm); }
.pie-sitio::before { content: ''; position: absolute; top: -1px; left: 10%; right: 10%; height: 1px; background: var(--degradado); opacity: .7; }
.pie-sitio h3 { font-family: var(--f-mono); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .12em; color: var(--texto-tenue); margin-bottom: 1rem; }
.pie-sitio ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.pie-sitio li { color: var(--texto-suave); }
.pie-sitio li i { color: var(--cian); margin-right: .35rem; }
.pie-sitio a { color: var(--texto-suave); }
.pie-sitio a:hover { color: #fff; }
.redes { display: flex; gap: .5rem; margin-top: 1.2rem; }
.redes a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--borde); color: var(--texto); font-size: 1.05rem; transition: .2s; }
.redes a:hover { color: var(--fondo); background: var(--cian); border-color: var(--cian); transform: translateY(-3px); }
.pagos { display: flex; flex-wrap: wrap; gap: .4rem; }
.pagos span { padding: .25rem .65rem; border-radius: 999px; font-size: var(--t-xxs); border: 1px solid var(--borde); color: var(--texto-suave); }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--borde); font-size: var(--t-xs); color: var(--texto-tenue); }

/* --------------------------------------------------------------------------
   15. FLOTANTES, AVISOS Y MODAL
   -------------------------------------------------------------------------- */
.flotante {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 900;
  display: inline-flex; align-items: center; gap: .6rem; padding: .85rem 1.1rem; border-radius: 999px;
  background: var(--whats); color: #04140A; font-weight: 600; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6);
}
.flotante:hover { color: #04140A; transform: translateY(-3px); }
.flotante i { font-size: 1.5rem; }
.flotante::before { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--whats); animation: onda 2.2s ease-out infinite; }
@media (max-width: 575px) { .flotante__texto { display: none; } .flotante { padding: .9rem; } }

.subir {
  position: fixed; right: 1.4rem; bottom: 5.4rem; z-index: 900; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--borde-fuerte); background: rgba(13, 19, 48, .9); color: #fff; display: grid; place-items: center;
  opacity: 0; pointer-events: none; transform: translateY(10px); transition: .3s;
}
.subir.visible { opacity: 1; pointer-events: auto; transform: none; }
.subir:hover { border-color: var(--cian); color: var(--cian); }

.avisos { position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%); z-index: 1200; display: grid; gap: .5rem; width: min(92vw, 420px); }
.aviso-flotante {
  display: flex; align-items: center; gap: .6rem; padding: .85rem 1.1rem; border-radius: 14px;
  background: #0F1640; border: 1px solid var(--cian); color: #fff; font-size: var(--t-sm); box-shadow: var(--sombra);
  animation: subirAviso .35s ease;
}
.aviso-flotante i { color: var(--verde); font-size: 1.1rem; }

.modal-producto-velo { position: fixed; inset: 0; z-index: 1300; background: rgba(2, 4, 14, .78); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 1rem; }
.modal-producto-velo[hidden] { display: none; }
.modal-producto-caja {
  position: relative; width: min(940px, 100%); max-height: 92vh; overflow-y: auto;
  border-radius: 24px; background: #0B1030; border: 1px solid var(--borde-fuerte); box-shadow: 0 40px 100px -20px #000;
  animation: aparecerModal .3s ease;
}
.modal-producto-cerrar { position: absolute; top: 1rem; right: 1rem; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--borde-fuerte); background: rgba(5, 8, 22, .8); color: #fff; }
.modal-producto-cerrar:hover { border-color: var(--rosa); color: var(--rosa); }
.modal-p-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 768px) { .modal-p-grid { grid-template-columns: 5fr 6fr; } }
.modal-p-foto { position: relative; min-height: 280px; height: 100%; aspect-ratio: auto; cursor: default; }
.modal-p-foto .producto__icono { font-size: 7rem; }
.modal-p-info { padding: clamp(1.4rem, 3vw, 2.2rem); }
.modal-p-header { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: var(--t-xs); margin-bottom: .6rem; }
.modal-p-cat { color: var(--texto-tenue); }
.modal-p-titulo { font-size: 1.6rem; margin-bottom: 1rem; }
.modal-p-precio { font-family: var(--f-titulo); font-size: 2.2rem; font-weight: 700; color: #fff; line-height: 1; }
.modal-p-precio del { font-size: 1rem; color: var(--texto-tenue); margin-left: .6rem; font-weight: 400; }
.modal-p-unidad { display: block; font-size: var(--t-xs); color: var(--texto-tenue); margin: .4rem 0 1rem; }
.modal-p-specs-titulo { font-family: var(--f-mono); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--texto-tenue); margin-bottom: .6rem; }
.modal-p-tabla { width: 100%; font-size: var(--t-sm); border-collapse: collapse; }
.modal-p-tabla th, .modal-p-tabla td { padding: .55rem 0; border-bottom: 1px solid var(--borde); }
.modal-p-tabla th { font-weight: 400; color: var(--texto-tenue); width: 42%; }
.modal-p-tabla td { color: var(--texto); }
.modal-p-acciones { display: grid; gap: .6rem; }
body.modal-abierto { overflow: hidden; }

/* Mapa */
.mapa { border-radius: var(--radio); overflow: hidden; border: 1px solid var(--borde); filter: grayscale(.3) invert(.92) hue-rotate(190deg); }
.mapa iframe { display: block; width: 100%; height: 360px; border: 0; }

/* Aviso de plantilla (privacidad) */
.advertencia { padding: 1rem 1.2rem; border-radius: var(--radio-sm); border: 1px solid var(--ambar); background: rgba(251, 191, 36, .08); color: #FDE68A; font-size: var(--t-sm); }
.texto-legal h2 { font-size: 1.35rem; margin: 2.2rem 0 .8rem; }
.texto-legal p, .texto-legal li { color: var(--texto-suave); }

/* --------------------------------------------------------------------------
   16. ANIMACIONES
   -------------------------------------------------------------------------- */
/* Aparición al hacer scroll: solo si JS está activo (clase .js en <html>) */
.js .revelar { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--retraso, 0s); }
.js .revelar.visible { opacity: 1; transform: none; }

@keyframes deslizarDegradado { to { background-position: 200% center; } }
@keyframes flotar { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(0, -16px); } }
@keyframes parpadeo { 50% { opacity: 0; } }
@keyframes latido { 0%, 100% { box-shadow: 0 0 0 3px rgba(52, 211, 153, .25); } 50% { box-shadow: 0 0 0 6px rgba(52, 211, 153, .05); } }
@keyframes cinta { to { transform: translateX(-50%); } }
@keyframes girar { to { transform: rotate(360deg); } }
@keyframes onda { from { transform: scale(1); opacity: .7; } to { transform: scale(1.35); opacity: 0; } }
@keyframes subirAviso { from { transform: translateY(14px); opacity: 0; } }
@keyframes aparecerModal { from { transform: translateY(20px) scale(.98); opacity: 0; } }
@keyframes bote { 30% { transform: scale(1.25); } 60% { transform: scale(.92); } }
.anim-bote { animation: bote .45s ease; }

@media (max-width: 991px) {
  .maqueta__ventana { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .revelar { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   17. SISTEMAS PROPIOS (portada)
   -------------------------------------------------------------------------- */
.sistema {
  height: 100%; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 22px; background: var(--panel); border: 1px solid var(--borde);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.sistema:hover { transform: translateY(-6px); border-color: var(--borde-fuerte); box-shadow: var(--sombra), 0 0 50px -25px rgba(34, 211, 238, .6); }
.sistema--estrella { background: linear-gradient(var(--fondo-2), var(--fondo-2)) padding-box, var(--degradado) border-box; border: 1px solid transparent; }

.sistema__ventana { display: block; margin: .9rem .9rem 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--borde-fuerte); background: #070B1E; }
.sistema__barra { display: flex; align-items: center; gap: .35rem; padding: .5rem .7rem; border-bottom: 1px solid var(--borde); background: rgba(255, 255, 255, .03); }
.sistema__barra span { width: 9px; height: 9px; border-radius: 50%; background: #FF5F57; flex: none; }
.sistema__barra span:nth-child(2) { background: #FEBC2E; }
.sistema__barra span:nth-child(3) { background: #28C840; }
.sistema__barra em {
  flex: 1; min-width: 0; margin-left: .5rem; padding: .1rem .6rem; border-radius: 999px; background: rgba(255, 255, 255, .05);
  font-style: normal; font-family: var(--f-mono); font-size: var(--t-xxs); color: var(--texto-tenue);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sistema__captura {
  position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(34, 211, 238, .2), transparent 55%), radial-gradient(circle at 80% 90%, rgba(236, 72, 153, .18), transparent 55%), linear-gradient(160deg, #141B44, #0A0F24);
}
.sistema__captura img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s ease; }
.sistema:hover .sistema__captura img { transform: scale(1.05); }
.sistema__captura i {
  font-size: 4.5rem; background: var(--degradado); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 10px 25px rgba(139, 92, 246, .5));
}
.sistema__cuerpo { display: flex; flex-direction: column; flex: 1; padding: 1.2rem 1.4rem 1.4rem; }
.sistema__etiqueta {
  align-self: flex-start; margin-bottom: .6rem; padding: .2rem .7rem; border-radius: 999px;
  font-family: var(--f-mono); font-size: var(--t-xxs); letter-spacing: .06em; text-transform: uppercase;
  color: var(--cian); background: rgba(34, 211, 238, .1); border: 1px solid rgba(34, 211, 238, .3);
}
.sistema h3 { font-size: 1.3rem; margin-bottom: .45rem; }
.sistema p { font-size: var(--t-sm); margin-bottom: 1.2rem; }
.sistema__acciones { margin-top: auto; display: flex; flex-wrap: wrap; gap: .5rem; }
