/* ==========================================================================
   MUDEPA · Multimodal del Pacífico C.A.
   Modelo 2 · Inmersivo 3D · Estilos Generales y Arquitectura Visual
   SimCodec · Guayaquil, Ecuador
   ========================================================================== */

/* 1. Fuentes tipográficas locales WOFF2 */
@font-face {
  font-family: "Barlow Condensed";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("fonts/barlow-condensed-400.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("fonts/barlow-condensed-500.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("fonts/barlow-condensed-600.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("fonts/barlow-condensed-700.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url("fonts/barlow-condensed-800.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("fonts/barlow-400.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("fonts/barlow-500.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("fonts/barlow-600.woff2") format("woff2");
}

/* 2. Variables de Color y Sistema de Diseño */
:root {
  --navy: #0F2C4F;
  --navy-dark: #07192F;
  --blue: #1F4E83;
  --blue-light: #2A6BB2;
  --orange: #E8892B;
  --orange-hover: #D07419;
  --paper: #F4F2EE;
  --paper-card: #FFFFFF;
  --ink: #0E1A2B;
  --ink-secondary: #3E4D60;
  --muted: #596A80;
  --border: rgba(15, 44, 79, 0.12);
  --border-strong: rgba(15, 44, 79, 0.24);
  --header-h: 110px;
  --pad: clamp(1.25rem, 4vw, 4rem);
  --display: "Barlow Condensed", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --text: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow-sm: 0 2px 8px rgba(15, 44, 79, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 44, 79, 0.1);
  --shadow-lg: 0 16px 40px rgba(15, 44, 79, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--text);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Accesibilidad y foco */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  padding: 0.75rem 1.25rem;
  background: var(--navy);
  color: #FFFFFF;
  font-weight: 600;
  border-radius: 4px;
  z-index: 10000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* Cursor magnético personalizado */
.custom-cursor-dot, .custom-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate3d(-100px, -100px, 0);
  transition: opacity 0.2s ease;
}

.custom-cursor-dot {
  width: 6px;
  height: 6px;
  background-color: var(--orange);
  margin: -3px 0 0 -3px;
}

.custom-cursor-ring {
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(232, 137, 43, 0.6);
  margin: -16px 0 0 -16px;
  transition: width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s ease;
}

.custom-cursor-ring.is-hovering {
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-color: var(--orange);
  background: rgba(232, 137, 43, 0.08);
}

@media (pointer: coarse) {
  .custom-cursor-dot, .custom-cursor-ring {
    display: none !important;
  }
}

/* ==========================================================================
   Transición de Compuertas de Contenedor Marítimo
   ========================================================================== */
.container-doors-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  visibility: hidden;
  perspective: 1400px;
}

.doors-backdrop {
  position: absolute;
  inset: 0;
  background-color: #07192F;
  opacity: 1;
}

.doors-container {
  position: absolute;
  inset: 0;
  display: flex;
  transform-style: preserve-3d;
}

.door-leaf {
  position: relative;
  width: 50%;
  height: 100%;
  background-color: var(--navy);
  transform-style: preserve-3d;
  will-change: transform;
}

.door-leaf--left {
  transform-origin: left center;
  border-right: 4px solid #1C2735;
}

.door-leaf--right {
  transform-origin: right center;
  border-left: 4px solid #1C2735;
}

.door-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(180deg, #12345D 0%, #0F2C4F 100%);
}

/* Acanalado corrugado del contenedor */
.door-corrugation {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 0px,
    rgba(255, 255, 255, 0.04) 18px,
    transparent 18px,
    transparent 36px,
    rgba(0, 0, 0, 0.25) 36px,
    rgba(0, 0, 0, 0.25) 54px
  );
  opacity: 0.85;
}

/* Barras de cierre verticales cromadas */
.door-locking-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 12px;
  background: linear-gradient(90deg, #DCE3EA 0%, #8C99A8 50%, #5A6675 100%);
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.45);
}

.door-locking-bar.bar-1 { left: 24%; }
.door-locking-bar.bar-2 { left: 68%; }
.door-locking-bar.bar-3 { right: 68%; }
.door-locking-bar.bar-4 { right: 24%; }

/* Manijas de palanca */
.door-handle {
  position: absolute;
  top: 50%;
  width: 52px;
  height: 10px;
  background: #B0BAC6;
  border-radius: 3px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.door-handle.handle-1 { left: 24%; transform: translateY(-50%) rotate(20deg); }
.door-handle.handle-2 { left: 68%; transform: translateY(-50%) rotate(20deg); }
.door-handle.handle-3 { right: calc(68% - 40px); transform: translateY(-50%) rotate(-20deg); }
.door-handle.handle-4 { right: calc(24% - 40px); transform: translateY(-50%) rotate(-20deg); }

/* Estarcidos industriales */
.door-stencil {
  position: absolute;
  font-family: var(--display);
  letter-spacing: 0.12em;
  color: rgba(244, 242, 238, 0.85);
  text-transform: uppercase;
}

.stencil-left {
  top: 25%;
  left: 12%;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.stencil-code {
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  font-weight: 800;
  color: var(--orange);
}

.stencil-sub {
  font-size: 0.95rem;
  letter-spacing: 0.25em;
  opacity: 0.8;
}

.stencil-right {
  top: 22%;
  right: 12%;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: right;
}

.stencil-stat {
  font-size: clamp(0.9rem, 1.6vw, 1.35rem);
  font-weight: 700;
  border-bottom: 1px solid rgba(244, 242, 238, 0.18);
  padding-bottom: 0.3rem;
}

.stencil-tag {
  font-size: 0.85rem;
  color: var(--orange);
  letter-spacing: 0.2em;
}

/* Insignia central */
.doors-center-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--navy-dark);
  border: 2px solid var(--orange);
  padding: 1.25rem 2.5rem;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  z-index: 10;
}

.doors-center-badge .badge-brand {
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.15em;
}

.doors-center-badge .badge-line {
  font-family: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.25em;
}

/* ==========================================================================
   Encabezado del Sitio (Barra de Aviso y Selector en UNA Línea en Desktop)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(244, 242, 238, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

/* Barra superior: aviso institucional + enlace original + selector en 1 fila */
.demo-topbar {
  background-color: var(--navy);
  color: #E2E8F0;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-topbar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.45rem var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  white-space: nowrap;
}

.demo-topbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-topbar-text {
  opacity: 0.92;
}

.demo-topbar-link {
  color: var(--orange);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s ease;
}

.demo-topbar-link:hover {
  color: #FFAE57;
  text-decoration: underline;
}

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

.demo-models__label {
  font-weight: 600;
  opacity: 0.75;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.demo-model-link {
  color: #CBD5E1;
  text-decoration: none;
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.demo-model-link:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
}

.demo-model-link.active,
.demo-model-link[aria-current="page"] {
  background: var(--orange);
  color: #FFFFFF;
  font-weight: 700;
}

/* Barra de Navegación Principal */
.header-main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.75rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: auto;
  height: 42px;
  object-fit: contain;
}

.brand-meta {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--navy);
  letter-spacing: 0.05em;
}

.brand-tagline {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
  padding: 0.35rem 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background-color: var(--orange);
  transition: width 0.25s var(--ease);
}

.nav-link:hover,
.nav-link.active,
.nav-link[aria-current="page"] {
  color: var(--blue);
}

.nav-link:hover::after,
.nav-link.active::after,
.nav-link[aria-current="page"]::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  border-radius: 4px;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.22s var(--ease);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background-color: var(--orange);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--orange-hover);
  transform: translateY(-1.5px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--navy);
  color: #FFFFFF;
}

.btn-secondary:hover {
  background-color: var(--blue);
  transform: translateY(-1.5px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.btn-outline:hover {
  background-color: var(--navy);
  color: #FFFFFF;
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.95rem;
}

/* Botón hamburguesa */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.5rem;
  cursor: pointer;
  width: 42px;
  height: 42px;
  position: relative;
  align-items: center;
  justify-content: center;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--navy);
  transition: all 0.25s ease;
}

.menu-toggle span + span {
  margin-top: 5px;
}

/* Drawer móvil */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(85vw, 360px);
  height: 100vh;
  background-color: #FFFFFF;
  box-shadow: -8px 0 32px rgba(15, 44, 79, 0.2);
  z-index: 2000;
  padding: 2.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transition: right 0.35s var(--ease);
}

.mobile-drawer.is-open {
  right: 0;
}

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

.drawer-link {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
}

.drawer-link.active {
  color: var(--orange);
}

/* ==========================================================================
   Lienzo 3D WebGL de Fondo y Respaldo Visual
   ========================================================================== */
#webgl-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

.hero-fallback-visual {
  display: none;
  position: fixed;
  inset: 0;
  background-image: url("assets/img/contenedores-apilados.webp");
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  z-index: 0;
}

body.no-webgl #webgl-canvas {
  display: none !important;
}

body.no-webgl .hero-fallback-visual {
  display: block !important;
}

/* Hotspots interactivos proyectados sobre el 3D */
.hotspots-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.hotspot-marker {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: auto;
  cursor: pointer;
  display: none; /* Oculto por defecto; solo visible en la estación activa */
  align-items: center;
  gap: 0.6rem;
  transform: translate3d(-100px, -100px, 0);
  will-change: transform;
}

.hotspot-marker.is-active {
  display: flex;
}

.hotspot-ring {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(232, 137, 43, 0.25);
  border: 2px solid var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(232, 137, 43, 0.6);
  animation: hotspotPulse 2.4s infinite;
}

.hotspot-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #FFFFFF;
}

.hotspot-label {
  background: rgba(15, 44, 79, 0.94);
  color: #FFFFFF;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  border-left: 3px solid var(--orange);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

@keyframes hotspotPulse {
  0% { transform: scale(0.92); box-shadow: 0 0 0 0 rgba(232, 137, 43, 0.6); }
  70% { transform: scale(1.08); box-shadow: 0 0 0 14px rgba(232, 137, 43, 0); }
  100% { transform: scale(0.92); box-shadow: 0 0 0 0 rgba(232, 137, 43, 0); }
}

/* ==========================================================================
   Contenido Principal y Capas Superpuestas
   ========================================================================== */
.main-content {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

/* El contenido interactivo debe permitir clics */
.interactive-layer,
.hero-content,
.station-card,
.footer,
.spec-card,
.contact-section,
.about-section {
  pointer-events: auto;
}

/* Hero Section */
.hero-section {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem var(--pad);
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
}

/* Degradado a todo el alto de la sección hero, difuminado solo en horizontal (sin bordes visibles) */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    #F4F2EE 0%,
    rgba(244, 242, 238, 0.92) 38%,
    rgba(244, 242, 238, 0) 62%
  );
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  max-width: 640px;
  position: relative;
  z-index: 5;
  background: none;
  padding: 0;
  border-radius: 0;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background-color: #FFFFFF;
  border: 1px solid var(--border);
  border-left: 3.5px solid var(--orange);
  border-radius: 4px;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 8px rgba(15, 44, 79, 0.08);
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 800;
  line-height: 0.98;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

.hero-title span {
  color: var(--orange);
}

.hero-description {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--ink-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Barra de Navegación por Estaciones 3D */
.stations-nav-strip {
  margin-top: 3.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.stations-nav-title {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 0.5rem;
}

.station-nav-btn {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  padding: 0.4rem 0.85rem;
  border-radius: 4px;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--navy);
  cursor: pointer;
  transition: all 0.2s ease;
}

.station-nav-btn:hover {
  background: #FFFFFF;
  border-color: var(--orange);
  color: var(--orange);
}

.station-nav-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #FFFFFF;
}

/* Secciones de Estaciones por Scroll */
.stations-container {
  padding: 4rem var(--pad);
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22vh;
}

.station-chapter {
  min-height: 65vh;
  display: flex;
  align-items: center;
}

.station-chapter.align-right {
  justify-content: flex-end;
}

.station-card {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
  border-radius: 6px;
  padding: 2.25rem;
  max-width: 520px;
  box-shadow: var(--shadow-lg);
}

.station-code {
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.station-title {
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.05;
  color: var(--navy);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.station-text {
  font-size: 1.05rem;
  color: var(--ink-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.station-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.station-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--ink);
}

.station-features li svg {
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--orange);
}

.station-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Páginas Internas (Servicios, Nosotros, Contacto)
   ========================================================================== */
.page-hero {
  background-color: var(--navy);
  color: #FFFFFF;
  padding: 4.5rem var(--pad) 3.5rem var(--pad);
}

.page-hero-inner {
  max-width: 1440px;
  margin: 0 auto;
}

.page-hero-tag {
  color: var(--orange);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.page-hero-title {
  font-family: var(--display);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.page-hero-desc {
  max-width: 720px;
  font-size: 1.15rem;
  color: #D2DCE8;
  line-height: 1.6;
}

/* Visor 3D en Servicios */
.model-viewer-section {
  max-width: 1440px;
  margin: -2rem auto 4rem auto;
  padding: 0 var(--pad);
  position: relative;
  z-index: 10;
}

.viewer-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.viewer-header {
  padding: 1.25rem 1.75rem;
  background-color: var(--paper);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.viewer-title {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--navy);
}

.model-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.model-tab-btn {
  background: #FFFFFF;
  border: 1px solid var(--border);
  padding: 0.4rem 0.85rem;
  border-radius: 4px;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  transition: all 0.2s ease;
}

.model-tab-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.model-tab-btn.active {
  background-color: var(--orange);
  border-color: var(--orange);
  color: #FFFFFF;
}

.viewer-canvas-wrap {
  position: relative;
  width: 100%;
  height: 480px;
  background: radial-gradient(circle at center, #193B60 0%, #0A1E35 100%);
}

#webgl-servicios-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.viewer-instruction {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 44, 79, 0.85);
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.95rem;
  border-radius: 20px;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Grillas de Contenido */
.catalog-grid {
  max-width: 1440px;
  margin: 0 auto 5rem auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
}

.spec-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.spec-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.spec-card-media {
  width: 100%;
  height: 220px;
  background-color: #E2E8F0;
  overflow: hidden;
}

.spec-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.spec-card:hover .spec-card-media img {
  transform: scale(1.05);
}

.spec-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.spec-card-category {
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.spec-card-title {
  font-family: var(--display);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 0.85rem;
}

.spec-card-desc {
  font-size: 0.95rem;
  color: var(--ink-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.spec-tech-list {
  background-color: var(--paper);
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.spec-tech-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 0.25rem;
}

.spec-tech-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.spec-tech-label {
  font-weight: 600;
  color: var(--muted);
}

.spec-tech-val {
  font-weight: 700;
  color: var(--navy);
}

.spec-card-footer {
  margin-top: auto;
  padding-top: 1rem;
}

/* Sección Nosotros */
.about-grid {
  max-width: 1440px;
  margin: 4rem auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-canvas-wrap {
  width: 100%;
  height: 480px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: radial-gradient(circle at center, #1E4670 0%, #0B1C30 100%);
}

#webgl-nosotros-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.values-grid {
  max-width: 1440px;
  margin: 3rem auto 6rem auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.value-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy);
  border-radius: 6px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.value-title {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.value-desc {
  font-size: 0.95rem;
  color: var(--ink-secondary);
}

/* Sección Contacto */
.contact-layout {
  max-width: 1440px;
  margin: 4rem auto 6rem auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
}

.contact-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  font-family: var(--text);
  font-size: 1rem;
  color: var(--ink);
  background-color: #FAFAFA;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-control:focus {
  border-color: var(--orange);
  background-color: #FFFFFF;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-canvas-wrap {
  width: 100%;
  height: 280px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: radial-gradient(circle at center, #1B3859 0%, #081729 100%);
}

#webgl-contacto-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.contact-info-list {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.info-item svg {
  flex-shrink: 0;
  color: var(--orange);
  margin-top: 0.2rem;
}

.info-label {
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
}

.info-value {
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}

.info-value:hover {
  color: var(--orange);
}

/* ==========================================================================
   Pie de Página
   ========================================================================== */
.site-footer {
  background-color: var(--navy-dark);
  color: #CBD5E1;
  padding: 4.5rem var(--pad) 2rem var(--pad);
  border-top: 4px solid var(--orange);
  position: relative;
  z-index: 20;
}

.footer-top {
  max-width: 1440px;
  margin: 0 auto 3.5rem auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-desc {
  font-size: 0.95rem;
  color: #94A3B8;
  line-height: 1.6;
  max-width: 320px;
}

.footer-heading {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #FFFFFF;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--orange);
  display: inline-block;
  padding-bottom: 0.25rem;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-nav a {
  color: #CBD5E1;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

.footer-models {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-model-item {
  color: #CBD5E1;
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.footer-model-item:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.footer-model-item.active {
  background: var(--orange);
  color: #FFFFFF;
  font-weight: 700;
}

.footer-bottom {
  max-width: 1440px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #64748B;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .demo-topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .main-nav {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .about-grid, .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .demo-topbar {
    display: none;
  }
  .header-main {
    padding: 0.6rem var(--pad);
  }
  /* Teléfono: la escena 3D queda arriba (≈45% de la pantalla) y el texto abajo */
  .hero-section {
    padding: 2rem var(--pad);
    min-height: calc(100vh - var(--header-h));
    justify-content: flex-end;
    padding-top: 50vh;
  }
  .hero-section::before {
    background: linear-gradient(
      180deg,
      rgba(244, 242, 238, 0) 0%,
      rgba(244, 242, 238, 0.94) 38%,
      #F4F2EE 100%
    );
    -webkit-mask-image: none;
    mask-image: none;
  }
  .station-chapter {
    min-height: 100vh;
    align-items: flex-end;
  }
  .station-card {
    padding: 1.1rem 1.25rem;
  }
  .hotspot-label {
    display: none;
  }
  .station-card .station-title {
    font-size: 1.55rem;
    margin-bottom: 0.6rem;
  }
  .station-card .station-text {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.9rem;
  }
  .station-card .station-features {
    gap: 0.35rem;
    margin-bottom: 1rem;
  }
  .station-card .station-features li {
    font-size: 0.88rem;
  }
  .stations-container {
    gap: 4vh;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .brand-name {
    font-size: 1.25rem;
  }
  .brand-logo {
    height: 34px;
  }
  .hero-title {
    font-size: 2.3rem;
  }
  .btn {
    width: 100%;
  }
  .hero-cta {
    flex-direction: column;
  }
}
