:root{
  --bg:#0b0f14;
  --panel:#111823;
  --panel2:#0f1722;
  --text:#e6edf3;
  --muted:#9fb0c0;
  --border:#233143;
  --accent:#58a6ff;
  --accent2:#7ee787;
  --danger:#ff7b72;
  --shadow: 0 12px 36px rgba(0,0,0,.35);
  --radius: 18px;
  --radius2: 24px;
  --max: 1100px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans";
}

*{ box-sizing:border-box; transition: all 0.2s ease-in-out; }
html, body{ height:100%; }

body{
  margin:0;
  font-family:var(--font);
  background: radial-gradient(1000px 600px at 20% 10%, rgba(88,166,255,.10), transparent 60%),
              radial-gradient(900px 600px at 80% 20%, rgba(126,231,135,.08), transparent 55%),
              var(--bg);
  color:var(--text);
  overflow-x: hidden;
}

.sr-only{ position:absolute; width:1px;height:1px; padding:0;margin:-1px; overflow:hidden;clip:rect(0,0,0,0); white-space:nowrap;border:0; }

/* --- HEADER & NAV --- */
.topbar{
  position:sticky; top:0; z-index:50;
  display:flex; gap:14px; align-items:center;
  padding:12px 16px;
  border-bottom:1px solid var(--border);
  background: rgba(11,15,20,.85);
  backdrop-filter: blur(12px);
}

.brand{ display:flex; gap:12px; align-items:center; }
.logo{
  width:44px; height:44px;
  display:grid; place-items:center;
  border-radius:14px;
  background: linear-gradient(135deg, rgba(88,166,255,.25), rgba(126,231,135,.18));
  border:1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 0; overflow: hidden;
}
.logo img { width: 100%; height: 100%; object-fit: cover; }

.brand-title{ font-weight:800; letter-spacing:.2px; }
.brand-subtitle{ font-size:12px; color:var(--muted); }

.nav{ display:flex; gap:6px; margin-left:auto; }
.nav-link{
  border:1px solid transparent; background:transparent; color:var(--text); padding:10px 12px;
  border-radius:14px; cursor:pointer; font-weight:600; font-size: 0.95rem;
}
.nav-link:hover{ border-color:var(--border); background:rgba(17,24,35,.55); }
.nav-link.active{ border-color:rgba(88,166,255,.55); background:rgba(88,166,255,.10); color: #fff; }
/* Clase para ocultar productos futuros */
.nav-link.hidden { display: none; } 

.controls{ display:flex; gap:10px; align-items:center; }
.select, input, textarea{
  width:100%; border-radius:14px; border:1px solid var(--border); background:rgba(17,24,35,.60); color:var(--text); padding:10px 12px; outline:none;
}
input::placeholder, textarea::placeholder{ color:rgba(159,176,192,.65); }
textarea{ resize:vertical; }

.main{ max-width:var(--max); margin:0 auto; padding:18px 16px 80px; }
.route{ display:none; animation: fadeIn 0.4s ease; }
.route.active{ display:block; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- HERO SECTION --- */
.hero{ padding:40px 0 20px; text-align: left; }
h1{ font-size: clamp(32px, 5vw, 52px); margin:15px 0; line-height: 1.1; font-weight: 800; }
.lead{ color:var(--muted); font-size: clamp(16px, 2.5vw, 20px); max-width: 65ch; line-height: 1.6; font-weight: 400; margin-bottom: 30px; }

.text-gradient {
  background: linear-gradient(90deg, #4ade80, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-badge {
  background: linear-gradient(90deg, rgba(59,130,246,0.15), rgba(74,222,128,0.15));
  border: 1px solid rgba(74,222,128,0.3); color: #fff;
  padding: 6px 14px; border-radius: 50px; font-size: 0.8rem; letter-spacing: 1px;
  text-transform: uppercase; font-weight: 700; display: inline-block; margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(74,222,128,0.1);
}

.hero-cta{ display:flex; gap:15px; margin:25px 0 40px; flex-wrap:wrap; justify-content: center; }

/* --- BOTONES --- */
.btn{
  border:1px solid var(--border); background: rgba(17,24,35,.8); color:var(--text);
  padding:12px 20px; border-radius: 12px; cursor:pointer; font-weight:700;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
}
.btn:hover{ transform: translateY(-2px); border-color: rgba(88,166,255,.5); box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.btn.primary{ border-color: rgba(88,166,255,.6); background: rgba(88,166,255,.15); color: #fff; }
.btn.primary:hover{ background: rgba(88,166,255,.25); box-shadow: 0 0 20px rgba(88,166,255,0.2); }
.btn.ghost{ background:transparent; border-color: transparent; }
.btn.ghost:hover{ background: rgba(255,255,255,0.05); }
.btn.full-width { width: 100%; }

.btn-lg { padding: 16px 32px; font-size: 1.15rem; border-radius: 14px; }
.pulse-btn { animation: pulse-shadow 2s infinite; }
@keyframes pulse-shadow {
  0% { box-shadow: 0 0 0 0 rgba(88, 166, 255, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(88, 166, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(88, 166, 255, 0); }
}

/* BOTON GHOST PARA REVIEWS (NUEVO) */
.btn-reviews-link {
  margin-top: 30px; border: 1px solid var(--border); color: var(--muted); padding: 12px 25px; border-radius: 50px; font-size: 0.9rem;
}
.btn-reviews-link:hover { border-color: var(--text); color: var(--text); background: rgba(255,255,255,0.05); }

/* --- TRUST BAR --- */
.trust-bar { text-align: center; padding: 30px 0; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.trust-bar p { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); opacity: 0.8; margin-bottom: 20px; }
.trust-logos { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; opacity: 0.6; }
.trust-logo { font-weight: 800; font-size: 1.2rem; color: #fff; letter-spacing: -0.5px; }

/* --- CARDS & GRIDS --- */
.card{
  border:1px solid var(--border); background: rgba(17,24,35,.6);
  border-radius: var(--radius2); padding:24px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; justify-content: space-between;
}
.card.action{ cursor:pointer; transition: transform 0.2s, border-color 0.2s; }
.card.action:hover{ border-color: var(--accent); transform: scale(1.02); }

.section-head{ margin: 60px 0 30px; text-align: center; }
.section-head h2{ font-size: 36px; margin-bottom: 10px; }
.section-head p{ font-size: 18px; color: var(--muted); max-width: 600px; margin: 0 auto; }

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

/* --- 1-2-3 STEPS (ARREGLADO PARA 4 PASOS) --- */
.steps-grid { 
  display: grid; 
  /* CAMBIO: 200px para que quepan 4 en fila */
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
  gap: 30px; margin-top: 40px; position: relative; text-align: center; 
}
.step-card { position: relative; z-index: 2; padding: 20px; }
.step-number { 
  width: 60px; height: 60px; background: var(--panel2); border: 2px solid var(--accent); color: var(--accent); border-radius: 50%; 
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800; 
  margin: 0 auto 20px; box-shadow: 0 0 25px rgba(88,166,255,0.2);
}
.step-line {
  position: absolute; top: 50px; left: 10%; width: 80%; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); z-index: 1; opacity: 0.3;
}
@media(max-width: 768px) { .step-line { display: none; } }

/* --- COMPARISON TABLE (3D MODERNA) --- */
.comparison-table { width: 100%; border-collapse: separate; border-spacing: 0 15px; margin-top: 30px; }
.comparison-table th { padding: 15px 25px; text-align: left; font-size: 1rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); border-bottom: 1px solid rgba(255,255,255,0.05); }

.row-card { background: rgba(22, 27, 34, 0.6); transition: transform 0.2s, background 0.2s, box-shadow 0.2s; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.row-card:hover { transform: translateY(-4px); background: rgba(22, 27, 34, 1); box-shadow: 0 10px 25px rgba(0,0,0,0.4); border-left: 3px solid var(--accent); }

.comparison-table td { padding: 25px; border: none; vertical-align: middle; font-size: 1.15rem; }
.comparison-table td:first-child { border-radius: 16px 0 0 16px; font-weight: 700; color: #fff; font-size: 1.1rem; }
.comparison-table td:last-child { border-radius: 0 16px 16px 0; background: linear-gradient(90deg, transparent, rgba(126, 231, 135, 0.08)); position: relative; }

.th-w7 { color: var(--accent2); }
.td-check { color: var(--accent2); font-weight: 700; }
.td-check::before { content: "✅ "; margin-right: 8px; filter: drop-shadow(0 0 5px rgba(126,231,135,0.4)); font-size: 1.2rem; }
.td-cross { color: var(--muted); opacity: 0.9; } 
.td-cross::before { content: "❌ "; margin-right: 8px; font-size: 1.1rem; }

/* ICONOS DE FILAS */
.feat-speed::before { content: "⚡ "; margin-right: 10px; font-size: 1.3rem; }
.feat-security::before { content: "🛡️ "; margin-right: 10px; font-size: 1.3rem; }
.feat-reliability::before { content: "💾 "; margin-right: 10px; font-size: 1.3rem; }
.feat-control::before { content: "📊 "; margin-right: 10px; font-size: 1.3rem; }
.feat-autonomy::before { content: "🤖 "; margin-right: 10px; font-size: 1.3rem; }

/* --- TESTIMONIALS --- */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; margin-top: 40px; }
.review-card { background: rgba(255,255,255,0.03); border: 1px solid var(--border); padding: 30px; border-radius: 20px; }
.review-stars { color: #e3b341; margin-bottom: 15px; font-size: 1.2rem; letter-spacing: 3px; }
.review-text { font-style: italic; color: var(--text); line-height: 1.6; }
.review-author { display: flex; align-items: center; gap: 12px; margin-top: 25px; font-weight: 700; color: var(--accent); }
.avatar { width: 40px; height: 40px; background: linear-gradient(135deg, #233143, #111823); border-radius: 50%; border: 1px solid var(--border); }

/* --- USE CASES --- */
.use-case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; margin-top: 40px; }
.use-case-card { background: rgba(255,255,255,0.02); border: 1px solid var(--border); padding: 30px; border-radius: 20px; text-align: left; transition: 0.3s; }
.use-case-card:hover { transform: translateY(-5px); border-color: var(--accent); background: rgba(255,255,255,0.05); }
.use-case-icon { font-size: 3rem; margin-bottom: 15px; display: block; }
.use-case-card h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--text); }
.use-case-card p { font-size: 0.95rem; line-height: 1.5; color: var(--muted); }

/* --- TECH SPECS --- */
.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; margin-top: 40px; }
.tech-card { background: linear-gradient(145deg, rgba(22,27,34,0.95), rgba(13,17,23,0.8)); border: 1px solid var(--border); padding: 35px; border-radius: 20px; }
.tech-card h3 { color: var(--accent); font-size: 1.4rem; margin-bottom: 25px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; }
.tech-feature { margin-bottom: 25px; }
.tech-feature h4 { color: #fff; font-size: 1.1rem; margin-bottom: 5px; }
.tech-feature p { color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.back-btn { background: none; border: none; color: var(--accent); cursor: pointer; font-size: 1rem; display: flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 0; }
.back-btn:hover { text-decoration: underline; }

/* --- PRICING (BOTONES DUALES) --- */
.pricing-box { background: #0d1117; border: 1px solid var(--border); border-radius: 24px; padding: 50px; max-width: 500px; margin: 0 auto; box-shadow: 0 20px 50px rgba(0,0,0,0.5); text-align: center; }
.pricing-price { font-size: 3.5rem; font-weight: 800; margin: 20px 0; color: #fff; }
/* Nuevo contenedor para botones lado a lado */
.pricing-actions { display: flex; gap: 15px; justify-content: center; margin-top: 25px; }
.pricing-actions .btn { flex: 1; }

/* --- FAQ & LEGAL --- */
.faq-list { display: grid; gap: 15px; }
.faq-item { border: 1px solid var(--border); background: rgba(17,24,35,.5); border-radius: 16px; padding: 16px 20px; cursor: pointer; transition: 0.2s; }
.faq-item:hover { background: rgba(17,24,35,.8); border-color: var(--accent); }
.faq-q { font-weight: 700; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; }
.faq-a { margin-top: 15px; line-height: 1.6; display: none; color: var(--muted); border-top: 1px solid rgba(255,255,255,0.05); padding-top: 15px; }
.faq-item.open .faq-a { display: block; }

.section-legal { margin-top: 80px; padding-top: 40px; border-top: 1px solid var(--border); }
.legal-content { background: rgba(15,23,34,.4); padding: 30px; border-radius: 16px; font-size: 0.9rem; color: var(--muted); }
.legal-accordion { background: rgba(17, 24, 35, 0.6); border-radius: 12px; margin-bottom: 12px; overflow: visible; transition: all 0.3s ease; }
.legal-text { padding: 0 24px 24px; color: var(--muted); font-size: 0.95rem; line-height: 1.7; border-top: 1px solid rgba(255,255,255,0.05); margin-top: 0; padding-top: 20px; display: block; }

/* --- BOTONES FLOTANTES --- */
.mobile-sticky-cta { position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(13,17,23,0.95); backdrop-filter: blur(10px); padding: 15px; border-top: 1px solid var(--accent); z-index: 100; display: none; gap: 10px; box-shadow: 0 -10px 30px rgba(0,0,0,0.5); }
/* Botón Flotante Desktop (FAB) */
.fab-trial {
  position: fixed; bottom: 30px; right: 30px; z-index: 99;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white; padding: 15px 25px; border-radius: 50px;
  font-weight: 700; box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
  border: 2px solid rgba(255,255,255,0.1); cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  transition: transform 0.2s;
}
.fab-trial:hover { transform: scale(1.05) translateY(-5px); }
@media(max-width: 768px) { 
  .mobile-sticky-cta { display: flex; } 
  .fab-trial { display: none; } /* Ocultar FAB en móvil porque ya tienen el sticky */
  .nav { display: none; } 
  .hero-cta { display: none; }
  h1 { font-size: 36px; }
  .step-line { display: none; }
  .main { padding-bottom: 100px; }
}

.footer { padding: 40px 20px; text-align: center; color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--border); margin-top: 40px; }
.tag-pop { background: #238636; color: white; font-weight: bold; font-size: 0.75rem; padding: 4px 8px; border-radius: 6px; margin-left: 10px; vertical-align: middle; display: inline-block; }
/* --- NUEVOS ESTILOS (PEGAR AL FINAL) --- */

/* MENU DESPLEGABLE */
.nav-dropdown { position: relative; display: inline-block; }
.dropdown-content {
  display: none; position: absolute; top: 100%; left: 0;
  background: rgba(17,24,35, 0.95); border: 1px solid var(--border);
  min-width: 220px; box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  border-radius: 12px; z-index: 1000; padding: 8px 0;
  backdrop-filter: blur(10px); animation: fadeIn 0.2s ease;
}
.nav-dropdown:hover .dropdown-content { display: block; }
.dropdown-item {
  display: block; padding: 10px 16px; color: var(--text); text-decoration: none; font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover { background: rgba(88,166,255,0.1); color: #fff; }
.dropdown-item.disabled { color: var(--muted); opacity: 0.6; cursor: default; }
.dropdown-item.disabled:hover { background: transparent; }
.tag-soon { background: #333; font-size: 0.7rem; padding: 2px 6px; border-radius: 4px; margin-left: 8px; vertical-align: middle; border: 1px solid var(--border); }

/* PANEL SOPORTE DESLIZANTE */
.support-panel {
  position: fixed; left: 0; bottom: -100%; width: 100%;
  background: #111823; border-top: 2px solid var(--accent);
  border-radius: 20px 20px 0 0; padding: 30px; z-index: 2000;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.8);
  transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; justify-content: center;
}
.support-panel.open { bottom: 0; }
.support-content { width: 100%; max-width: 600px; position: relative; }
.close-panel { position: absolute; top: -10px; right: 0; background: none; border: none; color: var(--muted); font-size: 1.5rem; cursor: pointer; }
.checkbox-label { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--muted); cursor: pointer; margin: 15px 0; }
.checkbox-label input { width: auto; margin-top: 3px; }
.btn.full-width { width: 100%; }

/* NOTIFICACION TOAST */
.toast-notification {
  position: fixed; top: 20px; right: 20px; background: var(--accent2); color: #000;
  padding: 15px 25px; border-radius: 10px; font-weight: bold;
  transform: translateX(150%); transition: transform 0.3s ease; z-index: 3000;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.toast-notification.show { transform: translateX(0); }