/* =========================================
   STYLE-MAIN.CSS (Solo para index.html)
   ========================================= */
:root {
  --bg-dark: #020108;
  --panel-dark: #0a0a0c;
  --primary-purple: #8646f4;
  --primary-pink: #f271d9;
  --text-main: #ffffff;
  --text-muted: #a1a1aa;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  line-height: 1.6;
}

h1,
h2,
h3 {
  overflow-wrap: break-word;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Fondo Dinámico */
#network-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Navegación y Botones */
.glass-nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 0;
  background: rgba(2, 1, 8, 0.4);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  z-index: 100;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 1px;
}
.logo span {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.logo-icon {
  width: 22px;
  height: 22px;
  background: linear-gradient(
    135deg,
    var(--primary-pink),
    var(--primary-purple)
  );
  border-radius: 6px;
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  transition: color 0.3s;
}
.nav-links a:hover {
  color: var(--primary-pink);
}

.btn {
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-block;
  border: none;
}
.btn-primary {
  background: var(--text-main);
  color: var(--bg-dark);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}
.btn-primary:hover {
  background: var(--primary-pink);
  color: var(--text-main);
  box-shadow: 0 0 30px rgba(242, 113, 217, 0.5);
  transform: translateY(-2px);
}
.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-main);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--primary-purple);
  background: rgba(134, 70, 244, 0.1);
}
.mt-4 {
  margin-top: 1.5rem;
}
.w-100 {
  width: 100%;
  text-align: center;
  padding: 16px;
  margin-top: 1rem;
}
.text-center {
  text-align: center;
}

/* Estilos Glassmorphism */
.glass-panel {
  background: rgba(10, 10, 12, 0.6);
  backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 24px;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.8),
    inset 0 0 10px rgba(255, 255, 255, 0.01);
}
.glass-panel-sm {
  background: rgba(10, 10, 12, 0.8);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 2.5rem;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}
.glass-panel-sm:hover {
  border-color: rgba(134, 70, 244, 0.4);
}
.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  border: 1px solid var(--primary-purple);
  color: var(--primary-pink);
  margin-bottom: 2.5rem;
}
.text-gradient {
  background: linear-gradient(
    90deg,
    var(--primary-pink),
    var(--primary-purple)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hero */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}
.hero-content {
  padding: 5rem 4rem;
  max-width: 900px;
  text-align: center;
}
.hero-content h1 {
  font-size: 5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -2px;
}
.hero-content p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* Soluciones (🔥 FIX APLICADO AQUÍ 🔥) */
.solutions-section {
  padding: 8rem 0;
  position: relative;
  z-index: 10;
}
.solutions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: stretch;
}

/* Corrección de alineación estricta para escritorio */
.solutions-content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2rem;
  width: 100%;
}
.solutions-content .glass-panel-sm {
  width: 100% !important;
  margin: 0 !important;
}
.solutions-content .glass-panel-sm:hover {
  transform: translateY(-5px);
}
.solutions-content h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-main);
}
.solutions-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* El SVG fantasma bloqueado para no romper la grilla */
.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.custom-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 10px rgba(242, 113, 217, 0.3));
  transition:
    filter 0.3s ease,
    transform 0.3s ease;
}
.solution-item:hover .custom-icon {
  filter: drop-shadow(0 0 15px rgba(134, 70, 244, 0.6));
  transform: scale(1.05);
}
.custom-icon svg {
  width: 100%;
  height: 100%;
}
.solutions-3d {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0;
}

/* Demo AR (Mockup del Index) */
.ar-section {
  padding: 6rem 0;
  position: relative;
  z-index: 10;
}
.ar-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}
.ar-info h2 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.ar-features {
  list-style: none;
  margin: 2rem 0;
}
.ar-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.neon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-pink);
  box-shadow: 0 0 10px var(--primary-pink);
}
.scanner-frame {
  position: relative;
  width: 100%;
  height: 450px;
  background: #020105;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.02);
}
.corner {
  position: absolute;
  width: 40px;
  height: 40px;
  border-color: var(--primary-purple);
  border-style: solid;
  transition: all 0.3s ease;
}
.top-left {
  top: 20px;
  left: 20px;
  border-width: 2px 0 0 2px;
}
.top-right {
  top: 20px;
  right: 20px;
  border-width: 2px 2px 0 0;
}
.bottom-left {
  bottom: 20px;
  left: 20px;
  border-width: 0 0 2px 2px;
}
.bottom-right {
  bottom: 20px;
  right: 20px;
  border-width: 0 2px 2px 0;
}
.scanner-frame:hover .corner {
  width: 50px;
  height: 50px;
  border-color: var(--primary-pink);
}
.scanner-idle {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.scanner-idle p {
  color: var(--text-main);
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}
.status-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* Timeline, IA, Contacto, Footer, etc. (Tu diseño original) */
.process-section {
  padding: 6rem 0;
  position: relative;
  z-index: 10;
}
.section-subtitle {
  color: var(--text-muted);
  max-width: 600px;
  margin: 1rem auto 4rem auto;
  font-size: 1.1rem;
}
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}
.timeline-glow-line {
  position: absolute;
  top: 55px;
  left: 5%;
  width: 90%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-purple),
    var(--primary-pink),
    transparent
  );
  z-index: -1;
  box-shadow: 0 0 15px var(--primary-purple);
  opacity: 0.6;
}
.timeline-step {
  position: relative;
  padding: 2.5rem 2rem;
  text-align: left;
}
.timeline-step:hover {
  transform: translateY(-8px);
  box-shadow:
    0 15px 30px rgba(0, 0, 0, 0.8),
    inset 0 0 15px rgba(242, 113, 217, 0.05);
}
.step-number {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 1.5rem;
  display: inline-block;
  opacity: 0.9;
}
.timeline-step h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}
.timeline-step p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-section {
  padding: 6rem 0;
  position: relative;
  z-index: 10;
}
.contact-glass {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  text-align: left;
  padding: 4rem;
}
.contact-info h2 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.contact-info p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 0;
}
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.input-group input,
.input-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  color: var(--text-main);
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
  resize: vertical;
}
.input-group input:focus,
.input-group textarea:focus {
  border-color: var(--primary-pink);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 15px rgba(242, 113, 217, 0.2);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 6rem 0 2rem 0;
  position: relative;
  z-index: 10;
  background: radial-gradient(
    circle at bottom,
    rgba(134, 70, 244, 0.05) 0%,
    transparent 50%
  );
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1.5rem;
  max-width: 300px;
}
.footer-links h4 {
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
}
.footer-links a:not(.social-link),
.footer-text {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  transition: color 0.3s ease;
}
.footer-links a:hover {
  color: var(--primary-pink);
}
.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  transition: all 0.3s ease;
}
.social-icon {
  width: 20px;
  height: 20px;
  transition: all 0.3s ease;
}
.social-link:hover {
  color: var(--primary-pink);
}
.social-link:hover .social-icon {
  filter: drop-shadow(0 0 8px rgba(242, 113, 217, 0.6));
  transform: scale(1.1);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  text-align: center;
}
.footer-bottom p {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
}

.vr-banner-section {
  padding: 4rem 0;
  position: relative;
  z-index: 10;
}
.vr-banner {
  padding: 4rem;
  text-align: center;
  background: radial-gradient(
    circle at center,
    rgba(134, 70, 244, 0.15) 0%,
    rgba(10, 10, 12, 0.8) 70%
  );
  border-color: rgba(242, 113, 217, 0.3);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    inset 0 0 20px rgba(134, 70, 244, 0.1);
}
.vr-banner-content {
  max-width: 800px;
  margin: 0 auto;
}
.vr-banner-content h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}
.vr-banner-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.ia-section {
  padding: 6rem 0;
  position: relative;
  z-index: 10;
}
.ia-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.ia-info h2 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.ia-info p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}
.ia-feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.ia-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition:
    border-color 0.3s,
    background 0.3s;
}
.ia-feature-item:hover {
  border-color: rgba(134, 70, 244, 0.3);
  background: rgba(134, 70, 244, 0.05);
}
.feature-icon-sm {
  width: 45px;
  height: 45px;
  background: rgba(242, 113, 217, 0.05);
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(242, 113, 217, 0.2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.feature-icon-sm svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 5px rgba(242, 113, 217, 0.4));
  transition: filter 0.3s ease;
}
.ia-feature-item:hover .feature-icon-sm {
  background: rgba(134, 70, 244, 0.1);
  border-color: rgba(134, 70, 244, 0.4);
  transform: scale(1.1);
}
.ia-feature-item:hover .feature-icon-sm svg {
  filter: drop-shadow(0 0 10px rgba(134, 70, 244, 0.7));
}
.ia-feature-item h4 {
  color: var(--text-main);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}
.ia-feature-item p {
  font-size: 0.85rem;
  margin-bottom: 0;
}
.ai-interface {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.ai-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1rem;
}
.ai-status-dot {
  width: 10px;
  height: 10px;
  background-color: var(--primary-pink);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary-pink);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(242, 113, 217, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(242, 113, 217, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(242, 113, 217, 0);
  }
}
.ai-chat-window {
  min-height: 120px;
  padding: 1rem 0;
}
.ai-message {
  display: flex;
  gap: 15px;
}
.ai-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(
    135deg,
    var(--primary-purple),
    var(--primary-pink)
  );
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  flex-shrink: 0;
}
.ai-avatar svg {
  width: 20px;
  height: 20px;
}
.ai-text {
  background: rgba(0, 0, 0, 0.4);
  padding: 1rem;
  border-radius: 0 12px 12px 12px;
  border: 1px solid rgba(134, 70, 244, 0.2);
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.5;
  width: 100%;
}
.ai-prompt-box {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #020105;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 20px;
  border-radius: 30px;
}
.prompt-bar {
  flex-grow: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}
.prompt-progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--primary-purple),
    var(--primary-pink)
  );
  animation: loadingBar 3s ease-in-out infinite;
}
@keyframes loadingBar {
  0% {
    width: 0%;
  }
  50% {
    width: 100%;
  }
  100% {
    width: 0%;
    float: right;
  }
}
.prompt-action {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary-pink);
  letter-spacing: 1px;
}

/* Bloqueo Táctil 3D Desktop */
#vr-container canvas.a-canvas {
  pointer-events: none !important;
  touch-action: pan-y !important;
}

/* Alert Cyber */
.cyber-alert-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 1, 5, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  padding: 20px;
}
.cyber-alert-content {
  text-align: center;
  max-width: 400px;
  padding: 40px;
  border: 1px solid var(--primary-pink);
  box-shadow: 0 0 20px rgba(242, 113, 217, 0.2);
}
.alert-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 10px var(--primary-pink));
}
.cyber-alert-content h3 {
  color: var(--text-main);
  letter-spacing: 2px;
  margin-bottom: 15px;
}
.cyber-alert-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 25px;
}

/* Media Queries Landing Page */
@media (max-width: 1024px) {
  .timeline-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .timeline-glow-line {
    display: none;
  }
}
@media (max-width: 992px) {
  .glass-panel h1 {
    font-size: 3.8rem;
  }
  .solutions-grid {
    gap: 2rem;
  }
  .contact-glass {
    grid-template-columns: 1fr;
    padding: 3rem 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .nav-container {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 15px;
  }
  .nav-links a:not(.btn) {
    display: none;
  }
  .hero {
    height: auto;
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 2rem;
  }
  .glass-panel {
    padding: 2.5rem 1.5rem;
    width: 100%;
    border-radius: 16px;
  }
  .glass-panel h1 {
    font-size: 2.8rem;
  }
  .glass-panel p {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }
  .solutions-section {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .solutions-grid {
    grid-template-columns: 1fr;
  }
  .solutions-content {
    width: 100%;
    min-width: 0;
  }
  .glass-panel-sm {
    padding: 1.5rem;
  }
  .solutions-3d {
    min-height: 350px;
  }
  .ar-grid,
  .contact-glass {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .contact-glass {
    padding: 2rem 1.5rem;
  }
  .timeline-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .vr-banner {
    padding: 3rem 1.5rem;
  }
  .vr-banner-content h2 {
    font-size: 2.2rem;
  }
  #vr-container,
  #vr-container a-scene {
    touch-action: pan-y !important;
    overscroll-behavior: contain;
  }
  .solutions-content .glass-panel-sm:hover {
    transform: none;
  }
  .solution-item:hover .custom-icon {
    transform: none;
    filter: drop-shadow(0 0 10px rgba(242, 113, 217, 0.3));
  }
}
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  .hero-content {
    padding: 2.5rem 1.2rem;
    width: 100%;
    margin: 0 auto;
  }
  .hero-content h1 {
    font-size: 2.5rem;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  .hero-content p {
    font-size: 1rem;
    padding: 0 10px;
    margin-bottom: 2rem;
  }
  .glass-panel,
  .glass-panel-sm,
  .contact-glass,
  .vr-banner {
    padding: 1.5rem;
    border-radius: 20px;
    width: 100%;
  }
  h2,
  .ar-info h2,
  .ia-info h2,
  .contact-info h2,
  .vr-banner-content h2 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  .btn-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .btn {
    width: 100%;
    text-align: center;
    padding: 14px;
  }
  .ia-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .timeline-step {
    padding: 1.5rem;
  }
  .step-number {
    font-size: 2.5rem;
  }
  .footer-grid {
    text-align: center;
    gap: 2rem;
  }
  .social-link {
    justify-content: center;
  }
}
