/* ============================================================
   SIGP-Ω · Landing pública
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --morado: #8A2BE2;
  --cyan: #00f2ff;
  --bg: #0a0a0a;
  --bg-2: #121212;
  --bg-3: #1a1a1a;
  --texto: #f0f0f0;
  --texto-mute: #a0a0a0;
  --borde: rgba(138,43,226,0.25);
  --radio: 12px;
}
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--texto);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--borde);
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
  z-index: 100;
  gap: 16px;
}
.nav-logo { font-size: 1.4em; font-weight: 800; letter-spacing: 2px;
  background: linear-gradient(90deg, var(--morado), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  flex-shrink: 0; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { color: var(--texto-mute); text-decoration: none; font-size: 0.9em; transition: color .2s; }
.nav-links a:hover { color: var(--cyan); }
.nav-acciones { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.nav-tenant {
  color: var(--texto-mute);
  text-decoration: none;
  font-size: 0.85em;
  padding: 8px 14px;
  border: 1px solid var(--borde);
  border-radius: 6px;
  transition: all .2s;
}
.nav-tenant:hover { border-color: var(--cyan); color: var(--cyan); }
.nav-cta { background: var(--morado); color: #fff; padding: 8px 18px;
  border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 0.9em; }
.nav-cta:hover { background: var(--cyan); color: #000; }

@media (max-width: 900px) { .nav-links { display: none; } }
@media (max-width: 480px) {
  .nav-tenant { display: none; }
  .nav { padding: 12px 16px; }
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 100px 24px 60px;
  position: relative;
  text-align: center;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(138,43,226,0.15), transparent 60%);
  pointer-events: none;
}
.hero-inner { max-width: 900px; position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-block; padding: 6px 16px;
  background: rgba(0,242,255,0.1); border: 1px solid var(--cyan);
  color: var(--cyan); border-radius: 30px; font-size: 0.8em;
  letter-spacing: 2px; margin-bottom: 24px; text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2em, 5vw, 3.8em);
  font-weight: 800; line-height: 1.15; margin-bottom: 20px;
  background: linear-gradient(180deg, #fff, #b0b0b0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 .acento { background: linear-gradient(90deg, var(--morado), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 1.15em; color: var(--texto-mute); max-width: 620px; margin: 0 auto 36px; }
.hero-botones { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-grande {
  padding: 16px 32px; border-radius: 8px; text-decoration: none;
  font-weight: 700; font-size: 1em; transition: all .25s;
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; border: none;
}
.btn-primario { background: var(--morado); color: #fff; box-shadow: 0 0 30px rgba(138,43,226,0.4); }
.btn-primario:hover { background: var(--cyan); color: #000; transform: translateY(-2px); }
.btn-secundario { background: transparent; color: var(--cyan); border: 2px solid var(--cyan); }
.btn-secundario:hover { background: rgba(0,242,255,0.1); transform: translateY(-2px); }

/* ===== SECCIONES ===== */
.section { padding: 90px 24px; max-width: 1200px; margin: 0 auto; }
.section-titulo { text-align: center; margin-bottom: 60px; }
.section-titulo h2 { font-size: clamp(1.6em, 3vw, 2.4em); margin-bottom: 12px; color: #fff; }
.section-titulo p { color: var(--texto-mute); max-width: 600px; margin: 0 auto; }

/* ===== GRID SERVICIOS ===== */
.grid-servicios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card-servicio {
  background: var(--bg-2);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 28px 24px;
  transition: all .3s;
  position: relative; overflow: hidden;
  cursor: pointer;
}
.card-servicio:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0,242,255,0.15);
}
.card-servicio .icono { font-size: 2.2em; margin-bottom: 14px; display: block; }
.card-servicio h3 { font-size: 1.15em; margin-bottom: 8px; color: var(--cyan); }
.card-servicio p { color: var(--texto-mute); font-size: 0.92em; }
.card-servicio .tag {
  display: inline-block; margin-top: 14px; padding: 3px 10px;
  font-size: 0.7em; background: rgba(138,43,226,0.15);
  color: var(--morado); border-radius: 20px; letter-spacing: 1px;
}
.card-servicio .ver-mas {
  display: block;
  margin-top: 12px;
  font-size: 0.85em;
  color: var(--morado);
  font-weight: 600;
}
.card-servicio:hover .ver-mas { color: var(--cyan); }
.card-servicio.destacada {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--bg-2), rgba(138,43,226,0.1));
  border-color: var(--morado);
}
.card-servicio.destacada h3 { color: var(--morado); font-size: 1.3em; }

/* ===== DEMO ===== */
.demo-box {
  background: linear-gradient(135deg, rgba(138,43,226,0.15), rgba(0,242,255,0.08));
  border: 2px solid var(--morado);
  border-radius: 16px;
  padding: 50px 30px;
  text-align: center;
}
.demo-box h2 { color: #fff; font-size: clamp(1.5em, 3vw, 2.2em); margin-bottom: 14px; }
.demo-box p { color: var(--texto-mute); margin-bottom: 28px; max-width: 580px; margin-left: auto; margin-right: auto; }

/* ===== CTA FINAL ===== */
.cta-final {
  text-align: center;
  padding: 100px 24px;
  background: radial-gradient(circle at 50% 50%, rgba(138,43,226,0.15), transparent 70%);
}
.cta-final h2 { font-size: clamp(1.8em, 4vw, 2.8em); margin-bottom: 20px; }
.cta-final p { color: var(--texto-mute); margin-bottom: 30px; font-size: 1.1em; }

/* ===== FOOTER ===== */
footer {
  background: var(--bg-2);
  border-top: 1px solid var(--borde);
  padding: 40px 24px 24px;
  text-align: center;
  color: var(--texto-mute);
  font-size: 0.9em;
}
footer .footer-links { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
footer .footer-links a { color: var(--texto-mute); text-decoration: none; }
footer .footer-links a:hover { color: var(--cyan); }
footer .copyright { font-size: 0.8em; opacity: 0.6; margin-top: 20px; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.activo { display: flex; }
.modal-card {
  background: var(--bg-2);
  border: 2px solid var(--morado);
  border-radius: 16px;
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px 32px;
  position: relative;
  box-shadow: 0 20px 60px rgba(138,43,226,0.35);
  animation: modalIn .25s ease-out;
}
@keyframes modalIn {
  from { transform: scale(0.95); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
.modal-cerrar {
  position: absolute; top: 14px; right: 14px;
  background: rgba(255,255,255,0.06);
  border: none; color: var(--texto-mute);
  width: 36px; height: 36px; border-radius: 50%;
  font-size: 1.2em; cursor: pointer;
  transition: all .2s;
}
.modal-cerrar:hover { background: #ff0055; color: #fff; }
.modal-icono { font-size: 3em; margin-bottom: 12px; display: block; }
.modal-card h2 { color: var(--cyan); font-size: 1.6em; margin-bottom: 8px; }
.modal-card .modal-sub { color: var(--morado); font-size: 0.85em; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px; }
.modal-card .modal-desc { color: var(--texto); font-size: 1em; margin-bottom: 24px; line-height: 1.7; }
.modal-card ul {
  list-style: none; margin-bottom: 24px;
}
.modal-card ul li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--texto-mute);
  font-size: 0.95em;
}
.modal-card ul li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--cyan); font-weight: bold;
}
.modal-precio {
  display: none;
  background: rgba(0,242,255,0.08);
  border: 1px solid var(--cyan);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 20px;
  color: var(--cyan);
  font-weight: 600;
  text-align: center;
}
.modal-precio.activo { display: block; }
.modal-acciones { display: flex; gap: 12px; flex-wrap: wrap; }
.modal-acciones .btn-grande { flex: 1; min-width: 180px; justify-content: center; }

/* ===== FAB CHAT (preparado, sin lógica aún) ===== */
.chat-fab {
  position: fixed; bottom: 24px; right: 24px;
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--morado), var(--cyan));
  border-radius: 50%;
  display: none; /* se activa cuando se sume el chat */
  align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(138,43,226,0.5);
  z-index: 150;
  font-size: 1.6em;
  transition: transform .2s;
}
.chat-fab:hover { transform: scale(1.08); }
.chat-fab.activo { display: flex; }
.chat-panel {
  position: fixed; bottom: 100px; right: 24px;
  width: 380px; max-width: calc(100vw - 48px);
  height: 560px; max-height: calc(100vh - 140px);
  background: var(--bg-2);
  border: 2px solid var(--morado);
  border-radius: 16px;
  display: none;
  flex-direction: column;
  z-index: 150;
  box-shadow: 0 20px 60px rgba(138,43,226,0.4);
  overflow: hidden;
}
.chat-panel.activo { display: flex; }
.chat-panel-header {
  background: linear-gradient(90deg, var(--morado), rgba(138,43,226,0.6));
  padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between;
  color: #fff;
  font-weight: 600;
}
.chat-panel-header .chat-cerrar {
  background: none; border: none; color: #fff;
  font-size: 1.2em; cursor: pointer;
  padding: 4px 8px;
}
