/* ==========================================================================
   EleveTodo MX - Estilos Maestros & Cinemática de Elevador
   ========================================================================== */

:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --accent-glow: rgba(245, 158, 11, 0.4);
  --metal-dark: #1e2430;
  --metal-base: #334155;
  --metal-light: #94a3b8;
  --steel-gradient: linear-gradient(135deg, #475569 0%, #1e293b 50%, #334155 100%);
  --steel-door: linear-gradient(90deg, #1e2530 0%, #3a4556 25%, #2a3443 50%, #475569 75%, #1e2530 100%);
  --led-amber: #ffb703;
  --led-glow: 0 0 12px rgba(255, 183, 3, 0.8), 0 0 24px rgba(255, 183, 3, 0.4);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --door-speed: 0.85s;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  background-color: #0b0f19;
  color: var(--text-main);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
  background: radial-gradient(circle at 50% 0%, #172554 0%, #0b0f19 70%);
  color: var(--text-main);
  line-height: 1.6;
}

/* ==========================================================================
   SISTEMA DE PUERTAS Y CINEMÁTICA DE ELEVADOR
   ========================================================================== */

#elevator-doors-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  display: flex;
  overflow: hidden;
  perspective: 1000px;
}

#elevator-doors-overlay.active {
  pointer-events: auto;
}

.door-panel {
  width: 50%;
  height: 100%;
  background: var(--steel-door);
  position: relative;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.8);
  transition: transform var(--door-speed) cubic-bezier(0.77, 0, 0.175, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.door-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.03) 0px,
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px,
    transparent 4px
  );
  pointer-events: none;
}

.door-panel-left {
  border-right: 3px solid #0f172a;
  transform: translateX(0);
}

.door-panel-right {
  border-left: 3px solid #0f172a;
  transform: translateX(0);
}

/* Borde de goma protectora central y remates */
.door-seam {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 14px;
  background: linear-gradient(90deg, #090d14, #1a2230, #090d14);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
}

.door-panel-left .door-seam {
  right: 0;
}

.door-panel-right .door-seam {
  left: 0;
}

/* Estado de Puertas Abiertas */
#elevator-doors-overlay.doors-opened .door-panel-left {
  transform: translateX(-101%);
}

#elevator-doors-overlay.doors-opened .door-panel-right {
  transform: translateX(101%);
}

/* Animación de flecha indicadora */
@keyframes pulseArrow {
  0% { transform: translateY(0); opacity: 0.6; }
  100% { transform: translateY(-3px); opacity: 1; text-shadow: 0 0 12px #ffb703; }
}

/* ==========================================================================
   DISPLAY DIGITAL SUPERIOR (STICKY EN PÁGINA)
   ========================================================================== */

.top-floor-bar {
  background: rgba(11, 15, 25, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  position: relative;
  z-index: 100;
}

.top-floor-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #090e17;
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid #1e293b;
}

.top-floor-led {
  color: var(--led-amber);
  font-family: monospace;
  font-weight: bold;
  font-size: 1rem;
  text-shadow: var(--led-glow);
}

.top-contact-info {
  display: flex;
  gap: 20px;
  color: var(--text-muted);
}

.top-contact-info a {
  color: #cbd5e1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.top-contact-info a:hover {
  color: var(--accent);
}

/* ==========================================================================
   CABINA BOTONERA FLOTANTE (ELEVATOR KEYPAD PANEL)
   ========================================================================== */

.elevator-cab-keypad {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 9999;
  background: linear-gradient(180deg, #1e2532 0%, #0d121c 100%);
  border: 2px solid #334155;
  border-radius: 20px;
  padding: 16px 12px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform 0.3s ease;
}

.cab-panel-header {
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
  text-align: center;
  border-bottom: 1px solid #334155;
  padding-bottom: 6px;
  width: 100%;
}

/* Mini Display Digital LED en la Botonera */
.cab-mini-display {
  background: #05070c;
  border: 1px solid #475569;
  border-radius: 8px;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.9);
  width: 100%;
}

.cab-led-arrow {
  color: var(--led-amber);
  font-size: 0.85rem;
  font-family: monospace;
  font-weight: 900;
  text-shadow: var(--led-glow);
  display: inline-block;
  animation: pulseArrow 0.8s infinite alternate;
}

.cab-led-number {
  color: var(--led-amber);
  font-size: 0.95rem;
  font-family: 'Courier New', Courier, monospace;
  font-weight: 900;
  text-shadow: var(--led-glow);
  letter-spacing: 1px;
}

.floor-btn-list {
  display: flex;
  flex-direction: column-reverse; /* PB abajo, pisos arriba */
  gap: 10px;
  list-style: none;
}

.elevator-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #475569;
  background: radial-gradient(circle at 35% 35%, #475569, #1e293b);
  color: #f8fafc;
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5), inset 0 2px 3px rgba(255, 255, 255, 0.2);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
}

.elevator-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 6px 16px var(--accent-glow);
}

.elevator-btn:active {
  transform: translateY(1px);
  box-shadow: inset 0 3px 6px rgba(0,0,0,0.6);
}

.elevator-btn.active {
  border-color: var(--led-amber);
  background: radial-gradient(circle at 35% 35%, #b45309, #78350f);
  color: #ffffff;
  box-shadow: 0 0 16px var(--led-amber), inset 0 0 8px rgba(255,255,255,0.4);
}

.braille-tag {
  font-size: 0.55rem;
  line-height: 1;
  color: #94a3b8;
  margin-top: 1px;
}

.cab-action-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #475569;
  background: #1e293b;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.cab-action-btn:hover {
  background: #334155;
  color: var(--accent);
}

.sound-toggle-btn.muted {
  opacity: 0.6;
}

/* ==========================================================================
   NAVEGACIÓN PRINCIPAL & HEADER
   ========================================================================== */

header.main-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(11, 15, 25, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
}

.logo-symbol {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #1e3a8a, #0284c7);
  border: 2px solid #38bdf8;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.35);
}

.header-logo-img {
  height: 44px;
  width: auto;
  max-width: 65px;
  max-height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
  transition: transform 0.2s ease;
  display: block;
  flex-shrink: 0;
}

.brand-logo:hover .header-logo-img {
  transform: scale(1.04);
}

.brand-text .brand-title,
.brand-text h1 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
  color: #ffffff;
  display: block;
}

.brand-text .brand-title span,
.brand-text h1 span {
  color: var(--accent);
}

.brand-text p {
  font-size: 0.72rem;
  color: #94a3b8;
  letter-spacing: 1px;
  text-transform: uppercase;
}

nav.main-nav ul {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}

nav.main-nav a {
  text-decoration: none;
  color: #cbd5e1;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

nav.main-nav a:hover,
nav.main-nav a.current {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

nav.main-nav a.current {
  border-bottom: 2px solid var(--accent);
}

.header-cta-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0f172a !important;
  font-weight: 700 !important;
  padding: 10px 18px !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.header-cta-btn:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
  transform: translateY(-2px);
}

/* ==========================================================================
   SECCIONES Y COMPONENTES VISUALES
   ========================================================================== */

.hero-section {
  position: relative;
  padding: 80px 24px 100px;
  max-width: 1240px;
  margin: 0 auto;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero-title span {
  background: linear-gradient(135deg, #ffffff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: #94a3b8;
  max-width: 680px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b0f19;
  font-weight: 800;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 8px 25px var(--accent-glow);
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #1e293b;
  color: #ffffff;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: #334155;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

/* Métricas Clave */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 60px;
}

.metric-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(10px);
}

.metric-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 0.9rem;
  color: #94a3b8;
  font-weight: 600;
}

/* ==========================================================================
   TARJETAS DE PISOS / SERVICIOS
   ========================================================================== */

.floors-overview-section {
  padding: 80px 24px;
  max-width: 1240px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.section-head h2 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.section-head p {
  color: #94a3b8;
  font-size: 1.05rem;
}

.floors-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.floor-card {
  background: linear-gradient(180deg, #131b2e 0%, #0d1322 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.floor-card:hover {
  transform: translateY(-8px);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.floor-level-indicator {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #090e17;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 4px 10px;
  font-family: monospace;
  font-weight: bold;
  font-size: 0.85rem;
  color: var(--led-amber);
}

.floor-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 24px;
}

.floor-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.floor-card p {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.floor-card-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.floor-card-link:hover {
  gap: 14px;
  color: #fbbf24;
}

/* ==========================================================================
   FORMULARIO DE CONTACTO / COTIZACIÓN ELEVADORES
   ========================================================================== */

.contact-quote-section {
  padding: 80px 24px;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.6) 100%);
}

.contact-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  background: #0d1322;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.contact-info-col h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.contact-info-col p {
  color: #94a3b8;
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #1e293b;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-detail-text h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748b;
  margin-bottom: 4px;
}

.contact-detail-text p,
.contact-detail-text a {
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.contact-detail-text a:hover {
  color: var(--accent);
}

.form-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
}

.form-control {
  background: #131b2e;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 14px 16px;
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.btn-submit-lead {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b0f19;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 16px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 8px 25px var(--accent-glow);
  transition: var(--transition-smooth);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.btn-submit-lead:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.5);
}

.btn-submit-lead:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer.site-footer {
  background: #070a12;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 60px 24px 30px;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
}

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

.footer-col a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.footer-col a:hover {
  color: var(--accent);
}

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

/* ==========================================================================
   PÁGINAS INTERNAS (PISOS ESPECÍFICOS)
   ========================================================================== */

.subpage-hero {
  padding: 60px 24px;
  background: radial-gradient(circle at 50% 0%, #1e293b 0%, #0b0f19 80%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.subpage-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.subpage-content-area {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 24px;
}

.service-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.service-feature-card {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 30px;
}

.service-feature-card h3 {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-feature-card p {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   RESPONSIVIDAD Y AJUSTES MÓVILES
   ========================================================================== */

@media (max-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr;
    padding: 32px 20px;
  }
  
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  
  nav.main-nav {
    display: none; /* Simplificado para móviles */
  }
  
  .elevator-cab-keypad {
    right: 12px;
    bottom: 16px;
    padding: 10px 8px;
    gap: 8px;
  }
  
  .elevator-btn {
    width: 38px;
    height: 38px;
    font-size: 0.85rem;
  }
}

@media (max-width: 640px) {
  .top-floor-bar {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-inner {
    grid-template-columns: 1fr;
  }
}
