/* ==========================================================================
   COTEL EC S.A.S. · Modelo 3: Video y Scroll («Construimos Software»)
   Paleta: Azul petróleo (#1F6F8B), Tinta (#F5F3EE), Fondo Noche (#0B131E)
   Fuentes locales: Inter, Inter Tight, JetBrains Mono
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-500-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter-tight-700-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/inter-tight-800-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/jetbrains-mono-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/jetbrains-mono-500-normal.woff2') format('woff2');
}

/* Variables globales */
:root {
  --bg-noche: #0B131E;
  --bg-superficie: #111E2E;
  --bg-card: rgba(17, 30, 46, 0.75);
  --petroleo: #1F6F8B;
  --petroleo-oscuro: #14495C;
  --petroleo-luz: #2EC4B6;
  --petroleo-acento: #38A3A5;
  --tinta: #F5F3EE;
  --tinta-tenue: #94A3B8;
  --tinta-suave: #64748B;
  --borde-sutil: rgba(31, 111, 139, 0.28);
  --borde-luz: rgba(46, 196, 182, 0.5);
  --fuente-titulos: 'Inter Tight', -apple-system, sans-serif;
  --fuente-cuerpo: 'Inter', -apple-system, sans-serif;
  --fuente-mono: 'JetBrains Mono', monospace;
  --header-h: 88px;
}

/* Reset y caja */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--bg-noche);
  color: var(--tinta);
  font-family: var(--fuente-cuerpo);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-noche);
  color: var(--tinta);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Enlaces y botones */
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img, video, canvas {
  display: block;
  max-width: 100%;
}

/* View Transitions nativas */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: vt-barrido-salida 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

::view-transition-new(root) {
  animation: vt-barrido-entrada 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes vt-barrido-salida {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0.3; transform: translateY(-16px); }
}

@keyframes vt-barrido-entrada {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cortina de terminal GSAP (respaldo y animación visual) */
.cortina-terminal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #070D15;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}

.cortina-terminal.activa {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cortina-lineas {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(11, 19, 30, 0) 50%, rgba(0, 0, 0, 0.4) 50%),
              linear-gradient(90deg, rgba(31, 111, 139, 0.05), rgba(46, 196, 182, 0.02), rgba(31, 111, 139, 0.05));
  background-size: 100% 4px, 6px 100%;
  pointer-events: none;
}

.cortina-contenido {
  position: relative;
  z-index: 2;
  font-family: var(--fuente-mono);
  font-size: 0.95rem;
  color: var(--petroleo-luz);
  background: rgba(17, 30, 46, 0.85);
  border: 1px solid var(--borde-luz);
  padding: 1.5rem 2rem;
  border-radius: 6px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cortina-prompt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cortina-prompt span.comando {
  color: #FFFFFF;
}

.cortina-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background-color: var(--petroleo-luz);
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ==========================================================================
   Encabezado compacto: Barra de aviso y Selector de Modelos
   ========================================================================== */
.aviso-demo {
  position: relative;
  z-index: 100;
  background-color: #070D15;
  border-bottom: 1px solid rgba(31, 111, 139, 0.35);
  padding: 0.45rem 1.25rem;
  font-family: var(--fuente-mono);
  font-size: 0.74rem;
  color: var(--tinta-tenue);
}

.aviso-demo__in {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.aviso-demo__texto {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.aviso-demo__dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--petroleo-luz);
  box-shadow: 0 0 8px var(--petroleo-luz);
  flex-shrink: 0;
}
  box-shadow: 0 0 8px var(--petroleo-luz);
}

.demo-bar-modelos {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.demo-bar-modelos__label {
  color: var(--tinta-suave);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.7rem;
}

.demo-bar-modelos__enlace {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  border: 1px solid rgba(31, 111, 139, 0.4);
  color: var(--tinta-tenue);
  background: rgba(17, 30, 46, 0.4);
  font-size: 0.72rem;
  transition: all 0.2s ease;
}

.demo-bar-modelos__enlace:hover {
  color: #FFFFFF;
  border-color: var(--petroleo-luz);
  background: rgba(31, 111, 139, 0.25);
}

.demo-bar-modelos__enlace.actual {
  color: #FFFFFF;
  border-color: var(--petroleo-luz);
  background: var(--petroleo-oscuro);
  font-weight: 500;
  box-shadow: 0 0 10px rgba(46, 196, 182, 0.2);
}

/* ==========================================================================
   Header principal de navegación
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 90;
  background-color: rgba(11, 19, 30, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--borde-sutil);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.header__in {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--tinta);
}

.logo svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.logo-txt {
  font-family: var(--fuente-titulos);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.logo-txt small {
  font-family: var(--fuente-mono);
  font-size: 0.65rem;
  color: var(--petroleo-luz);
  border: 1px solid var(--borde-sutil);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.menu a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--tinta-tenue);
  position: relative;
  padding: 0.25rem 0;
}

.menu a:hover {
  color: #FFFFFF;
}

.menu a.actual {
  color: var(--petroleo-luz);
}

.menu a.actual::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--petroleo-luz);
  border-radius: 1px;
}

.header-acciones {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  border-radius: 5px;
  font-family: var(--fuente-mono);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.25s ease;
}

.btn-petroleo {
  background-color: var(--petroleo);
  color: #FFFFFF;
  border: 1px solid var(--petroleo);
  box-shadow: 0 4px 14px rgba(31, 111, 139, 0.3);
}

.btn-petroleo:hover {
  background-color: #2481A2;
  border-color: var(--petroleo-luz);
  box-shadow: 0 6px 20px rgba(46, 196, 182, 0.35);
  transform: translateY(-1px);
}

.btn-linea {
  background-color: transparent;
  color: var(--tinta);
  border: 1px solid var(--borde-sutil);
}

.btn-linea:hover {
  border-color: var(--petroleo-luz);
  color: #FFFFFF;
  background-color: rgba(31, 111, 139, 0.15);
}

.hamb {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: 4px;
  border: 1px solid var(--borde-sutil);
}

.hamb span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--tinta);
  transition: transform 0.25s ease, opacity 0.25s;
}

.hamb[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.hamb[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.menu-movil {
  display: none;
  background-color: var(--bg-superficie);
  border-top: 1px solid var(--borde-sutil);
  padding: 1rem 1.5rem;
  flex-direction: column;
  gap: 1rem;
}

.menu-movil.abierto {
  display: flex;
}

.menu-movil a {
  font-size: 1rem;
  color: var(--tinta-tenue);
  padding: 0.4rem 0;
}

.menu-movil a.actual {
  color: var(--petroleo-luz);
  font-weight: 500;
}

/* ==========================================================================
   Hero cinematográfico con código en pantalla
   ========================================================================== */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4.5rem 1.5rem 5.5rem;
}

.video-fondo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.video-fondo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.video-fondo .poster-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

/* Degradado focal: sin velo oscuro global; el video mantiene su luz y color.
   Degradado sutil detrás del texto para contraste y legibilidad óptima. */
.hero-degradado {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(7, 13, 21, 0.4) 0%, transparent 18%, transparent 75%, rgba(7, 13, 21, 0.85) 100%);
  pointer-events: none;
}

.hero-in {
  position: relative;
  z-index: 3;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  padding: 2.25rem 2rem;
  border-radius: 20px;
  background: radial-gradient(ellipse at center, rgba(7, 13, 21, 0.68) 0%, rgba(7, 13, 21, 0.32) 60%, transparent 100%);
}

/* Terminal prompt en monoespaciada */
.terminal-prompt {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--fuente-mono);
  font-size: 0.82rem;
  color: var(--tinta-tenue);
  background: rgba(11, 19, 30, 0.85);
  border: 1px solid var(--borde-sutil);
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
}

.terminal-prompt .tag-nodo {
  color: var(--petroleo-luz);
}

.terminal-prompt .tag-cmd {
  color: var(--tinta);
}

.hero-titulo {
  font-family: var(--fuente-titulos);
  font-size: clamp(2.3rem, 5.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.85);
}

.hero-titulo em {
  font-style: normal;
  color: transparent;
  background: linear-gradient(135deg, #2EC4B6 0%, #1F6F8B 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #E2E8F0;
  max-width: 720px;
  line-height: 1.55;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.85);
}

.hero-acciones {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

.scroll-indicador {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--fuente-mono);
  font-size: 0.72rem;
  color: var(--tinta-suave);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ==========================================================================
   Secuencia Scroll en Canvas: «Recorrido por pasillo de servidores»
   ========================================================================== */
.scroll-seccion {
  position: relative;
  background-color: #070D15;
}

.scroll-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Degradado sobre el canvas: mantiene color y luz, sombra solo en paneles */
.scroll-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(7, 13, 21, 0.85) 0%, rgba(7, 13, 21, 0.5) 45%, rgba(7, 13, 21, 0.15) 100%),
              linear-gradient(to bottom, rgba(7, 13, 21, 0.7) 0%, transparent 20%, transparent 80%, rgba(7, 13, 21, 0.9) 100%);
  pointer-events: none;
}

.scroll-interfaz {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1440px;
  padding: 2rem 2.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.scroll-cabecera {
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: auto;
}

.scroll-hud-tag {
  font-family: var(--fuente-mono);
  font-size: 0.78rem;
  color: var(--petroleo-luz);
  background: rgba(11, 19, 30, 0.85);
  border: 1px solid var(--borde-sutil);
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.scroll-frame-counter {
  font-family: var(--fuente-mono);
  font-size: 0.75rem;
  color: var(--tinta-suave);
}

.scroll-frame-counter strong {
  color: var(--petroleo-luz);
}

/* Paneles narrativos de los 4 pasos */
.scroll-paneles {
  max-width: 540px;
  pointer-events: auto;
}

.paso-card {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--borde-sutil);
  border-radius: 8px;
  padding: 2rem 2.25rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.paso-card.activo {
  display: block;
  animation: fadeInPaso 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInPaso {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.paso-numero {
  font-family: var(--fuente-mono);
  font-size: 0.8rem;
  color: var(--petroleo-luz);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.paso-comando {
  color: var(--tinta-suave);
}

.paso-titulo {
  font-family: var(--fuente-titulos);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.85rem;
  color: #FFFFFF;
}

.paso-desc {
  font-size: 0.98rem;
  color: var(--tinta-tenue);
  line-height: 1.6;
}

.paso-nota-provisional {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(31, 111, 139, 0.35);
  font-family: var(--fuente-mono);
  font-size: 0.74rem;
  color: var(--tinta-suave);
  line-height: 1.45;
}

/* Riel de progreso de capítulos */
.scroll-riel {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  pointer-events: auto;
}

.riel-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--fuente-mono);
  font-size: 0.78rem;
  color: var(--tinta-suave);
  cursor: pointer;
  padding: 0.4rem 0.2rem;
  transition: color 0.2s ease;
}

.riel-item:hover {
  color: var(--tinta);
}

.riel-item.activo {
  color: var(--petroleo-luz);
  font-weight: 500;
}

.riel-linea {
  width: 24px;
  height: 2px;
  background-color: var(--borde-sutil);
  transition: all 0.25s ease;
}

.riel-item.activo .riel-linea {
  width: 42px;
  background-color: var(--petroleo-luz);
}

/* ==========================================================================
   Secciones de Contenido: Equipo, Infraestructura y Datos
   ========================================================================== */
.seccion {
  padding: 6.5rem 1.5rem;
  position: relative;
}

.seccion-in {
  max-width: 1280px;
  margin: 0 auto;
}

.seccion-cab {
  margin-bottom: 3.5rem;
}

.eyebrow {
  font-family: var(--fuente-mono);
  font-size: 0.8rem;
  color: var(--petroleo-luz);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.eyebrow::before {
  content: '//';
  color: var(--petroleo);
}

.titulo-xl {
  font-family: var(--fuente-titulos);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.titulo-xl em {
  font-style: normal;
  color: transparent;
  background: linear-gradient(135deg, #2EC4B6 0%, #1F6F8B 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Grid de Equipo con video interactivo */
.equipo-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.equipo-video-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--borde-sutil);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  background-color: #070D15;
}

.equipo-video-wrap video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video-hud-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-family: var(--fuente-mono);
  font-size: 0.7rem;
  color: var(--petroleo-luz);
  background: rgba(11, 19, 30, 0.85);
  border: 1px solid var(--borde-sutil);
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  pointer-events: none;
}

.rec-dot {
  width: 6px;
  height: 6px;
  background-color: #EF4444;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.equipo-texto {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.lead-texto {
  font-size: 1.15rem;
  color: var(--tinta);
  line-height: 1.6;
}

.cuerpo-texto {
  font-size: 0.98rem;
  color: var(--tinta-tenue);
  line-height: 1.65;
}

/* Tarjetas de capacidades / principios */
.capacidades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.cap-card {
  background: var(--bg-card);
  border: 1px solid var(--borde-sutil);
  border-radius: 6px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.cap-card:hover {
  transform: translateY(-3px);
  border-color: var(--borde-luz);
}

.cap-tag {
  font-family: var(--fuente-mono);
  font-size: 0.72rem;
  color: var(--petroleo-luz);
}

.cap-titulo {
  font-family: var(--fuente-titulos);
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
}

.cap-desc {
  font-size: 0.9rem;
  color: var(--tinta-tenue);
  line-height: 1.6;
}

/* ==========================================================================
   Terminal interactiva de demostración
   ========================================================================== */
.terminal-consola {
  background: #070D15;
  border: 1px solid var(--borde-sutil);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6);
  margin-top: 2.5rem;
  font-family: var(--fuente-mono);
}

.terminal-barra {
  background: #0E1A2B;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--borde-sutil);
}

.terminal-botones {
  display: flex;
  gap: 6px;
}

.terminal-botones span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.terminal-botones span:nth-child(1) { background: #EF4444; }
.terminal-botones span:nth-child(2) { background: #F59E0B; }
.terminal-botones span:nth-child(3) { background: #10B981; }

.terminal-titulo {
  font-size: 0.76rem;
  color: var(--tinta-tenue);
}

.terminal-cuerpo {
  padding: 1.5rem;
  color: var(--tinta);
  font-size: 0.85rem;
  line-height: 1.7;
}

.term-linea {
  margin-bottom: 0.4rem;
}

.term-linea .prompt {
  color: var(--petroleo-luz);
}

.term-linea .salida-ok {
  color: #10B981;
}

.term-linea .salida-info {
  color: var(--tinta-tenue);
}

/* ==========================================================================
   Datos Verificables
   ========================================================================== */
.datos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.dato-item {
  background: var(--bg-card);
  border: 1px solid var(--borde-sutil);
  border-radius: 6px;
  padding: 1.5rem;
}

.dato-item dt {
  font-family: var(--fuente-mono);
  font-size: 0.75rem;
  color: var(--petroleo-luz);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.dato-item dd {
  font-size: 1.15rem;
  font-weight: 600;
  color: #FFFFFF;
}

/* ==========================================================================
   Formulario de demostración accesible
   ========================================================================== */
.form-wrap {
  background: var(--bg-superficie);
  border: 1px solid var(--borde-sutil);
  border-radius: 8px;
  padding: 2.5rem;
  max-width: 680px;
  margin: 0 auto;
}

.form-grupo {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-label {
  font-family: var(--fuente-mono);
  font-size: 0.8rem;
  color: var(--tinta);
}

.form-input, .form-textarea {
  background: #070D15;
  border: 1px solid var(--borde-sutil);
  border-radius: 5px;
  padding: 0.75rem 1rem;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--petroleo-luz);
  box-shadow: 0 0 0 3px rgba(46, 196, 182, 0.25);
}

.form-input[aria-invalid="true"], .form-textarea[aria-invalid="true"] {
  border-color: #EF4444;
}

.form-error {
  font-family: var(--fuente-mono);
  font-size: 0.74rem;
  color: #EF4444;
  display: none;
}

.form-error.visible {
  display: block;
}

.form-alerta {
  padding: 1rem;
  border-radius: 5px;
  font-family: var(--fuente-mono);
  font-size: 0.84rem;
  margin-bottom: 1.5rem;
  display: none;
}

.form-alerta.exito {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10B981;
  color: #6EE7B7;
}

/* ==========================================================================
   Pie de página
   ========================================================================== */
.footer {
  background-color: #070D15;
  border-top: 1px solid var(--borde-sutil);
  padding: 4.5rem 1.5rem 2.5rem;
}

.footer-in {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand p {
  color: var(--tinta-tenue);
  font-size: 0.9rem;
  max-width: 380px;
  margin-top: 0.75rem;
}

.footer-col h4 {
  font-family: var(--fuente-mono);
  font-size: 0.8rem;
  color: var(--petroleo-luz);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  color: var(--tinta-tenue);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: #FFFFFF;
}

.footer-modelos-box {
  background: var(--bg-superficie);
  border: 1px solid var(--borde-sutil);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-modelos-label {
  font-family: var(--fuente-mono);
  font-size: 0.8rem;
  color: var(--tinta-tenue);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.75rem;
  font-family: var(--fuente-mono);
  font-size: 0.75rem;
  color: var(--tinta-suave);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   Responsive (1440, 1280, 768, 390px)
   ========================================================================== */
@media (max-width: 1100px) {
  .menu {
    display: none;
  }
  .hamb {
    display: flex;
  }
  .equipo-grid {
    grid-template-columns: 1fr;
  }
  .contacto-layout {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 74px;
  }
  .aviso-demo__in {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    white-space: normal;
  }
  .aviso-demo__texto {
    white-space: normal;
    font-size: 0.72rem;
    line-height: 1.4;
  }
  .demo-bar-modelos {
    overflow-x: auto;
    width: 100%;
    padding-bottom: 0.25rem;
    flex-wrap: nowrap;
  }
  .scroll-interfaz {
    padding: 1.5rem 1rem;
  }
  .scroll-riel {
    display: none;
  }
  .scroll-paneles {
    max-width: 100%;
  }
  .paso-card {
    padding: 1.5rem;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .form-wrap {
    padding: 1.5rem;
  }
}

/* Soporte para preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
  .cortina-terminal {
    display: none !important;
  }
  .scroll-indicador {
    animation: none !important;
  }
  .rec-dot {
    animation: none !important;
  }
}
