/* ============================================================
   componentes.css — todos los componentes de ESCRITORIO
   El escritorio se clona del sitio de referencia (PAPIME).
   Aquí NO va nada responsivo: eso vive en movil.css.

   Orden de las secciones cuando se construyan (Fases 4-6):
     1. Header                                  ← Fase 4 ✅
     2. Hero (fondo de 4 capas, badges, botón)  ← Fase 4 ✅
     3. Mapa circular (8 pines + 3 etiquetas)   ← Fase 4 ✅
     4. Tarjeta de estación (encabezado degradado, .revealed)
     5. Carrusel (flechas, contador, puntos)
     6. Botones de acción (3D azul / 360 verde / PDF rojo)
     7. Modal de iframe (Sketchfab + Kuula)
     8. Sección de videos (1 + 4 + 4)
   ============================================================ */

/* ============================================================
   1. HEADER — clonado de layout.css del PAPIME
   Cambios acordados: solo el escudo FI (clickeable, lleva a
   ingenieria.unam.mx) y 3 anclas internas. Sin marca escrita.
   ============================================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.header-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(15, 15, 35, 0.98) 0%,
    rgba(15, 15, 35, 0.95) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.header-glow {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(102, 126, 234, 0.5) 20%,
    rgba(118, 75, 162, 0.8) 50%,
    rgba(102, 126, 234, 0.5) 80%,
    transparent 100%);
  opacity: 0.6;
}

.header-scrolled .header-gradient {
  background: linear-gradient(180deg,
    rgba(10, 10, 28, 0.99) 0%,
    rgba(10, 10, 28, 0.97) 100%);
}

.header-scrolled .header-glow {
  opacity: 1;
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

/* ⚠️ 11/08/2026 — Decisión del cliente: en ESCRITORIO el escudo baja al
   hero (arriba de los badges) y crece. Se quita del header, y el menú
   queda alineado a la derecha.
   🚫 Este cambio es solo de escritorio. En tablet y móvil el escudo
   sigue en el header — movil.css lo revierte. No tocar ese lado. */
.header-content {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 80px;
  gap: 16px;
  position: relative;
}

.header .escudo-link { display: none; }

/* Escudo — placa clickeable, igual que .institutional-logo del original */
.escudo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.escudo-link:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(102, 126, 234, 0.4);
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
}

.escudo-link img {
  height: 45px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
}

/* Navegación — clonada de .nav-link del original */
.nav-main {
  display: flex;
  align-items: center;
  position: relative;
}

.nav-list {
  display: flex;
  gap: 2px;
  align-items: center;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.88rem;
  color: #cbd5e1;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.nav-icon {
  width: 16px;
  height: 16px;
  opacity: 0.6;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.12) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, #667eea, #a78bfa);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover,
.nav-link:focus {
  color: #f1f5f9;
}

.nav-link:hover .nav-icon { opacity: 1; color: var(--lavanda); }
.nav-link:hover::before { opacity: 1; }
.nav-link:hover::after { transform: translateX(-50%) scaleX(1); }

.nav-link span {
  position: relative;
  z-index: 1;
}

/* ============================================================
   2. HERO — clonado de practica-virtual.css del PAPIME
   Cambio acordado: SIN la rejilla 2x2 de features. El espacio
   se cierra con el margen del párrafo (48px) para que la
   columna quede centrada contra el mapa.
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 40%, #16213e 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(102, 126, 234, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102, 126, 234, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
}

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

.hero-particles {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 10% 20%, rgba(255,255,255,0.3), transparent),
    radial-gradient(2px 2px at 30% 70%, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 50% 30%, rgba(255,255,255,0.3), transparent),
    radial-gradient(2px 2px at 70% 60%, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 90% 40%, rgba(255,255,255,0.25), transparent);
  animation: particleFloat 25s linear infinite;
}

@keyframes particleFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-100px); }
}

.hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.2));
  top: -150px;
  right: -100px;
  animation: orbFloat1 10s ease-in-out infinite;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.15));
  bottom: -100px;
  left: 5%;
  animation: orbFloat2 12s ease-in-out infinite;
}

/* ⚠️ Corregido el 11/08/2026: el original traía este orbe en rosa/naranja
   (rgba(244,114,182) → rgba(251,146,60)) y el cliente pidió eliminar ese
   sombreado naranja. Va en los morados del fondo. 🚫 No devolverlo a naranja. */
.orb-3 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.15));
  top: 50%;
  left: 40%;
  animation: orbFloat3 8s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 40px) scale(1.1); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, -30px) scale(0.9); }
}

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

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

/* Escudo del hero — misma placa, mismos colores y mismo hover que el del
   header; solo más grande (45px → 82px de alto). Sigue siendo enlace a
   ingenieria.unam.mx. Solo escritorio: movil.css lo oculta en ≤1024px. */
.hero-escudo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 44px;   /* ajustado 32 → 44 el 11/08/2026 a pedido del cliente */
  transition: all 0.3s ease;
}

.hero-escudo:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(102, 126, 234, 0.4);
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
}

.hero-escudo img {
  height: 96px;   /* ajustado 82 → 96 el 11/08/2026 a pedido del cliente */
  width: auto;
  object-fit: contain;
  border-radius: 6px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.badge-tour {
  background: rgba(102, 126, 234, 0.15);
  border: 1px solid rgba(102, 126, 234, 0.3);
  color: #a78bfa;
}

.badge-stations {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #4ade80;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.title-gradient {
  display: block;
  background: linear-gradient(135deg, #667eea 0%, #a78bfa 40%, #f472b6 80%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 300% 100%;
  animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Sin la rejilla de features, el margen del párrafo cierra el hueco:
   original 32px + features(~180px de alto + 36px de margen) → aquí 48px.
   Verificado midiendo el centrado de ambas columnas. */
.hero-description {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  margin-bottom: 48px;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 14px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  box-shadow: 0 4px 25px rgba(102, 126, 234, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 35px rgba(102, 126, 234, 0.5);
  color: #fff;
}

.hero-cta-btn svg {
  animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ============================================================
   3. MAPA CIRCULAR — clonado del original
   8 pines clickeables (botones reales) + 3 etiquetas flotantes
   ============================================================ */

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.visual-map {
  position: relative;
  width: 380px;
  height: 380px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.map-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.4) 0%, transparent 70%);
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

.map-icon {
  font-size: 6rem;
  z-index: 2;
  animation: iconFloat 4s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.map-pins {
  position: absolute;
  inset: 0;
}

.map-pin {
  position: absolute;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 3;
}

.map-pin:hover {
  transform: scale(1.2);
  box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

/* Los pines 1 y 5 llevan translateX del posicionamiento; su hover
   lo conserva para no brincar de lugar */
.pin-1:hover,
.pin-5:hover { transform: translateX(-50%) scale(1.2); }

.pin-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(102, 126, 234, 0.3);
  animation: pinPulse 2s ease-out infinite;
}

@keyframes pinPulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

.pin-1 { top: 10%; left: 50%; transform: translateX(-50%); }
.pin-2 { top: 20%; right: 15%; }
.pin-3 { top: 45%; right: 5%; }
.pin-4 { bottom: 25%; right: 15%; }
.pin-5 { bottom: 10%; left: 50%; transform: translateX(-50%); }
.pin-6 { bottom: 25%; left: 15%; }
.pin-7 { top: 45%; left: 5%; }
.pin-8 { top: 20%; left: 15%; }

.map-route {
  position: absolute;
  inset: 30px;
  border: 2px dashed rgba(102, 126, 234, 0.3);
  border-radius: 50%;
  animation: routeRotate 30s linear infinite;
}

@keyframes routeRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.floating-cards {
  position: absolute;
  inset: -20px;
  pointer-events: none;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1f2937;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.fc-icon {
  font-size: 1.2rem;
}

.fc-1 {
  top: 10%;
  right: -30px;
  animation: floatCard1 5s ease-in-out infinite;
}

.fc-2 {
  bottom: 20%;
  left: -40px;
  animation: floatCard2 6s ease-in-out infinite;
}

.fc-3 {
  bottom: 5%;
  right: 10%;
  animation: floatCard3 7s ease-in-out infinite;
}

@keyframes floatCard1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes floatCard2 {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(10px) rotate(2deg); }
}

@keyframes floatCard3 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.6;
  z-index: 10;
}

.mouse {
  width: 26px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 15px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.3; transform: translateX(-50%) translateY(12px); }
}

.scroll-indicator span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

/* ============================================================
   4. TARJETAS DE ESTACIÓN — clonadas del original
   ============================================================ */

.stations-section {
  padding: 60px 0 100px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.stations-grid {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* 🚨 A prueba de fallos: la tarjeta se ve POR DEFECTO. El JS le pone
   .por-revelar para animar su entrada y se la quita al entrar en cuadro.
   Si el JS no corre, o el navegador congela el observador, el contenido
   se ve igual. Antes nacían con opacity:0 y bastaba un fallo para dejar
   una sección entera invisible — pasó con los 9 videos el 11/08/2026.
   🚫 No devolver el opacity:0 al estado base. */
.station-card {
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  scroll-margin-top: 100px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.station-card.por-revelar {
  opacity: 0;
  transform: translateY(40px);
}

.station-card:hover {
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.12);
  border-color: rgba(102, 126, 234, 0.2);
}

.station-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f97316 100%);
  background-size: 200% 200%;
  animation: gradientHeader 8s ease infinite;
  color: white;
  padding: 28px 36px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

@keyframes gradientHeader {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.station-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: headerShine 5s ease-in-out infinite;
}

@keyframes headerShine {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

.station-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 18px;
  font-size: 1.75rem;
  font-weight: 900;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1;
}

.station-title-group h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.station-location {
  opacity: 0.9;
  font-size: 0.95rem;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.station-content {
  padding: 32px;
  background: #fafbfc;
}

/* ============================================================
   5. CARRUSEL — clonado del original
   ============================================================ */

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 950px;
  margin: 0 auto 32px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 100%);
  box-shadow:
    0 30px 60px -15px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.carousel-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  z-index: 20;
}

.carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.carousel-slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #0d0d1a 0%, #1a1a2e 100%);
  position: relative;
  overflow: hidden;
}

.carousel-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.3) 100%);
  pointer-events: none;
  z-index: 1;
}

.carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease, filter 0.3s ease;
  filter: brightness(0.95) contrast(1.05);
}

.carousel-slide:hover img {
  transform: scale(1.02);
  filter: brightness(1) contrast(1.08);
}

.carousel-slide video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #000;
  border-radius: 8px;
  position: relative;
  z-index: 2;   /* los controles del video quedan sobre el viñeteado */
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%) scale(1.1);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.carousel-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }

.carousel-indicators {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}

.carousel-dot.active {
  background: linear-gradient(135deg, #667eea, #a78bfa);
  width: 28px;
  border-radius: 14px;
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

.carousel-counter {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  padding: 10px 18px;
  border-radius: 24px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-counter span:first-child {
  color: #a78bfa;
  font-weight: 800;
}

/* ============================================================
   6. BOTONES DE ACCIÓN — clonados del original
   ============================================================ */

.station-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: transparent;
  border: 2px solid;
  border-radius: 60px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.action-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.action-btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.action-btn:hover {
  color: white !important;
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.action-btn .icon {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.action-btn:hover .icon {
  transform: scale(1.2);
}

.action-btn.btn-3d { border-color: #3b82f6; color: #3b82f6; }
.action-btn.btn-3d:hover { box-shadow: 0 15px 35px rgba(59, 130, 246, 0.35); }

.action-btn.btn-360 { border-color: #10b981; color: #10b981; }
.action-btn.btn-360:hover { box-shadow: 0 15px 35px rgba(16, 185, 129, 0.35); }

.action-btn.btn-pdf { border-color: #ef4444; color: #ef4444; }
.action-btn.btn-pdf:hover { box-shadow: 0 15px 35px rgba(239, 68, 68, 0.35); }

/* Desactivado: se renderiza como <span>, pálido, sin mano, sin hover.
   Preparado para encender cuando llegue el recurso (skill §10.4). */
.action-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================================
   7. MODAL — clonado del original, SIN logos ni textos PAPIME
   ============================================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 1200px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
  animation: modalAppear 0.3s ease;
}

@keyframes modalAppear {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 28px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  gap: 15px;
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.modal-icon {
  font-size: 2rem;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.modal-subtitle {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.modal-close {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.modal-close svg {
  stroke: rgba(255, 255, 255, 0.7);
  transition: stroke 0.3s ease;
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
}

.modal-close:hover svg {
  stroke: #ef4444;
}

.modal-body {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}

.modal-body iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.modal-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(0, 0, 0, 0.8);
  z-index: 5;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(102, 126, 234, 0.2);
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.modal-loader span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.modal-footer {
  padding: 16px 28px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-tips {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.tip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   8. VIDEOS — "Recorridos por las Estaciones"
   Fondo oscuro. Estación 0 sola y centrada (mismo tamaño que
   las demás, acordado), debajo 4 + 4. Tarjetas 9:16 con
   controles nativos, preload="none" y póster obligatorio.
   ============================================================ */

.videos {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 50%, #16213e 100%);
  overflow: hidden;
}

/* Rejilla sutil de fondo, como el CTA del original */
.videos::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.videos .container {
  position: relative;
  z-index: 1;
}

.videos-header {
  text-align: center;
  margin-bottom: 56px;
}

.videos-title {
  font-size: 48px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 14px;
}

.videos-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Estación 0: sola y centrada, del MISMO ancho que una tarjeta de la
   rejilla de 4 (acordado: no debe leerse como destacada).
   Se usa la misma rejilla de 4 columnas y la tarjeta ocupa el ancho
   exacto de una columna — así el ancho coincide por construcción,
   no por un cálculo aparte que se desincroniza. */
.video-solo {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.video-solo .video-card {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc((100% - 72px) / 4);
}

/* 🚨 minmax(0, 1fr), no 1fr. Con 1fr = minmax(auto, 1fr), la etiqueta más
   larga (estación 6, 45 caracteres) inflaba su columna a 339px y desalineaba
   toda la rejilla. Medido: 249 / 339 / 249 / 249 antes del arreglo.
   Es la trampa 2 del skill. 🚫 No quitar el minmax(0, ...). */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

/* Mismo criterio que .station-card: visible por defecto. Ver la nota de
   arriba. 🚫 No devolver el opacity:0 al estado base. */
.video-card {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-card.por-revelar {
  opacity: 0;
  transform: translateY(30px);
}

.video-card video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #000;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.video-card:hover video {
  border-color: rgba(102, 126, 234, 0.4);
}

/* La etiqueta de la estación 6 mide 321px a 11.5px/0.07em y la columna da 272px.
   En vez de encoger la letra a 10px (ilegible), se deja envolver en dos
   renglones y se reserva la altura para que todas las tarjetas alineen. */
.video-label {
  display: block;
  margin-top: 14px;
  min-height: 34px;
  text-align: center;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.75);
  text-wrap: balance;
}

.video-label .video-num {
  color: #a78bfa;
  font-weight: 700;
}
