/* ==========================================================================
   Estilos Base y Variables de Diseño - sagidesconecta.com
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Paleta de colores */
  --bg-main: #0a0d16;
  --bg-card: rgba(20, 27, 45, 0.65);
  --bg-card-hover: rgba(28, 38, 62, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(6, 182, 212, 0.4);
  
  --primary: #06b6d4;         /* Cyan */
  --primary-glow: rgba(6, 182, 212, 0.15);
  --secondary: #6366f1;       /* Indigo */
  --secondary-glow: rgba(99, 102, 241, 0.15);
  --accent: #10b981;          /* Emerald/Active status */
  
  --text-main: #f8fafc;       /* Slate 50 */
  --text-muted: #94a3b8;      /* Slate 400 */
  --text-dark: #0f172a;       /* Slate 900 */
  
  /* Fuentes */
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Efectos y curvas */
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-glow: 0 0 20px rgba(6, 182, 212, 0.25);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);

  /* Nuevas variables de tema dinámico */
  --header-bg: rgba(10, 13, 22, 0.75);
  --header-scrolled-bg: rgba(6, 9, 16, 0.95);
  --footer-bg: #060910;
  --bg-glow-tint-1: rgba(99, 102, 241, 0.05);
  --bg-glow-tint-2: rgba(6, 182, 212, 0.05);
  --bg-glow-tint-3: rgba(16, 185, 129, 0.03);
  --bg-form-input: rgba(10, 13, 22, 0.6);
  --bg-form-input-focus: rgba(10, 13, 22, 0.8);
  --logo-text-gradient: linear-gradient(135deg, #fff 40%, var(--primary) 100%);
  --logo-filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.55));
  --support-bg: rgba(15, 23, 42, 0.4);
  --bg-section-alt: rgba(15, 23, 42, 0.2);
  --bg-contact-gradient: linear-gradient(180deg, var(--bg-main) 0%, rgba(20, 27, 45, 0.4) 100%);
}

body.light-theme {
  --bg-main: #f8fafc;         /* Slate 50 */
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --border-color: rgba(15, 23, 42, 0.08);
  --border-hover: rgba(6, 182, 212, 0.6);
  
  --text-main: #0f172a;       /* Slate 900 */
  --text-muted: #475569;      /* Slate 600 */
  
  --header-bg: rgba(248, 250, 252, 0.8);
  --header-scrolled-bg: rgba(241, 245, 249, 0.95);
  --footer-bg: #e2e8f0;       /* Slate 200 */
  
  --bg-glow-tint-1: rgba(99, 102, 241, 0.02);
  --bg-glow-tint-2: rgba(6, 182, 212, 0.02);
  --bg-glow-tint-3: rgba(16, 185, 129, 0.01);
  
  --bg-form-input: rgba(255, 255, 255, 0.9);
  --bg-form-input-focus: rgba(255, 255, 255, 1);
  --logo-text-gradient: linear-gradient(135deg, var(--text-main) 40%, var(--primary) 100%);
  --logo-filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.25));
  --support-bg: rgba(241, 245, 249, 0.6);
  --bg-section-alt: rgba(15, 23, 42, 0.02);
  --bg-contact-gradient: linear-gradient(180deg, var(--bg-main) 0%, rgba(15, 23, 42, 0.03) 100%);
}

body.light-theme .hero-title {
  background: linear-gradient(135deg, var(--text-main) 50%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-theme .support-wrapper h3 {
  background: linear-gradient(135deg, var(--text-main) 50%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-theme .logo-img {
  filter: invert(1) hue-rotate(180deg) brightness(0.85);
}

/* Correcciones y mejoras para el Tema Claro */
body.light-theme .btn-secondary {
  background: rgba(15, 23, 42, 0.04);
  color: var(--text-main);
  border-color: var(--border-color);
}
body.light-theme .btn-secondary:hover {
  background: rgba(15, 23, 42, 0.08);
  border-color: var(--primary);
}
body.light-theme .info-contact-card {
  background: rgba(15, 23, 42, 0.02);
}
body.light-theme .info-contact-card:hover {
  background: rgba(15, 23, 42, 0.05);
}
body.light-theme .footer-dl-btn {
  background: rgba(15, 23, 42, 0.04);
  border-color: var(--border-color);
}
body.light-theme .footer-dl-btn:hover {
  background: rgba(15, 23, 42, 0.08);
  border-color: var(--primary);
}
body.light-theme .bar-track {
  background: rgba(15, 23, 42, 0.08);
}

/* Reset de estilos */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Fondo de constelación/red abstracto (CSS Puro) */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 10% 20%, var(--bg-glow-tint-1) 0%, transparent 40%),
    radial-gradient(circle at 80% 50%, var(--bg-glow-tint-2) 0%, transparent 45%),
    radial-gradient(circle at 40% 80%, var(--bg-glow-tint-3) 0%, transparent 35%);
  z-index: -2;
  pointer-events: none;
}

/* Estilos de tipografía y contenedores */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p {
  color: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 8rem 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 5rem 0;
  }
}

/* Títulos de sección */
.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title span {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.section-title h2 {
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--text-main) 30%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Botones con estilo premium */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4), var(--shadow-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border-color: var(--border-color);
  backdrop-filter: blur(5px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* ==========================================================================
   Menú de Navegación (Header)
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.header.scrolled {
  padding: 0.5rem 0;
  background: var(--header-scrolled-bg);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: var(--transition);
}

.header.scrolled .nav-container {
  height: 70px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 54px;
  width: auto;
  filter: var(--logo-filter);
  transition: var(--transition);
}

.header.scrolled .logo-img {
  height: 40px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-title);
  background: var(--logo-text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: var(--transition);
}

/* Transición del botón de cambio de tema */
.theme-btn:hover {
  color: var(--primary) !important;
  transform: rotate(15deg) scale(1.15);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

@media (max-width: 992px) {
  .nav-menu {
    gap: 1.25rem;
  }
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
}

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

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 2.5px;
  background-color: var(--text-main);
  transition: var(--transition);
  border-radius: 2px;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: rgba(10, 13, 22, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 2.5rem;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid var(--border-color);
    align-items: flex-start;
  }
  
  body.light-theme .nav-menu {
    background-color: rgba(248, 250, 252, 0.98);
  }
  
  .header.scrolled .nav-menu {
    top: 65px;
    height: calc(100vh - 65px);
  }
  
  .nav-menu.open {
    left: 0;
  }
  
  .nav-link {
    font-size: 1.2rem;
  }
  
  .nav-btn {
    width: 100%;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }
  .connect-row {
    flex-direction: column;
    align-items: stretch;
  }
  #session-code {
    max-width: 100% !important;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 4rem;
  overflow: hidden;
}

#hero-network-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
}

.badge-location {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  color: var(--primary);
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  animation: pulse-border 3s infinite;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  display: inline-block;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 40%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.8rem;
  }
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

@media (max-width: 992px) {
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 992px) {
  .hero-actions {
    justify-content: center;
  }
}

/* Ilustración / Servidor virtualizado */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.glow-sphere {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
  z-index: -1;
  animation: float-slow 8s ease-in-out infinite;
}

.server-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.server-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.server-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 40px -15px rgba(6, 182, 212, 0.2);
}

.server-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.server-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--accent);
  background: rgba(16, 185, 129, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 30px;
  font-weight: 500;
}

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

.server-bar-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.bar-label span:last-child {
  color: var(--primary);
  font-weight: 600;
}

.bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 10px;
  transition: width 1.5s ease-in-out;
}

.server-footer-info {
  margin-top: 2rem;
  font-size: 0.8rem;
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

/* ==========================================================================
   Descarga de Agente (Soporte Remoto)
   ========================================================================== */

.support-section {
  padding: 4rem 0;
  background: var(--support-bg);
  border-top: 1px solid var(--border-color);
  transition: var(--transition);
}

.support-wrapper {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  transition: var(--transition);
}

.support-wrapper h3 {
  font-size: 1.8rem;
  margin-bottom: 0;
  background: linear-gradient(135deg, #fff 50%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.support-wrapper p {
  max-width: 700px;
  margin: 0 auto 2.5rem;
  font-size: 1.1rem;
}

.download-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  width: 280px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.download-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 25px -5px rgba(6, 182, 212, 0.15);
}

.download-card.highlight {
  border-color: var(--secondary);
}

.download-card.highlight .os-badge {
  background: var(--secondary);
  color: #fff;
}

.download-card.highlight::after {
  content: 'Tu Sistema Detectado';
  position: absolute;
  top: -12px;
  background: var(--secondary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-title);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.os-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-card.highlight .os-icon {
  color: var(--text-main);
  filter: drop-shadow(0 0 8px var(--secondary));
}

.download-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.download-card span {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.download-card .btn {
  width: 100%;
}

/* ==========================================================================
   Sección Servicios (Solo Sistemas)
   ========================================================================== */

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

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.05) 0%, transparent 100%);
  opacity: 0;
  transition: var(--transition);
  z-index: -1;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card), 0 10px 25px -10px rgba(6, 182, 212, 0.15);
}

.service-card:hover::after {
  opacity: 1;
}

.service-icon-wrapper {
  width: 60px;
  height: 60px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-size: 1.75rem;
  transition: var(--transition);
}

.service-card:hover .service-icon-wrapper {
  background: var(--primary);
  color: var(--bg-main);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
  transform: scale(1.05);
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   Sección Nosotros / Sagides-Soria
   ========================================================================== */

.about {
  position: relative;
  background: var(--bg-section-alt);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.about-content h3 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 40%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  text-align: center;
  transition: var(--transition);
}

.stat-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-title);
  color: var(--primary);
  margin-bottom: 0.25rem;
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
}

/* Efecto de cristal/gradiente encima de la imagen decorativa */
.about-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(10, 13, 22, 0.85), transparent 60%);
}

.about-caption {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  z-index: 2;
}

.about-caption h4 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.about-caption p {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
}

/* ==========================================================================
   Sección Información & Preguntas ("¿Por qué nosotros?")
   ========================================================================== */

.info-section {
  position: relative;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 992px) {
  .info-cards {
    grid-template-columns: 1fr;
  }
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: var(--transition);
}

.info-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 10px 20px -5px rgba(6, 182, 212, 0.1);
}

.info-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.info-card-num {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  color: rgba(6, 182, 212, 0.3);
}

.info-card h4 {
  font-size: 1.15rem;
}

.info-card p {
  font-size: 0.95rem;
}

/* ==========================================================================
   Contacto e Interactividad
   ========================================================================== */

.contact {
  position: relative;
  background: var(--bg-contact-gradient);
  border-top: 1px solid var(--border-color);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.contact-form-wrapper {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  position: relative;
}

@media (max-width: 576px) {
  .contact-form-wrapper {
    padding: 2rem 1.5rem;
  }
}

.contact-form-wrapper h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.contact-form-wrapper > p {
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 576px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-group.no-margin {
  margin-bottom: 0;
}

.form-label {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.form-control {
  background: var(--bg-form-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
  width: 100%;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
  background: var(--bg-form-input-focus);
}

.connect-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

#session-code {
  flex: 1;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-form-input);
  color: var(--text-main);
  font-family: var(--font-title);
  font-size: 1.1rem;
  text-align: center;
  letter-spacing: 0.15em;
  font-weight: 700;
  outline: none;
  transition: var(--transition);
  max-width: 180px;
}

#session-code::placeholder {
  color: var(--text-muted);
  opacity: 0.4;
}

#session-code:focus {
  border-color: var(--primary);
  background: var(--bg-form-input-focus);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
}

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

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.form-consent input[type="checkbox"] {
  margin-top: 0.3rem;
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.form-consent label {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  cursor: pointer;
}

.form-consent a {
  color: var(--primary);
  text-decoration: underline;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
}

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

.info-contact-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition);
}

.info-contact-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-hover);
}

.info-icon {
  width: 50px;
  height: 50px;
  background: rgba(6, 182, 212, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.info-details h5 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.info-details p, .info-details a {
  font-size: 1.05rem;
  color: var(--text-main);
  font-weight: 500;
}

.info-details a:hover {
  color: var(--primary);
}

/* Área de mapa o ilustración local decorativa */
.map-illustration {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 220px;
}

.map-glow {
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  z-index: 1;
}

.map-text {
  position: relative;
  z-index: 2;
}

.map-text h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.map-text p {
  font-size: 0.9rem;
  max-width: 280px;
  margin: 0 auto;
}

/* Pantalla de éxito del formulario */
.form-success-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-main);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.form-success-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: rgba(16, 185, 129, 0.1);
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
  animation: scale-up 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.form-success-overlay h4 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.form-success-overlay p {
  max-width: 350px;
  margin-bottom: 2rem;
}

/* Loader */
.loader {
  display: none;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
  margin-left: 0.5rem;
}

.btn.loading .loader {
  display: inline-block;
}

.btn.loading span {
  opacity: 0.7;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 2rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

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

.footer-brand p {
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-links-col h4 {
  color: var(--text-main);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer-links-col ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links-col a {
  font-size: 0.95rem;
}

.footer-links-col a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-downloads {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}

.footer-dl-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary);
  color: var(--text-main);
}

.footer-dl-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

@media (max-width: 576px) {
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

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

.footer-copy span {
  color: var(--primary);
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-links a:hover {
  color: var(--primary);
}

/* ==========================================================================
   Efectos y Animaciones Keyframes
   ========================================================================== */

@keyframes float-slow {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-15px) scale(1.05);
  }
}

@keyframes pulse-border {
  0%, 100% {
    border-color: rgba(6, 182, 212, 0.2);
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.1);
  }
  50% {
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 0 12px 2px rgba(6, 182, 212, 0.2);
  }
}

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

@keyframes scale-up {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Animaciones de Entrada (Scroll) */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.appear {
  opacity: 1;
  transform: translateY(0);
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  z-index: 9999;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: translateY(-5px) scale(1.08);
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
  }
  .whatsapp-float svg {
    width: 22px;
    height: 22px;
  }
}

/* Badge estilizado para WhatsApp en la tarjeta de contacto */
.whatsapp-btn-badge {
  background: rgba(37, 211, 102, 0.1);
  color: #25d366 !important;
  border: 1px solid rgba(37, 211, 102, 0.25);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.whatsapp-btn-badge:hover {
  background: #25d366;
  color: #fff !important;
  border-color: #25d366;
  box-shadow: 0 0 10px rgba(37, 211, 102, 0.4);
}

body.light-theme .whatsapp-btn-badge {
  background: rgba(37, 211, 102, 0.08);
  border-color: rgba(37, 211, 102, 0.3);
}

body.light-theme .whatsapp-btn-badge:hover {
  background: #25d366;
  color: #fff !important;
}

/* ==========================================================================
   ESTILOS INTERACTIVOS PREMIUM
   ========================================================================== */

/* 1. Modal de Guía de Soporte Remoto */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 13, 22, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  max-width: 600px;
  width: 100%;
  box-shadow: var(--shadow-card);
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow-y: auto;
  max-height: 90vh;
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

body.light-theme .modal-overlay {
  background: rgba(248, 250, 252, 0.7);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-main);
  transform: rotate(90deg);
}

.modal-card h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--text-main) 50%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-desc {
  font-size: 0.95rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

.modal-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.modal-step-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: var(--transition);
}

body.light-theme .modal-step-item {
  background: rgba(15, 23, 42, 0.01);
  border-color: rgba(15, 23, 42, 0.03);
}

.modal-step-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--primary);
  transform: translateX(4px);
}

body.light-theme .modal-step-item:hover {
  background: rgba(15, 23, 42, 0.03);
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.1);
  color: var(--primary);
  border: 1.5px solid rgba(6, 182, 212, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.step-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.modal-footer-info {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 576px) {
  .modal-card {
    padding: 2rem 1.5rem;
  }
  .modal-step-item {
    padding: 0.75rem;
  }
}

/* 2. Consola de Diagnóstico Express (Mock Terminal) */
.terminal-container {
  background: #05070c;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
  margin-top: 2.5rem;
  width: 100%;
}

.terminal-container:hover {
  border-color: var(--border-hover);
}

body.light-theme .terminal-container {
  background: #0b0f17; /* Se mantiene oscura en tema claro para mantener el aspecto de terminal real */
  border-color: rgba(255, 255, 255, 0.1);
}

.terminal-header {
  background: #0f1420;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #eab308; }
.dot-green { background: #22c55e; }

.terminal-title {
  font-family: monospace;
  font-size: 0.8rem;
  color: #94a3b8;
  flex: 1;
  text-align: center;
  margin-right: 48px; /* Compensar los puntos */
}

.terminal-body {
  padding: 1.5rem;
  min-height: 180px;
  max-height: 250px;
  overflow-y: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  background: #05070c;
  position: relative;
}

.terminal-hidden-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: -1;
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background-color: #f8fafc;
  margin-left: 2px;
  animation: terminal-cursor-blink 1.2s step-end infinite;
  vertical-align: middle;
}

@keyframes terminal-cursor-blink {
  from, to { background-color: transparent }
  50% { background-color: #f8fafc }
}

.terminal-line {
  margin-bottom: 0.5rem;
  color: #a7f3d0; /* Verde terminal claro */
  text-align: left;
}

.terminal-line.error {
  color: #fca5a5;
}

.terminal-line.text-muted {
  color: #64748b;
}

.terminal-prompt {
  color: #38bdf8; /* Azul cyan prompt */
  font-weight: bold;
  margin-right: 0.5rem;
}

.terminal-text {
  color: #f8fafc;
}

.terminal-controls {
  padding: 1rem 1.5rem;
  background: #0a0d16;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

#btn-run-diagnostics {
  background: var(--primary) !important;
  color: #05070c !important;
  border-color: var(--primary) !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3) !important;
}

#btn-run-diagnostics:hover {
  background: #22d3ee !important;
  border-color: #22d3ee !important;
  color: #05070c !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 15px rgba(6, 182, 212, 0.5) !important;
}

.terminal-note {
  font-size: 0.75rem;
  color: #64748b;
}

@media (max-width: 576px) {
  .terminal-controls {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

/* 3. Mapa de Cobertura Animado de Soria */
.map-illustration-interactive {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  gap: 1.75rem;
  align-items: center;
  overflow: hidden;
  margin-top: 1.5rem;
}

.map-interactive-svg {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.map-interactive-content {
  text-align: left;
}

.map-interactive-content h4 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.map-interactive-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.soria-map-svg {
  width: 100%;
  height: auto;
  max-height: 220px;
}

.flow-line {
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.5;
  stroke-dasharray: 6 6;
  animation: flow-dash 1.2s linear infinite;
  opacity: 0.65;
}

@keyframes flow-dash {
  to {
    stroke-dashoffset: -12;
  }
}

.map-node {
  fill: var(--bg-main);
  stroke: var(--primary);
  stroke-width: 2;
  filter: drop-shadow(0 0 4px var(--primary));
  transition: var(--transition);
}

.map-node:hover {
  fill: var(--primary);
  transform: scale(1.3);
}

.map-node.node-origin {
  fill: var(--primary);
  stroke: #fff;
  stroke-width: 2.5;
}

.map-node-pulse {
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.5;
  animation: pulse-ring 2.5s cubic-bezier(0.215, 0.610, 0.355, 1) infinite;
  transform-origin: 190px 180px;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.5);
    opacity: 1;
  }
  80%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.map-label {
  font-family: var(--font-title);
  font-size: 0.7rem;
  font-weight: 700;
  fill: var(--text-muted);
}

.map-label.label-origin {
  fill: var(--primary);
  font-size: 0.8rem;
}

body.light-theme .map-label {
  fill: #64748b;
}

body.light-theme .map-label.label-origin {
  fill: var(--primary);
}

@media (max-width: 768px) {
  .map-illustration-interactive {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
  }
  .soria-map-svg {
    max-height: 200px;
  }
}

/* 4. Transición Líquida de Tema Claro/Oscuro */
.theme-transition-circle {
  position: fixed;
  border-radius: 50%;
  background: var(--bg-main);
  z-index: 99999;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  width: 50px;
  height: 50px;
  transition: transform 0.6s cubic-bezier(0.1, 0.8, 0.3, 1);
}

/* 5. Calculadora de Ahorro y Prevención en Mantenimiento */
.calculadora-seccion {
  position: relative;
  background: var(--bg-section-alt);
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.calc-benefits {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.benefit-item {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.benefit-icon {
  width: 22px;
  height: 22px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.calculator-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-card);
}

.calculator-card h3 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--text-main);
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2.5rem;
  text-align: left;
}

.calc-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.slider-val {
  color: var(--primary);
  font-weight: bold;
  font-family: var(--font-title);
  font-size: 1rem;
}

.calc-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  outline: none;
  transition: var(--transition);
}

body.light-theme .calc-slider {
  background: rgba(15, 23, 42, 0.06);
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.6);
}

.calc-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.result-box {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.01);
}

.result-box.loss {
  border-color: rgba(239, 68, 68, 0.15);
  background: rgba(239, 68, 68, 0.02);
}

.result-box.savings {
  border-color: rgba(16, 185, 129, 0.2);
  background: rgba(16, 185, 129, 0.03);
}

.result-title {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.result-number {
  font-size: 1.75rem;
  font-weight: 800;
  font-family: var(--font-title);
  display: block;
  transition: var(--transition);
}

.result-box.loss .result-number {
  color: #ef4444;
}

.result-box.savings .result-number {
  color: var(--accent);
}

@media (max-width: 992px) {
  .calculator-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 576px) {
  .calculator-card {
    padding: 2rem 1.5rem;
  }
  .calc-results {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ==========================================================================
   6. CUESTIONARIO IT Y SLIDER DE COMPARACIÓN (Fase 2)
   ========================================================================== */

.auditoria-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2.5rem;
}

@media (max-width: 992px) {
  .auditoria-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* 6a. Tarjeta del Test IT */
.audit-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: flex;
  flex-direction: column;
}

@media (max-width: 576px) {
  .audit-card {
    padding: 2rem 1.5rem;
  }
}

.audit-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.audit-intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 2rem;
}

.audit-questions {
  position: relative;
  min-height: 140px;
}

.audit-question-item {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  animation: fadeIn 0.4s ease forwards;
}

.audit-q-num {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--primary-glow);
  color: var(--primary);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.audit-q-text {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.45;
}

.audit-q-options {
  display: flex;
  gap: 1rem;
}

.btn-audit {
  flex: 1;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-title);
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.btn-audit.btn-yes {
  background: rgba(16, 185, 129, 0.05);
  color: #10b981;
}

.btn-audit.btn-yes:hover {
  background: #10b981;
  color: #fff;
  border-color: #10b981;
}

.btn-audit.btn-no {
  background: rgba(239, 68, 68, 0.05);
  color: #ef4444;
}

.btn-audit.btn-no:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}

/* 6b. Resultados del Test */
.audit-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  animation: fadeIn 0.5s ease forwards;
}

.audit-score-container {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.score-ring {
  transform: rotate(-90deg);
}

.score-ring-bg {
  stroke: rgba(255, 255, 255, 0.05);
}

body.light-theme .score-ring-bg {
  stroke: rgba(15, 23, 42, 0.05);
}

.score-ring-fill {
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.1, 0.8, 0.2, 1);
}

.score-text {
  position: absolute;
  text-align: center;
}

#audit-score-value {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: var(--font-title);
  display: block;
}

.score-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.audit-diagnostico {
  text-align: center;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  width: 100%;
}

.audit-diagnostico h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.audit-diagnostico p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* 6c. Slider de Comparación de Rack */
.slider-comparison-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: flex;
  flex-direction: column;
}

@media (max-width: 576px) {
  .slider-comparison-card {
    padding: 2rem 1.5rem;
  }
}

.slider-comparison-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.slider-intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 2rem;
}

.comparison-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  user-select: none;
  cursor: ew-resize;
}

.comparison-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.img-before-container {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  overflow: hidden;
  border-right: 2px solid transparent;
}

.img-before {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  max-width: none;
}

.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background-color: var(--primary);
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.handle-line {
  flex: 1;
  width: 2px;
  background-color: var(--primary);
}

.handle-button {
  width: 36px;
  height: 36px;
  background-color: var(--bg-main);
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
  cursor: ew-resize;
  transition: transform 0.2s ease;
}

.handle-button svg {
  width: 14px;
  height: 14px;
}

.handle-button svg:first-child {
  margin-right: -4px;
}

.handle-button svg:last-child {
  margin-left: -4px;
}

.comparison-slider:hover .handle-button {
  transform: scale(1.15);
  background-color: var(--primary);
  color: var(--bg-main);
}
