:root {
  --bg-color: #050505;
  --text-color: #ffffff;
  --secondary-color: #cfcfcf;
  --accent-color: #ff6a00;
  --border-color: rgba(255, 255, 255, 0.08);
  --card-bg: rgba(255, 255, 255, 0.02);
  --font-title: "Raleway", sans-serif;
  --font-body: "Inter", sans-serif;
  --hud-width: 320px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

html,
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-body);
  overflow: hidden;
  /* Evita el scroll global, se maneja por vistas */
  width: 100%;
  height: 100vh;
  cursor: none;
}

/* ==========================================================================
           CUSTOM CURSOR
           ========================================================================== */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: var(--accent-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition:
    transform 0.15s ease-out,
    opacity 0.2s;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 106, 0, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition:
    width 0.3s ease,
    height 0.3s ease,
    border-color 0.3s ease,
    transform 0.1s ease-out;
  background: rgba(255, 106, 0, 0.03);
  backdrop-filter: blur(2px);
}

.cursor-hover .cursor-ring {
  width: 70px;
  height: 70px;
  border-color: var(--accent-color);
  background: rgba(255, 106, 0, 0.08);
}

/* ==========================================================================
           BACKGROUNDS & PARTICLES
           ========================================================================== */
#bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
}

.bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition:
    opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 10s linear;
  transform: scale(1.05);
}

.bg-layer.active {
  opacity: 1;
  transform: scale(1);
}

.bg-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
}

.scanlines {
  position: fixed;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0) 50%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.1)
  );
  background-size: 100% 4px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.3;
}

.ambient-glow {
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 106, 0, 0.05) 0%,
    transparent 60%
  );
  z-index: 1;
  pointer-events: none;
}

canvas#particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.6;
}

/* ==========================================================================
           PRELOADER
           ========================================================================== */
#preloader {
  position: fixed;
  inset: 0;
  background-color: var(--bg-color);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.terminal-box {
  font-family: monospace;
  font-size: 0.95rem;
  color: var(--accent-color);
  letter-spacing: 0.05em;
  margin-bottom: 3rem;
  text-align: left;
  width: 320px;
}

.terminal-line {
  opacity: 0;
  transform: translateY(5px);
  margin-bottom: 8px;
}

.preloader-brand {
  opacity: 0;
  transform: scale(0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* ==========================================================================
           LAYOUT & HUD
           ========================================================================== */
#app {
  position: relative;
  z-index: 10;
  display: flex;
  width: 100vw;
  height: 100vh;
}

.main-content {
  flex: 1;
  position: relative;
  height: 100vh;
}

.hud-panel {
  width: var(--hud-width);
  background: rgba(5, 5, 5, 0.4);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--border-color);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hud-panel.visible {
  transform: translateX(0);
}

.hud-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.hud-header img {
  width: 40px;
  filter: drop-shadow(0 0 10px rgba(255, 106, 0, 0.4));
}

.hud-title {
  font-family: var(--font-title);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--secondary-color);
  text-transform: uppercase;
}

.hud-status-box {
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--accent-color);
  background: rgba(255, 106, 0, 0.05);
  border: 1px solid rgba(255, 106, 0, 0.2);
  padding: 1rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 70px;
}

.hud-status-box .blink {
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Animación para el botón de descarga */
.spin {
  animation: spin 1s linear infinite;
  display: inline-block;
}

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

.hud-metrics {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1;
}

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

.metric-label {
  font-size: 0.75rem;
  color: #888;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
}

.metric-bar-bg {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.metric-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-color);
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.protocol-progress {
  position: fixed;
  top: 2rem;
  left: 4vw;
  z-index: 20;
  display: flex;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}

.protocol-progress.visible {
  opacity: 1;
}

.step-indicator {
  width: 40px;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  transition:
    background 0.4s,
    box-shadow 0.4s;
}

.step-indicator.active {
  background: var(--accent-color);
  box-shadow: 0 0 8px var(--accent-color);
}

/* ==========================================================================
           VIEWS & TRANSITIONS (CORREGIDO PARA SCROLL Y RESPONSIVE)
           ========================================================================== */
.view-container {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.98) translateY(20px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  scroll-behavior: smooth;
}

.view-container::-webkit-scrollbar {
  width: 6px;
}

.view-container::-webkit-scrollbar-track {
  background: transparent;
}

.view-container::-webkit-scrollbar-thumb {
  background: rgba(255, 106, 0, 0.3);
  border-radius: 10px;
}

.view-container.active {
  opacity: 1;
  pointer-events: all;
  transform: scale(1) translateY(0);
}

/* Contenedor interno que garantiza el centrado sin cortar el contenido */
.view-content {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8vh 6vw;
  max-width: 1200px;
  margin: 0 auto;
}

/* Para el reporte final, empezamos desde arriba */
#view-report .view-content {
  justify-content: flex-start;
  padding-top: 4vh;
  padding-bottom: 8vh;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 6vw, 6.5rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.8rem);
  color: var(--secondary-color);
  max-width: 600px;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 4rem;
}

.btn-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.2rem 2.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--accent-color);
  border-radius: 100px;
  color: #fff;
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: none;
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
}

.btn-premium::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-color);
  transform: translateX(-100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}

.btn-premium:hover {
  box-shadow: 0 0 30px rgba(255, 106, 0, 0.4);
  transform: translateY(-2px);
}

.btn-premium:hover::before {
  transform: translateX(0);
}

.btn-premium.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Questions */
.q-number {
  font-family: monospace;
  color: var(--accent-color);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  display: block;
}

.q-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 500;
  margin-bottom: 1rem;
  max-width: 900px;
  line-height: 1.2;
}

.q-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--secondary-color);
  margin-bottom: 3rem;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.option-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 1.8rem;
  border-radius: 16px;
  backdrop-filter: blur(12px);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--secondary-color);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: none;
  position: relative;
  overflow: hidden;
}

.option-card::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(
    circle,
    rgba(255, 106, 0, 0.2) 0%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  transition:
    width 0.5s,
    height 0.5s;
  border-radius: 50%;
  z-index: -1;
}

.option-card:hover {
  border-color: rgba(255, 106, 0, 0.5);
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.option-card:hover::after {
  width: 300px;
  height: 300px;
}

.opt-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.opt-content i {
  color: var(--accent-color);
  opacity: 0.5;
  transition: opacity 0.3s;
  flex-shrink: 0;
}

.option-card:hover .opt-content i {
  opacity: 1;
}

/* Multiple Selection Check */
.check-icon {
  opacity: 0;
  transform: scale(0.5);
  color: var(--accent-color);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.option-card.selected {
  background: rgba(255, 106, 0, 0.1);
  border-color: var(--accent-color);
  color: #fff;
  box-shadow: 0 0 40px rgba(255, 106, 0, 0.2);
  transform: scale(1.02);
}

.option-card.selected .check-icon {
  opacity: 1;
  transform: scale(1);
}

.option-card.selected .opt-content i {
  opacity: 1;
}

.continue-wrapper {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s;
  pointer-events: none;
}

.continue-wrapper.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* Final Report / PDF Container */
#pdf-export-area {
  width: 100%;
  background: transparent;
  color: #ffffff;
  position: relative;
}

/* Clase temporal que se añade por JS al exportar PDF para garantizar el fondo oscuro */
.pdf-exporting {
  background-color: #050505 !important;
  padding: 40px !important;
}

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

.diag-id {
  font-family: monospace;
  color: var(--accent-color);
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  letter-spacing: 0.1em;
}

.report-header {
  text-align: center;
  margin-bottom: 4rem;
  width: 100%;
}

.report-subtitle {
  font-family: monospace;
  color: var(--accent-color);
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

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

.report-section-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  color: #fff;
}

/* SWOT & Executive */
.exec-summary {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.8;
  color: var(--secondary-color);
  margin-bottom: 4rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 3rem;
  border-radius: 16px;
  font-weight: 300;
}

.exec-summary strong {
  color: #fff;
  font-weight: 500;
}

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

.swot-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 12px;
}

.swot-card.alert {
  border-color: rgba(255, 50, 50, 0.3);
}

.swot-card h4 {
  font-family: var(--font-title);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.swot-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--secondary-color);
  font-size: 0.95rem;
}

.swot-card ul li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.swot-card ul li i {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent-color);
}

/* Systems Detailed */
.system-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.system-card {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(255, 255, 255, 0.01) 100%
  );
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
}

.system-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 106, 0, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  flex-shrink: 0;
}

.sys-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 10px;
}

.sys-header h4 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: #fff;
}

.sys-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sys-badge {
  font-family: monospace;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid;
}

.sys-badge.high {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.sys-badge.time {
  border-color: #888;
  color: #aaa;
}

.sys-body p {
  color: var(--secondary-color);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.sys-body strong {
  color: #fff;
}

/* Architecture SVG */
.architecture-box {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  position: relative;
  margin-bottom: 4rem;
}

.arch-node {
  padding: 1rem 2rem;
  background: #050505;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: var(--font-title);
  letter-spacing: 0.1em;
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 400px;
}

.arch-node.highlight {
  border-color: var(--accent-color);
  box-shadow: 0 0 20px rgba(255, 106, 0, 0.2);
}

.arch-line {
  width: 2px;
  height: 40px;
  background: linear-gradient(
    to bottom,
    var(--border-color),
    var(--accent-color)
  );
}

/* Liquid Button */
.final-cta-section {
  text-align: center;
  padding-bottom: 5rem;
  padding-top: 3rem;
}

.final-cta-title {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4vw, 4.5rem);
  line-height: 1.2;
  margin-bottom: 3rem;
}

.liquid-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  padding: 1.8rem 3.5rem;
  cursor: none;
  filter: url(#gooey);
  z-index: 10;
  border: none;
  background: transparent;
}

.liquid-button .blob {
  position: absolute;
  inset: 0;
  background: var(--accent-color);
  border-radius: 100px;
  z-index: -1;
  transition: transform 0.3s;
}

.liquid-button:hover .blob {
  transform: scale(1.1);
  background: #ff7a00;
}

.liquid-button .text {
  position: relative;
  z-index: 2;
  pointer-events: none;
  letter-spacing: 0.1em;
}

.actions-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

/* Responsive Adapters */
@media (max-width: 1024px) {
  .hud-panel {
    display: none;
    /* Ocultar HUD lateral en tablets y móviles para dar espacio al contenido */
  }

  .report-grid,
  .swot-grid {
    grid-template-columns: 1fr;
  }

  .system-card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .sys-header {
    flex-direction: column;
    align-items: center;
  }

  .view-content {
    padding: 12vh 6vw;
  }
}

@media (max-width: 768px) {
  html,
  body {
    cursor: default;
    overflow: hidden;
  }

  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }

  .view-container {
    overflow-y: auto;
    height: 100vh;
    padding-bottom: 120px !important;
    /* Espacio extra abajo para que no choque con la pantalla */
    align-items: flex-start;
    /* Evita que el contenido se centre verticalmente y se esconda arriba */
  }

  .options-grid {
    grid-template-columns: 1fr;
  }

  .liquid-button {
    padding: 1.5rem 2rem;
    width: 100%;
  }

  .actions-footer .btn-premium {
    width: 100%;
  }

  .exec-summary {
    padding: 1.5rem;
  }
}

/* Regla extra para pantallas extremadamente pequeñas (iPhone SE, etc) */
@media (max-width: 400px) {
  .question-title {
    font-size: 1.6rem !important;
  }

  .hero-title {
    font-size: 2.2rem !important;
  }
}

@media (max-width: 900px) {
  /* 1. Permitir scroll interno en las vistas para que nada se corte */
  html,
  body {
    /* Mantenemos overflow hidden general para no romper el fondo */
    cursor: auto !important;
    /* Restaurar cursor nativo en táctil */
  }

  /* Desactivamos tu cursor personalizado en móviles para no causar bugs táctiles */
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }

  /* Cada vista principal ahora permitirá hacer scroll si el contenido es largo */
  .view-container {
    overflow-y: auto;
    height: 100vh;
    padding: 40px 20px 100px 20px !important;
    /* Más espacio abajo para los botones */
    align-items: flex-start;
    /* Evita que el contenido se centre y se esconda arriba */
  }

  /* Contenedores para que no choquen con los bordes */
  .q-wrapper,
  .report-container {
    width: 100%;
    margin-top: 40px;
    /* Separación desde arriba */
  }

  /* 2. Ajuste de Tipografía para que no se salga de la pantalla */
  .question-title {
    font-size: 2rem !important;
    /* Tamaño más legible en móviles */
    margin-bottom: 2rem;
  }

  /* 3. Colapsar Grillas (Cards de opciones y Diagnóstico DAFO) a 1 columna */
  .options-grid {
    grid-template-columns: 1fr !important;
    gap: 15px;
    width: 100%;
  }

  .swot-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  /* 4. Ajustar las tarjetas de opciones */
  .option-card {
    padding: 1.5rem;
    min-height: auto;
  }

  /* 5. Ajustar el indicador de progreso para que no estorbe */
  .protocol-progress {
    bottom: 20px;
    left: 20px;
    gap: 5px;
    flex-wrap: wrap;
    /* Si son muchos pasos, bajan de línea */
    width: 90%;
  }

  .step-indicator {
    width: 25px;
    /* Más cortos en celular */
  }

  /* 6. Botones responsivos a todo el ancho */
  .liquid-button {
    width: 100%;
    /* Botones de ancho completo */
    font-size: 1.1rem;
    padding: 15px 20px;
    margin-top: 20px;
  }

  /* 7. Ajustes del reporte final (Dashboard) */
  .report-section {
    padding: 1.5rem !important;
  }

  .hud-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
}

/* ==========================================================================
   LEAD CAPTURE MODAL STYLES
   ========================================================================== */
.lead-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  animation: fadeInModal 0.3s ease forwards;
}

.lead-modal-card {
  background: linear-gradient(
    145deg,
    rgba(20, 20, 20, 0.95),
    rgba(10, 10, 10, 0.98)
  );
  border: 1px solid var(--accent-color);
  border-radius: 12px;
  padding: 2.5rem;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 0 30px rgba(255, 106, 0, 0.2);
  position: relative;
}

.lead-modal-header h3 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.5rem;
}

.lead-modal-header h3 svg {
  color: var(--accent-color);
  width: 24px;
  height: 24px;
}

.lead-modal-header p {
  color: var(--secondary-color);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 10px rgba(255, 106, 0, 0.3);
}

.modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.modal-actions button {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--secondary-color);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-color: #fff;
}

@keyframes fadeInModal {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ==========================================================================
   LEAD CAPTURE MODAL STYLES
   ========================================================================== */
.lead-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  animation: fadeInModal 0.3s ease forwards;
}

.lead-modal-card {
  background: linear-gradient(
    145deg,
    rgba(20, 20, 20, 0.95),
    rgba(10, 10, 10, 0.98)
  );
  border: 1px solid var(--accent-color);
  border-radius: 12px;
  padding: 2.5rem;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 0 30px rgba(255, 106, 0, 0.2);
  position: relative;
}

.lead-modal-header h3 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.5rem;
}

.lead-modal-header h3 svg {
  color: var(--accent-color);
  width: 24px;
  height: 24px;
}

.lead-modal-header p {
  color: var(--secondary-color);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 10px rgba(255, 106, 0, 0.3);
}

.modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.modal-actions button {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--secondary-color);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-color: #fff;
}
@keyframes fadeInModal {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* --- Botón de Retroceso --- */
.btn-back {
  background: transparent;
  color: var(--accent-color); /* Usará tu naranja tecnológico */
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: monospace;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem; /* Separación de la pregunta */
}

.btn-back:hover {
  background: var(--accent-color);
  color: #050505; /* Texto oscuro al pasar el cursor */
  box-shadow: 0 0 15px rgba(255, 106, 0, 0.4);
}