/* DigitalBiAi · estética «Tron: Legacy» (plantilla SEP v12.0 del titular) con la paleta oficial del Manual de
   Imagen Corporativa: Azul Noche #000F40, Cian Dato #00C2FF, Azul Eléctrico #0057E8, Violeta IA #6B3FF5,
   Magenta Impulso #B026FF. Tipografía: Space Grotesk (titulares) e Inter (texto).
   Accesibilidad (WCAG 2.1 AA): texto claro sobre fondo oscuro con contraste ≥ 7:1, foco visible, y sin animación
   para quien pide «reducir movimiento» en su sistema. */

:root {
  --negro: #030611;
  --noche: #000F40;
  --panel: rgba(6, 14, 40, 0.9);
  --cian: #00C2FF;
  --azul: #0057E8;
  --violeta: #6B3FF5;
  --magenta: #B026FF;
  --linea: rgba(0, 194, 255, 0.28);
  --texto: #E6F4FF;
  --suave: #B4C6DA;
  --degradado: linear-gradient(90deg, var(--cian), var(--azul), var(--violeta), var(--magenta));
  --boton: linear-gradient(90deg, var(--azul), var(--violeta), var(--magenta));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 106.25%; }  /* 17 px */
body {
  margin: 0;
  color: var(--texto);
  background-color: var(--negro);
  background-image:
    linear-gradient(rgba(0, 194, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 194, 255, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(107, 63, 245, 0.22) 0%, transparent 60%),
    radial-gradient(circle at 15% 35%, rgba(0, 194, 255, 0.12) 0%, transparent 45%);
  background-size: 50px 50px, 50px 50px, 100% 100%, 100% 100%;
  background-attachment: fixed;
  animation: rejilla 16s linear infinite;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.65;
}
@keyframes rejilla {
  0% { background-position: 0 0, 0 0, 0 0, 0 0; }
  100% { background-position: 50px 50px, 50px 50px, 0 0, 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { animation: none; }
  * { transition: none !important; }
}

a { color: var(--cian); text-underline-offset: 3px; }
a:hover { color: #7FE0FF; }
:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 3px; box-shadow: 0 0 0 6px rgba(0, 194, 255, 0.55); }
img { max-width: 100%; height: auto; }

.saltar { position: absolute; left: -10000px; top: 0; z-index: 100; background: #FFF; color: var(--noche);
          padding: .7rem 1.2rem; font-weight: 700; }
.saltar:focus { left: 1rem; top: 1rem; }
.solo-lector { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
               white-space: nowrap; }

/* Encabezado */
.cabecera { position: sticky; top: 0; z-index: 50; background: rgba(3, 6, 17, 0.92);
            backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
            border-bottom: 1px solid var(--linea); }
.cabecera .contenedor { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; padding: .6rem 1.2rem; }
.marca img { height: 44px; width: auto; display: block; }
.menu { flex: 1; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; justify-content: flex-end; }
.menu a { color: var(--texto); text-decoration: none; font-weight: 500; font-size: .95rem; padding: .3rem 0;
          border-bottom: 2px solid transparent; }
.menu a:hover { color: var(--cian); border-bottom-color: var(--cian); }

.contenedor { max-width: 72rem; margin: 0 auto; padding: 0 1.2rem; }

/* Titulares */
h1, h2, h3 { font-family: "Space Grotesk", "Inter", sans-serif; line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; color: #FFF; margin: 0 0 1rem;
     text-shadow: 0 0 18px rgba(0, 194, 255, 0.55), 0 0 36px rgba(107, 63, 245, 0.35); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 700; color: #FFF; margin: 0 0 .6rem;
     display: flex; align-items: center; gap: .8rem; text-shadow: 0 0 12px rgba(0, 194, 255, 0.45); }
h2::before { content: ""; flex: none; width: 2.2rem; height: 4px; border-radius: 99px; background: var(--degradado);
             box-shadow: 0 0 12px rgba(0, 194, 255, 0.8); }
h3 { font-size: 1.2rem; font-weight: 600; color: #FFF; margin: 0 0 .5rem; }
.antetitulo { font-family: "Space Grotesk", sans-serif; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
              color: var(--cian); font-size: .85rem; margin: 0 0 .6rem; text-shadow: 0 0 10px rgba(0, 194, 255, 0.6); }
.intro { color: var(--suave); font-size: 1.1rem; max-width: 46rem; margin: 0 0 2rem; }
.regla { height: 3px; width: 8rem; border-radius: 99px; background: var(--degradado); box-shadow: 0 0 14px var(--cian);
         margin: 1.4rem 0 1.8rem; }

/* Secciones y paneles de cristal */
section { padding: 4.5rem 0; scroll-margin-top: 5rem; }
.panel { background: var(--panel); border: 1px solid var(--linea); border-radius: 14px;
         box-shadow: 0 0 30px rgba(0, 194, 255, 0.12), inset 0 0 18px rgba(0, 194, 255, 0.05);
         backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* Héroe */
.heroe { padding: 3.5rem 0 4rem; text-align: center; }
.heroe .logo-grande { width: min(100%, 780px); display: block; margin: 0 auto 1.2rem;
                      filter: drop-shadow(0 0 18px rgba(107, 63, 245, 0.45)); }
/* El logo se usa en PNG/WebP con transparencia (generado desde el JPEG oficial): el neón queda limpio sobre la rejilla */

.heroe p.lema { font-size: 1.25rem; color: var(--texto); max-width: 44rem; margin: 0 auto 2rem; }
.acciones { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

.boton { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 50px;
         padding: .8rem 1.6rem; border-radius: 999px; font-weight: 600; font-size: 1.05rem; text-decoration: none;
         color: #FFF; background: var(--boton); border: 0; cursor: pointer;
         box-shadow: 0 0 22px rgba(107, 63, 245, 0.5); transition: transform .15s, box-shadow .15s; }
.boton:hover { color: #FFF; transform: translateY(-2px); box-shadow: 0 0 30px rgba(176, 38, 255, 0.65); }
.boton.contorno { background: transparent; border: 2px solid var(--cian); color: var(--cian); box-shadow: 0 0 16px rgba(0, 194, 255, 0.3); }
.boton.contorno:hover { color: #FFF; background: rgba(0, 194, 255, 0.12); }

/* Rejillas de tarjetas */
.rejilla { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.rejilla.dos { grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr)); }
@media (max-width: 30rem) { .rejilla.dos { grid-template-columns: 1fr; } }
.tarjeta { padding: 1.5rem; }
.tarjeta p { color: var(--suave); margin: 0 0 .8rem; }
.tarjeta p:last-child { margin-bottom: 0; }
.tarjeta .icono { font-size: 1.6rem; line-height: 1; margin-bottom: .8rem; display: block; }
.servicio dl { margin: 0; }
.servicio dt { font-family: "Space Grotesk", sans-serif; font-weight: 700; color: var(--cian); margin-top: .9rem; font-size: .9rem;
               letter-spacing: .06em; text-transform: uppercase; }
.servicio dd { margin: .2rem 0 0; color: var(--suave); }

/* Insignias de estado */
.insignia { display: inline-block; border-radius: 999px; padding: .15rem .7rem; font-family: "Space Grotesk", sans-serif;
            font-size: .8rem; font-weight: 700; border: 1px solid; vertical-align: middle; white-space: nowrap; }
.insignia.disponible { color: #7FE0FF; border-color: rgba(0, 194, 255, .6); background: rgba(0, 194, 255, .12); }
.insignia.proyecto { color: #7FE0FF; border-color: rgba(0, 194, 255, .6); background: rgba(0, 194, 255, .12); }
/* «Disponible» con el mismo brillo azul eléctrico de los botones flotantes (titular, 10-oct-2026) */
@keyframes insignia-brillo { 0%, 100% { box-shadow: 0 0 0 0 rgba(41, 121, 255, 0); }
  50% { box-shadow: 0 0 11px 3.5px rgb(41, 121, 255); } }
@media (prefers-reduced-motion: no-preference) { .insignia.disponible { animation: insignia-brillo 3.2s ease-in-out infinite; } }
html[data-contraste="alto"] .insignia.disponible { animation: none; }
.insignia.construccion { color: #D9B8FF; border-color: rgba(176, 38, 255, .6); background: rgba(176, 38, 255, .14); }
.insignia.planeado { color: var(--suave); border-color: rgba(180, 198, 218, .45); background: rgba(255, 255, 255, .05); }

/* Listas tipo celda Tron */
.celdas { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.celdas li { border: 1px solid rgba(0, 194, 255, .22); border-radius: 10px; padding: 1rem 1.2rem; background: rgba(5, 12, 30, .85); color: var(--suave); }
.celdas strong { display: block; color: #FFF; font-family: "Space Grotesk", sans-serif; margin-bottom: .2rem; }

/* Tablas */
.tabla-desplazable { overflow-x: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--linea); border-radius: 12px;
        overflow: hidden; background: rgba(5, 12, 30, .92); }
caption { text-align: left; color: var(--suave); padding: 0 0 .6rem; font-size: .95rem; }
th, td { padding: .9rem 1rem; text-align: left; vertical-align: top; }
thead th { font-family: "Space Grotesk", sans-serif; color: var(--cian); background: rgba(0, 194, 255, .1);
           border-bottom: 1px solid var(--cian); }
tbody td, tbody th { border-top: 1px solid rgba(0, 194, 255, .12); color: var(--suave); }
tbody th { color: #FFF; font-weight: 600; }

/* Método */
.pasos { list-style: none; counter-reset: paso; margin: 0; padding: 0; display: grid; gap: .8rem;
         grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.pasos li { counter-increment: paso; padding: 1.2rem; border: 1px solid rgba(0, 194, 255, .25); border-radius: 12px;
            background: rgba(5, 12, 30, .85); }
.pasos li::before { content: counter(paso); display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem;
                    border-radius: 50%; background: var(--boton); color: #FFF; font-weight: 700; margin-bottom: .6rem;
                    box-shadow: 0 0 12px rgba(107, 63, 245, .6); }
.pasos strong { display: block; color: #FFF; font-family: "Space Grotesk", sans-serif; }
.pasos span { color: var(--suave); font-size: .95rem; }
.destacado { border: 1px solid var(--cian); border-left: 6px solid var(--cian); border-radius: 0 12px 12px 0; padding: 1.2rem 1.4rem;
             background: rgba(0, 194, 255, .06); margin-top: 1.5rem; }
.destacado strong { color: var(--cian); }

/* Casos */
.caso h3 a { color: #FFF; text-decoration-color: var(--cian); }
.caso ul { margin: .6rem 0 0; padding-left: 1.2rem; color: var(--suave); }
.caso li { margin-bottom: .3rem; }

/* Vitrina del Sistema Precursor */
.portada-precursor { margin: 0 0 1.8rem; }
.portada-precursor img { display: block; width: 100%; border-radius: 16px; border: 1px solid var(--linea);
                         box-shadow: 0 0 40px rgba(107, 63, 245, .35); }
.componentes { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem;
               grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.componente { padding: 1.4rem; text-align: center; }
.componente img { display: block; height: 140px; width: auto; max-width: 100%; object-fit: contain; margin: 0 auto 1rem;
                  filter: drop-shadow(0 0 10px rgba(0, 194, 255, .25)); }
.componente p { color: var(--suave); margin: 0; }

/* Precios */
.precio { font-family: "Space Grotesk", sans-serif; font-size: 2.4rem; font-weight: 700; color: #FFF; margin: .3rem 0;
          text-shadow: 0 0 14px rgba(176, 38, 255, .6); }
.precio small { display: block; font-size: 1rem; line-height: 1.3; color: var(--suave); font-weight: 500; }

/* Preguntas */
details { border: 1px solid rgba(0, 194, 255, .25); border-radius: 12px; background: rgba(5, 12, 30, .85); margin-bottom: .8rem; }
summary { cursor: pointer; padding: 1rem 1.2rem; font-family: "Space Grotesk", sans-serif; font-weight: 600; color: #FFF;
          list-style-position: inside; }
details[open] summary { border-bottom: 1px solid rgba(0, 194, 255, .2); }
details > div { padding: 1rem 1.2rem; color: var(--suave); }

/* Contacto y formulario de Nexus */
.contacto { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
@media (max-width: 52rem) { .contacto { grid-template-columns: 1fr; } }
.contacto .panel { padding: 1.8rem; }
.nexus-form h2 { margin-bottom: 1rem; }
.nexus-nota { color: var(--suave); font-size: .95rem; }
.nexus-campo { margin: 0 0 1.1rem; }
.nexus-campo label { display: block; font-weight: 600; margin-bottom: .35rem; color: #FFF; }
.nexus-obligatorio { color: #FF8FD8; }
.nexus-form input[type="text"], .nexus-form input[type="email"], .nexus-form input[type="tel"], .nexus-form textarea {
  display: block; width: 100%; font: inherit; color: #FFF; background: #0A1128; border: 2px solid rgba(0, 194, 255, .45);
  border-radius: 8px; padding: .7rem .8rem; }
.nexus-form input:focus-visible, .nexus-form textarea:focus-visible { border-color: var(--cian); }
.nexus-enviar { display: inline-flex; min-height: 50px; padding: .8rem 2rem; border-radius: 999px; border: 0; cursor: pointer;
                font: inherit; font-weight: 700; color: #FFF; background: var(--boton); box-shadow: 0 0 22px rgba(107, 63, 245, .5); }
.nexus-enviar[disabled] { opacity: .7; cursor: progress; }
.nexus-trampa { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.nexus-resultado { border-left: 6px solid; padding: .9rem 1.1rem; margin: 0 0 1.2rem; background: #0A1128; border-radius: 0 10px 10px 0; }
.nexus-resultado:focus { outline: 3px solid #FFF; outline-offset: 2px; }
.nexus-ok { border-color: var(--cian); }
.nexus-error { border-color: #FF8FD8; }
.nexus-titulo { font-weight: 700; margin: 0 0 .3rem; color: #FFF; }
.nexus-resultado ul { margin: 0; padding-left: 1.3rem; color: var(--suave); }
.canales { list-style: none; margin: 0; padding: 0; }
.canales li { margin-bottom: 1rem; }
.canales strong { display: block; color: #FFF; }

/* Pie */
.pie { border-top: 1px solid var(--linea); padding: 2.5rem 0 3rem; color: var(--suave); font-size: .95rem; }
.pie .contenedor { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; }
.pie img { height: 40px; width: auto; }
.pie ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }

/* WhatsApp flotante */
.whatsapp-flotante { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 60; display: inline-flex; align-items: center; gap: .5rem;
                     padding: .75rem 1.2rem; border-radius: 999px; background: #0B6E4F; color: #FFF; font-weight: 700; text-decoration: none;
                     box-shadow: 0 0 18px rgba(0, 0, 0, .5); border: 2px solid #FFF; }
.whatsapp-flotante:hover { color: #FFF; background: #08533B; }

/* Documento legal */
.documento { padding: 2.5rem; margin: 3rem auto; max-width: 52rem; }
.documento h1 { font-size: 2rem; }
.documento h2 { font-size: 1.3rem; margin-top: 2rem; }
.documento p, .documento li { color: var(--texto); }

/* Impresión: fondo blanco y texto oscuro, sin animación ni resplandor */
@media print {
  body { background: #FFF; color: #1E293B; animation: none; }
  .cabecera, .whatsapp-flotante, .acciones, form { display: none; }
  h1, h2, h3, .precio { color: #000F40; text-shadow: none; }
  .panel, .celdas li, .pasos li, details, table { background: #FFF; box-shadow: none; border-color: #CBD5E1; }
  .tarjeta p, .celdas li, td, .intro { color: #1E293B; }
}

/* Celular: menú no fijo y compacto; WhatsApp flotante más pequeño y sin tapar el contenido final */
@media (max-width: 40rem) {
  .cabecera { position: static; }
  .cabecera .contenedor { justify-content: center; }
  .menu ul { justify-content: center; gap: .1rem .9rem; }
  .menu a { font-size: .9rem; }
  .heroe { padding-top: 1.5rem; }
  .whatsapp-flotante { padding: .5rem .9rem; font-size: .9rem; right: .7rem; bottom: .7rem; }
  .pie { padding-bottom: 5rem; }
  section { padding: 3rem 0; }
}

/* Chat del asistente (BiAi-Nexus, nexus-chat.js): colores Tron; el alto contraste del sitio tiene prioridad */
html .nxc { --nxc-enlace: #4DA3FF; --nxc-fondo: #020818; --nxc-texto: #E6F4FF; --nxc-suave: #B4C6DA; --nxc-acento: #00C2FF;
  --nxc-acento-texto: #030611; --nxc-borde: #00C2FF; --nxc-persona: #0A2266; font-family: Inter, system-ui, sans-serif; }

/* Escala de escritorio al 70 %, como se ve con la rueda del mouse (titular, 9-oct-2026). Solo en pantallas de
   computador; los botones flotantes (asistente, WhatsApp, accesibilidad) conservan su tamaño. A+ y A++ siguen
   agrandando la letra. */
@media (min-width: 900px) {
  /* Con la letra base y no con «zoom»: el zoom por CSS le informa mal a NVDA la posición de los elementos. */
  html { --al-base: 74.375%; font-size: 74.375%; }   /* 17 px × 0,7 */
}

/* Página de preguntas: el título de cada pregunta es un h3 dentro del resumen (NVDA navega por títulos). */
summary h3 { display: inline; font-size: 1.05rem; margin: 0; color: #FFF; }
.documento nav ul { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; padding: 0; list-style: none; margin: 0 0 2rem; }
.documento section { margin: 0 0 2rem; padding: 0; }

/* Formulario «Cuéntanos qué necesitas»: lista desplegable de servicios con casillas. */
.nexus-opciones details { margin: 0; }
.nexus-opciones summary { font-family: inherit; font-weight: 600; }
.nexus-opciones fieldset { border: 0; margin: 0; padding: .6rem 1.2rem 1rem; }
.nexus-opciones legend { color: var(--suave); font-size: .95rem; padding: 0; margin-bottom: .4rem; }
.nexus-opciones .nexus-casilla { display: flex; align-items: flex-start; gap: .6rem; margin: .45rem 0; }
.nexus-opciones input[type="checkbox"] { width: 1.25rem; height: 1.25rem; margin-top: .2rem; accent-color: var(--cian); flex: none; }

/* Teléfono con indicativo del país (nexus-formulario.js) */
.nexus-tel { display: flex; gap: .5rem; }
.nexus-tel input { flex: 1 1 auto; min-width: 0; }
.nexus-pais { max-width: 12rem; font: inherit; color: var(--texto); background: #050C1E; border: 1px solid var(--linea);
              border-radius: 10px; padding: .55rem .5rem; }
