/* ==========================================================================
   IMPERIAL ACADEMY INVIERTE EN TI · Estilos Inmersivos 3D
   SimCodec · Quito, Ecuador · WebGL2 Three.js Experience
   ========================================================================== */

/* 1. Fuentes Tipográficas Locales */
@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo-latin-800-normal.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* 2. Variables y Sistema de Diseño */
:root {
  --bg-deep: #050813;
  --bg-navy: #081024;
  --bg-space: #0c152e;
  --bg-card: rgba(8, 16, 36, 0.76);
  --bg-card-hover: rgba(12, 24, 52, 0.88);
  --bg-glass-pill: rgba(14, 26, 56, 0.65);

  --gold-primary: #D4AF37;
  --gold-bright: #F5C953;
  --gold-light: #F3E5AB;
  --gold-dark: #996515;
  --gold-bronze: #8A5A12;
  --gold-border: rgba(212, 175, 55, 0.28);
  --gold-border-bright: rgba(245, 201, 83, 0.55);
  --gold-glow: rgba(212, 175, 55, 0.16);

  --text-primary: #FFFFFF;
  --text-secondary: #D4DCE8;
  --text-muted: #8E99AF;

  --font-display: 'Archivo', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --trans-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  --header-height: 84px;
}

/* 3. Reseteo y Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 10%, #0d1a38 0%, var(--bg-deep) 65%);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Enlace de accesibilidad para teclado */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--gold-primary);
  color: #060B18;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  z-index: 9999;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top var(--trans-fast);
}
.skip-link:focus {
  top: 1rem;
}

/* 4. Sprite SVG oculto */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.ico {
  width: 1.15em;
  height: 1.15em;
  display: inline-block;
  vertical-align: -0.18em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 5. Contenedor del Lienzo WebGL 3D */
#canvas-3d-wrap {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

body.escena-lista #canvas-3d-wrap {
  opacity: 1;
}

#canvas-3d {
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
}

/* Respaldo estático cuando no hay WebGL2 */
.webgl-fallback {
  position: absolute;
  inset: 0;
  display: none;
  background: radial-gradient(circle at 60% 40%, rgba(212, 175, 55, 0.12) 0%, rgba(6, 11, 24, 0.95) 70%);
  pointer-events: none;
}
.no-webgl .webgl-fallback {
  display: block;
}

/* Efecto de viñeta y grano tenue */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: radial-gradient(rgba(212, 175, 55, 0.03) 1px, transparent 0);
  background-size: 24px 24px;
  opacity: 0.6;
}

/* Capa de contenido HTML encima de WebGL */
.content-layer {
  position: relative;
  z-index: 5;
}

/* 6. Barra Superior y Encabezado */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(5, 8, 19, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
  transition: background var(--trans-normal), border-color var(--trans-normal);
}

/* Aviso de demostración SimCodec + Selector de modelos en UNA sola fila en escritorio */
.demo-bar {
  background: rgba(8, 16, 36, 0.92);
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
  padding: 0.35rem 1.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.demo-bar__inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  white-space: nowrap;
}

.demo-bar__info {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-bar__badge {
  color: var(--gold-primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.demo-bar__note {
  color: #E2E8F0;
  font-style: italic;
  opacity: 0.9;
}

.demo-bar__models {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.demo-bar__models-label {
  color: var(--gold-light);
  font-weight: 600;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 0.2rem;
}

.model-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--trans-fast);
}

.model-pill:hover {
  color: var(--text-primary);
  border-color: var(--gold-border);
  background: rgba(212, 175, 55, 0.1);
}

.model-pill.actual {
  color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--gold-primary);
}

/* Barra de navegación principal */
.nav-wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.15;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.brand-tagline {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-primary);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav__link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--trans-fast);
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold-primary);
  transition: width var(--trans-normal);
}

.nav__link:hover {
  color: var(--text-primary);
}

.nav__link:hover::after,
.nav__link.actual::after {
  width: 100%;
}

.nav__link.actual {
  color: var(--gold-bright);
}

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

/* Botones con estilo corporativo */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--trans-normal);
  border: 1px solid transparent;
  line-height: 1.2;
}

.btn--gold {
  background: linear-gradient(135deg, #F5C953 0%, #D4AF37 50%, #996515 100%);
  color: #060B18;
  border-color: rgba(245, 201, 83, 0.4);
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.25);
}

.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.42);
  filter: brightness(1.06);
}

.btn--glass {
  background: rgba(14, 26, 56, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-primary);
  border-color: var(--gold-border);
}

.btn--glass:hover {
  background: rgba(20, 36, 76, 0.85);
  border-color: var(--gold-bright);
  color: var(--gold-light);
  transform: translateY(-2px);
}

/* Botón toggle para menú móvil */
.nav__toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* 7. Menú Desplegable Móvil */
.mobile-drawer {
  position: fixed;
  inset: 0;
  top: 96px;
  background: rgba(6, 11, 24, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  transform: translateX(100%);
  transition: transform var(--trans-normal);
  border-top: 1px solid var(--gold-border);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.mobile-menu-list a {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text-primary);
  text-decoration: none;
  display: block;
}

.mobile-menu-list a.actual {
  color: var(--gold-bright);
}

.mobile-models-box {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-models-box .label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.mobile-models-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

/* 8. Estructura General y Envoltorios */
.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold-bright);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.6;
}

/* 9. Paneles Flotantes de Cristal (Active Theory Glassmorphism) */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color var(--trans-normal), box-shadow var(--trans-normal), transform var(--trans-normal);
}

.glass-panel:hover {
  border-color: var(--gold-border-bright);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(245, 201, 83, 0.2);
}

/* 10. Sección Hero Inmersiva */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 4rem;
  position: relative;
}

.hero__inner {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
}

.hero__copy {
  max-width: 640px;
}

.hero__kicker-box {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--bg-glass-pill);
  border: 1px solid var(--gold-border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6.2vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin-bottom: 1.75rem;
  text-transform: uppercase;
}

.hero__title em {
  font-style: normal;
  display: block;
  background: linear-gradient(135deg, #FFFFFF 0%, #F5C953 50%, #D4AF37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__lede {
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 2.25rem;
  max-width: 520px;
}

.hero__cta-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Widget interactivo de exploración 3D en el hero */
.hero__interactive-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 380px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gold-border);
  background: radial-gradient(circle at 50% 30%, rgba(212, 175, 55, 0.08) 0%, rgba(8, 16, 36, 0.5) 80%);
  padding: 2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}

.interactive-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--gold-bright);
  background: rgba(6, 11, 24, 0.85);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--gold-border);
}

.interactive-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--gold-bright);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold-bright);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-card__hint {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  line-height: 1.4;
}

.hero-card__step-counter {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--gold-primary);
  line-height: 1;
}

/* Indicador de scroll */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}

.scroll-indicator__line {
  width: 1px;
  height: 38px;
  background: linear-gradient(to bottom, var(--gold-primary), transparent);
  animation: scroll-bob 2.2s infinite ease-in-out;
}

@keyframes scroll-bob {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.1% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* 11. Capítulos de Scrollytelling (Escalera Ascendente) */
.story-track {
  position: relative;
  padding: 4rem 0 8rem;
}

.story-chapter {
  min-height: 80vh;
  display: flex;
  align-items: center;
  margin-bottom: 6rem;
}

.story-chapter:nth-child(even) {
  justify-content: flex-end;
}

.story-card {
  max-width: 480px;
  position: relative;
}

.story-card__step {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold-primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.story-card__step::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold-border);
}

.story-card__title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
  line-height: 1.2;
}

.story-card__body {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

/* 12. Sección Empresa y Datos Verificados */
.empresa-section {
  padding: 6rem 0;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  background: rgba(5, 8, 19, 0.65);
}

.empresa-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4rem;
  align-items: start;
}

.data-table {
  display: grid;
  gap: 1rem;
}

.data-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: baseline;
  padding: 0.85rem 1.25rem;
  background: rgba(14, 26, 56, 0.45);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.data-row dt {
  color: var(--gold-light);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.data-row dd {
  color: var(--text-primary);
}

/* 13. Enfoque y Pasos */
.enfoque-section {
  padding: 6rem 0 8rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.step-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--gold-primary);
  line-height: 1;
  margin-bottom: 1.25rem;
  opacity: 0.85;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* 14. Contacto y Formulario Demostrativo */
.contacto-section {
  padding: 6rem 0 8rem;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
}

.contacto-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contacto-card {
  padding: 1.5rem;
  background: rgba(14, 26, 56, 0.5);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
}

.contacto-card h4 {
  color: var(--gold-light);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-control {
  background: rgba(6, 12, 26, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--trans-fast), box-shadow var(--trans-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.form-feedback {
  font-size: 0.88rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
  display: none;
  line-height: 1.5;
}

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

/* 15. Pie de Página */
.footer {
  border-top: 1px solid rgba(212, 175, 55, 0.18);
  background: #04060E;
  padding: 4rem 0 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text-primary);
  text-transform: uppercase;
}

.footer-brand__tagline {
  color: var(--gold-primary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--trans-fast);
}

.footer-nav a:hover {
  color: var(--gold-bright);
}

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-selector__label {
  color: var(--gold-light);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* 16. Transición entre Páginas: Cortina de Vidrio Dorado */
.gold-curtain-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gold-curtain-backdrop {
  position: absolute;
  inset: 0;
  background: #050813;
  opacity: 0;
}

.gold-curtain-slab {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(245, 201, 83, 0.22) 0%, rgba(212, 175, 55, 0.12) 20%, #060B18 100%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 2px solid var(--gold-bright);
  box-shadow: 0 -20px 60px rgba(212, 175, 55, 0.35);
}

.gold-curtain-badge {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  transform: scale(0.9);
}

.curtain-monogram {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gold-bright);
  background: rgba(14, 26, 56, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-bright);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.35);
}

.curtain-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* 17. Responsive Media Queries */
@media (max-width: 1080px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .empresa-grid,
  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 960px) {
  .nav__menu,
  .nav__actions .btn {
    display: none;
  }
  .nav__toggle {
    display: inline-flex;
  }
  .demo-bar__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    white-space: normal;
  }
  .demo-bar__models {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 120px;
  }
  .hero {
    padding-top: calc(var(--header-height) + 1.25rem);
    padding-bottom: 3rem;
  }
  .hero__title {
    font-size: 2.6rem;
    text-shadow: 0 4px 24px rgba(5, 8, 19, 0.95);
  }
  .hero__cta-group {
    flex-direction: column;
    align-items: stretch;
  }
  .data-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .glass-panel {
    padding: 1.5rem;
  }
}

/* 18. Reducción de Movimiento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .gold-curtain-overlay {
    display: none !important;
  }
}
