/* ==========================================================================
   DRYALS STUDIO - PREMIUM DESIGN SYSTEM
   Inspirado en el estándar de diseño industrial y digital de Apple
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Paleta Base Obsidiana & Espacio */
  --bg-dark: #06070a;
  --bg-surface: #0c0e14;
  --bg-surface-elevated: #121620;
  --bg-surface-card: rgba(16, 20, 30, 0.7);
  --bg-glass-nav: rgba(8, 10, 16, 0.75);
  --bg-glass-card: rgba(255, 255, 255, 0.03);
  --bg-glass-input: rgba(255, 255, 255, 0.04);
  --bg-glass-hover: rgba(255, 255, 255, 0.06);

  /* Acentos de Luz & Energía */
  --primary: #00f0ff;
  --primary-glow: rgba(0, 240, 255, 0.35);
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.35);
  --accent-purple: #8b5cf6;
  --accent-amber: #f59e0b;

  /* Bordes & Hairlines */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-prominent: rgba(255, 255, 255, 0.22);
  --border-glow-primary: rgba(0, 240, 255, 0.4);
  --border-glow-emerald: rgba(16, 185, 129, 0.4);

  /* Tipografía */
  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #475569;

  /* Tipos de Letra */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Geometría y Sombras */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-elevated: 0 12px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 50px rgba(0, 240, 255, 0.12);
  --shadow-emerald-glow: 0 0 50px rgba(16, 185, 129, 0.15);

  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  font-size: 16px;
  background-color: var(--bg-dark);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Fondo Ambiental Cósmico */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 600px;
  background: radial-gradient(circle 600px at 50% -150px, rgba(0, 240, 255, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 600px;
  background: radial-gradient(circle 700px at 80% 120%, rgba(16, 185, 129, 0.05), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Cuadrícula sutil de fondo */
.bg-grid-ambient {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 20%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 20%, #000 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* Enlaces y Selección */
a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: rgba(0, 240, 255, 0.25);
  color: #fff;
}

/* Contenedores */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.container-narrow {
  max-width: 880px;
}

/* ==========================================================================
   TIPOGRAFÍA APPLE STYLE
   ========================================================================== */

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-main);
}

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

.text-gradient-cyan {
  background: linear-gradient(135deg, #ffffff 20%, #38bdf8 80%, #00f0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-emerald {
  background: linear-gradient(135deg, #a7f3d0 10%, #34d399 50%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Insignias de sección (Pills) */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-medium);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  backdrop-filter: blur(12px);
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.badge-pill.cyan {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.25);
  background: rgba(56, 189, 248, 0.06);
}

.badge-pill.emerald {
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.06);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  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); }
}

/* ==========================================================================
   BOTONES PREMIUM
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.btn-primary {
  background: #ffffff;
  color: #06070a;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.15), 0 2px 8px rgba(0, 0, 0, 0.4);
}

.btn-primary:hover {
  background: #e2e8f0;
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(255, 255, 255, 0.25);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-glow-cyan {
  background: linear-gradient(135deg, #00f0ff, #0284c7);
  color: #041019;
  box-shadow: 0 0 25px var(--primary-glow);
}

.btn-glow-cyan:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.55);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-medium);
  backdrop-filter: blur(16px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-prominent);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-emerald {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 0 25px var(--accent-emerald-glow);
}

.btn-emerald:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.55);
}

/* ==========================================================================
   BARRA DE NAVEGACIÓN FLOTANTE (APPLE FROSTED GLASS)
   ========================================================================== */

.nav-wrapper {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 20px;
}

.nav-glass {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1100px;
  height: 60px;
  padding: 0 24px;
  background: var(--bg-glass-nav);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: var(--transition-smooth);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.brand-monogram {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--primary);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), 0 0 15px rgba(0, 240, 255, 0.2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 8px;
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: 90px;
  left: 20px;
  right: 20px;
  background: rgba(12, 14, 20, 0.95);
  border: 1px solid var(--border-prominent);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(24px);
  z-index: 999;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-elevated);
}

.mobile-drawer.open {
  display: flex;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  padding-top: 170px;
  padding-bottom: 100px;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-item svg {
  color: var(--accent-emerald);
}

/* Hero Showcase Cockpit */
.hero-cockpit {
  margin-top: 60px;
  border-radius: var(--radius-xl);
  background: rgba(14, 18, 28, 0.6);
  border: 1px solid var(--border-medium);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.7), 0 0 1px 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px);
  overflow: hidden;
  text-align: left;
  position: relative;
  transition: transform 0.4s ease;
}

.cockpit-header {
  height: 48px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
}

.window-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.cockpit-title-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cockpit-body {
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  min-height: 420px;
}

.cockpit-sidebar {
  border-right: 1px solid var(--border-subtle);
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
}

.cockpit-center {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cockpit-telemetry {
  border-left: 1px solid var(--border-subtle);
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Métricas en el Cockpit */
.metric-box {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.metric-value.cyan { color: var(--primary); }
.metric-value.emerald { color: var(--accent-emerald); }

.code-snippet {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.6;
  color: #94a3b8;
  background: rgba(6, 8, 12, 0.7);
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.code-keyword { color: #f43f5e; }
.code-fn { color: #38bdf8; }
.code-str { color: #10b981; }
.code-comment { color: #475569; }

/* ==========================================================================
   SHOWCASE INSIGNIA: BOMBONERA SAAS
   ========================================================================== */

.section {
  padding: 110px 0;
  position: relative;
}

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

.section-title {
  font-size: clamp(2rem, 3.8vw, 3rem);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.bombonera-card {
  background: linear-gradient(180deg, rgba(16, 25, 22, 0.6) 0%, rgba(10, 14, 18, 0.8) 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-xl);
  padding: 44px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), var(--shadow-emerald-glow);
}

.bombonera-card::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15), transparent 70%);
  pointer-events: none;
}

.bombonera-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.bombonera-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.bombonera-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 18px;
}

.bombonera-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.bombonera-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.b-stat-num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
}

.b-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Simulador Interactivo de Bombonera */
.interactive-bombonera-demo {
  background: #090c10;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
}

.demo-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.demo-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.demo-tab-btn.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.cancha-preview-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 14px;
}

.cancha-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.cancha-name {
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cancha-price {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #34d399;
  font-size: 0.95rem;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.slot-chip {
  padding: 8px 6px;
  text-align: center;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-fast);
  user-select: none;
}

.slot-chip.available {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.slot-chip.available:hover {
  border-color: #10b981;
  color: #fff;
  transform: translateY(-1px);
}

.slot-chip.selected {
  background: #10b981;
  color: #062419;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.slot-chip.booked {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.03);
  color: #475569;
  cursor: not-allowed;
  text-decoration: line-through;
}

.demo-checkout-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  background: rgba(16, 185, 129, 0.07);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-md);
}

.checkout-details {
  display: flex;
  flex-direction: column;
}

.checkout-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.checkout-total {
  font-size: 1.1rem;
  font-weight: 700;
  color: #34d399;
}

/* ==========================================================================
   SERVICIOS DE INGENIERÍA BOUTIQUE
   ========================================================================== */

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

.service-card {
  background: var(--bg-surface-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-prominent);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 255, 255, 0.04);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--primary);
  transition: var(--transition-fast);
}

.service-card:hover .service-icon {
  background: rgba(0, 240, 255, 0.1);
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
  transform: scale(1.05);
}

.service-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.service-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.service-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

/* ==========================================================================
   TABLA COMPARATIVA: EL ESTÁNDAR DRYALS VS AGENCIA TRADICIONAL
   ========================================================================== */

.comparison-wrapper {
  background: var(--bg-surface-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th, 
.comparison-table td {
  padding: 22px 28px;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
  background: rgba(0, 0, 0, 0.3);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.col-dryals-head {
  background: rgba(0, 240, 255, 0.06) !important;
  color: var(--primary) !important;
  border-top: 2px solid var(--primary);
}

.col-dryals-cell {
  background: rgba(0, 240, 255, 0.02);
  color: #fff;
  font-weight: 500;
}

.col-legacy-cell {
  color: var(--text-muted);
}

.check-icon {
  color: var(--accent-emerald);
  margin-right: 8px;
  vertical-align: middle;
}

.cross-icon {
  color: #f43f5e;
  margin-right: 8px;
  vertical-align: middle;
}

/* ==========================================================================
   METODOLOGÍA DE 4 FASES (APPLE STYLE STEPPER)
   ========================================================================== */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.process-card {
  background: var(--bg-surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  position: relative;
  transition: var(--transition-smooth);
}

.process-card:hover {
  border-color: var(--border-prominent);
  transform: translateY(-4px);
}

.process-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

.process-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.process-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   SIMULADOR & COTIZADOR INTERACTIVO (LEAD ENGINE)
   ========================================================================== */

.estimator-card {
  background: linear-gradient(180deg, rgba(14, 18, 28, 0.8) 0%, rgba(8, 10, 16, 0.95) 100%);
  border: 1px solid var(--border-prominent);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8), var(--shadow-glow);
}

.estimator-step {
  margin-bottom: 36px;
}

.estimator-label {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: #fff;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.choice-btn {
  background: var(--bg-glass-input);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-main);
}

.choice-btn:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-prominent);
}

.choice-btn.active {
  background: rgba(0, 240, 255, 0.08);
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.choice-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.choice-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.estimator-result-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 40px;
}

.result-data {
  display: flex;
  flex-direction: column;
}

.result-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.result-price {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.result-weeks {
  font-size: 0.9rem;
  color: var(--primary);
  margin-top: 4px;
}

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

.contact-form {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-input, .form-textarea {
  width: 100%;
  background: var(--bg-glass-input);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
  outline: none;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
}

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

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-item.active {
  border-color: var(--border-medium);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 22px 24px;
  background: none;
  border: none;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-icon {
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding-bottom: 22px;
}

/* ==========================================================================
   BANNER FINAL CTA
   ========================================================================== */

.cta-banner {
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.12), rgba(8, 10, 16, 0.9) 70%);
  border: 1px solid var(--border-prominent);
  border-radius: var(--radius-xl);
  padding: 80px 32px;
  position: relative;
  overflow: hidden;
}

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

.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 70px 0 40px;
  background: rgba(4, 5, 8, 0.8);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  margin-top: 14px;
  max-width: 320px;
  line-height: 1.6;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 18px;
}

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

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   MODAL DE CONFIRMACIÓN & TOASTS
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-prominent);
  border-radius: var(--radius-xl);
  max-width: 520px;
  width: 100%;
  padding: 36px;
  box-shadow: var(--shadow-elevated);
  text-align: center;
  position: relative;
  animation: modal-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ==========================================================================
   RESPONSIVIDAD
   ========================================================================== */

@media (max-width: 1024px) {
  .cockpit-body {
    grid-template-columns: 1fr;
  }
  .cockpit-sidebar, .cockpit-telemetry {
    border: none;
    border-top: 1px solid var(--border-subtle);
  }
  .bombonera-grid {
    grid-template-columns: 1fr;
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn-glass {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-section {
    padding-top: 130px;
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
  .contact-form {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .slots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   AJUSTES DE LECTURA, LAYOUT Y ESPECIALIDAD DE IA
   ========================================================================== */

:root {
  --text-muted: #8090a8;
}

section[id],
#contacto,
#ia {
  scroll-margin-top: 108px;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

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

.container {
  min-width: 0;
  max-width: min(1240px, 100%);
}

.hero-line {
  display: block;
}

.hero-cockpit {
  width: 100%;
  max-width: 100%;
}

.nav-links {
  gap: 22px;
}

.btn-compact {
  padding: 9px 16px;
  font-size: 0.86rem;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  filter: none;
  box-shadow: none;
}

#demoTriggerReserve {
  white-space: nowrap;
}

.btn-block {
  width: 100%;
  padding: 15px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.02rem;
}

.mobile-drawer .btn {
  width: 100%;
  margin-top: 6px;
}

.badge-pill {
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
  justify-content: center;
}

.text-bright {
  color: #fff;
}

.inline-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ui-kicker {
  display: block;
  margin-bottom: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cockpit-file-tab {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-fast);
}

.cockpit-file-tab:hover,
.cockpit-file-tab.active {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.22);
  color: #fff;
}

.file-kind {
  width: 28px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
}

.file-kind.ts { color: #38bdf8; }
.file-kind.pay { color: #10b981; }
.file-kind.json { color: #f59e0b; }
.file-kind.ai { color: #c4b5fd; }

.stack-block {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cockpit-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #34d399;
}

.hero-cockpit,
.cockpit-body,
.cockpit-center,
.cockpit-sidebar,
.cockpit-telemetry {
  min-width: 0;
}

.cockpit-center {
  overflow: hidden;
}

.code-snippet {
  max-width: 100%;
}

.cockpit-center .code-snippet {
  height: 100%;
  margin: 0;
}

.demo-hint {
  margin-bottom: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.demo-admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.metric-delta {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  color: #7dd3fc;
}

.metric-delta.up {
  color: #34d399;
}

.ledger {
  padding: 4px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
}

.ledger-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
}

.ledger-row:last-child {
  border-bottom: 0;
}

.ledger-ok { color: #34d399; }
.ledger-wait { color: #f59e0b; }

.stack-panel {
  padding: 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.7;
  color: #94a3b8;
}

.stack-panel-title {
  margin-bottom: 6px;
  color: #38bdf8;
  font-weight: 600;
}

.ai-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: center;
  margin-bottom: 24px;
  padding: 36px 40px;
  border: 1px solid rgba(0, 240, 255, 0.28);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(520px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), rgba(0, 240, 255, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(14, 20, 32, 0.95), rgba(8, 10, 16, 0.96));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.ai-title {
  margin-bottom: 12px;
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
}

.ai-lead {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.65;
}

.ai-points {
  display: grid;
  gap: 10px;
  list-style: none;
}

.ai-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.45;
}

.ai-points svg {
  flex: none;
  margin-top: 3px;
  color: var(--primary);
}

.service-card,
.process-card {
  background-color: rgba(16, 20, 30, 0.7);
  background-image: radial-gradient(460px circle at var(--mouse-x, 50%) var(--mouse-y, 0%), rgba(0, 240, 255, 0.1), transparent 42%);
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}

.choice-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
}

p.estimator-label {
  margin: 0 0 16px;
}

.process-num {
  color: rgba(255, 255, 255, 0.16);
}

.comparison-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  min-width: 680px;
}

.faq-item.active .faq-answer {
  max-height: 720px;
}

.estimator-intro {
  margin-bottom: 36px;
  text-align: center;
}

.estimator-intro h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 3.5vw, 2.7rem);
}

.estimator-intro p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--text-secondary);
}

.result-data {
  min-width: 0;
  flex: 1 1 220px;
}

.result-price {
  font-size: clamp(2rem, 6vw, 2.8rem);
}

.result-currency {
  font-size: 1.1rem;
  font-weight: 500;
  color: #94a3b8;
}

.result-summary {
  display: block;
  max-width: 36rem;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.quote-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 280px;
}

.quote-actions .btn {
  width: 100%;
}

.contact-block {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--border-subtle);
}

.contact-block h3 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.contact-block > p {
  margin-bottom: 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.cta-title {
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 4.5vw, 3.3rem);
}

.cta-lead {
  max-width: 640px;
  margin: 0 auto 36px;
  color: var(--text-secondary);
  font-size: 1.12rem;
  line-height: 1.6;
}

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

.footer-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: #34d399;
  font-size: 0.8rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.footer-legal a {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer-legal a:hover {
  color: #fff;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px;
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-window h3 {
  margin: 0 28px 12px 0;
  color: #fff;
  font-size: 1.3rem;
}

.modal-mark {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.modal-mark.cyan {
  border-color: rgba(0, 240, 255, 0.4);
  background: rgba(0, 240, 255, 0.12);
  color: #00f0ff;
}

.modal-copy {
  margin-bottom: 18px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.modal-sheet {
  margin-bottom: 20px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.88rem;
  text-align: left;
}

.modal-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.modal-line span {
  color: #94a3b8;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.nav-open {
  overflow: hidden;
}

@media (max-width: 1100px) {
  .cockpit-body {
    grid-template-columns: 1fr;
  }

  .cockpit-sidebar,
  .cockpit-telemetry {
    border: none;
    border-top: 1px solid var(--border-subtle);
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 1.7rem;
    line-height: 1.15;
  }

  .hero-line {
    display: block;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .nav-wrapper {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero-trust-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    width: min(100%, 460px);
    margin: 4px auto 0;
    justify-items: start;
  }

  .ai-feature {
    grid-template-columns: 1fr;
    padding: 24px 18px;
  }

  .bombonera-card,
  .estimator-card {
    padding: 28px 18px;
  }

  .section {
    padding: 76px 0;
  }

  .demo-tabs,
  .cancha-header {
    flex-wrap: wrap;
  }

  .cockpit-title-bar {
    min-width: 0;
    overflow: hidden;
  }

  .cockpit-title-bar span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cockpit-header {
    height: auto;
    gap: 8px;
    padding: 12px 14px;
  }

  .demo-checkout-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .service-card {
    padding: 28px 22px;
  }

  .footer-bottom,
  .hero-trust-bar {
    align-items: flex-start;
  }

  .hero-trust-bar {
    gap: 12px 18px;
  }

  .quote-actions {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .demo-admin-grid {
    grid-template-columns: 1fr;
  }

  .b-stat-num {
    font-size: 1.45rem;
  }
}

@media (max-width: 420px) {
  .nav-glass {
    padding: 0 12px;
  }

  .btn-compact {
    padding: 8px 12px;
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
