/* ============================================================
   SPAIN PRO 4K — Hoja de estilos principal
   Para cambiar colores principales, edita las variables de :root
   ============================================================ */

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

/* ── COLORES Y VARIABLES (edita aquí para cambiar la paleta) ── */
:root {
  --purple:       #a855f7;   /* Color principal (botones, acentos) */
  --purple-dark:  #7c3aed;   /* Variante oscura del morado */
  --purple-light: #d946ef;   /* Variante clara / degradado */
  --blue:         #3b82f6;   /* Azul secundario */
  --green:        #22c55e;   /* Verde (badges de ahorro) */
  --gold:         #f59e0b;   /* Dorado (mejor precio) */

  --bg:           #07070f;   /* Fondo general de la página */
  --surface:      rgba(255,255,255,0.04);   /* Fondo de tarjetas */
  --surface2:     rgba(255,255,255,0.07);   /* Hover de tarjetas */
  --border:       rgba(168,85,247,0.2);     /* Color de bordes */
  --text:         rgba(255,255,255,0.9);    /* Texto principal */
  --muted:        rgba(255,255,255,0.45);   /* Texto secundario */
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  line-height: 1.6;
}

/* ── NAVEGACIÓN ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7,7,15,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; }
.nav-brand { font-size: 16px; font-weight: 700; color: #fff; letter-spacing: 1px; }
.nav-brand span { color: var(--purple); }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all .2s;
}
.nav-links a:hover { color: #fff; background: var(--surface2); }
.nav-cta {
  background: linear-gradient(135deg, var(--purple-dark), var(--purple));
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .2s;
}
.nav-cta:hover { opacity: .85; }

/* ── HERO ── */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 1.5rem 60px;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(168,85,247,0.12);
  border: 1px solid rgba(168,85,247,0.3);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 12px;
  color: var(--purple);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-logo {
  width: 140px;
  height: 140px;
  border-radius: 24px;
  object-fit: cover;
  margin: 0 auto 28px;
  display: block;
  box-shadow: 0 0 60px rgba(168,85,247,0.35);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.hero h1 .glow {
  background: linear-gradient(90deg, var(--purple), var(--purple-light), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* ── ESTADÍSTICAS HERO ── */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}
.stat {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 24px;
  min-width: 110px;
}
.stat-num { font-size: 22px; font-weight: 700; color: var(--purple); }
.stat-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

/* ── PLATAFORMAS ── */
.hero-platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}
.platform-tag {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--muted);
}

/* ── BOTONES ── */
.hero-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--purple-dark), var(--purple));
  color: #fff;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  transition: all .2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(168,85,247,0.4); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: all .2s;
  cursor: pointer;
}
.btn-secondary:hover { background: var(--surface); border-color: var(--purple); }
.free-trial-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.25);
  color: #4ade80;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 50px;
  margin-top: 16px;
}

/* ── SECCIONES GENERALES ── */
section { padding: 70px 1.5rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 11px;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 12px;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: 12px; line-height: 1.2; }
.section-sub { color: var(--muted); font-size: 15px; max-width: 560px; line-height: 1.7; }
.divider { width: 100%; height: 1px; background: var(--border); }

/* ── TABLA DE PRECIOS ── */
#precios { background: rgba(255,255,255,0.01); }
.pricing-note { font-size: 12px; color: var(--muted); margin-top: 12px; margin-bottom: 32px; }
.pricing-table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 16px 20px; text-align: center; border: 1px solid var(--border); font-size: 14px; }
thead th {
  background: rgba(168,85,247,0.08);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}
thead th:first-child { text-align: left; }
thead th.popular { background: rgba(168,85,247,0.18); color: var(--purple); border-top: 2px solid var(--purple); }
tbody tr:hover td { background: rgba(255,255,255,0.03); }
tbody td:first-child { text-align: left; font-weight: 500; color: var(--muted); white-space: nowrap; }
.price-val { font-size: 22px; font-weight: 700; color: #fff; }
.save-badge {
  display: inline-block;
  font-size: 10px;
  background: rgba(34,197,94,0.15);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,0.25);
  padding: 2px 8px;
  border-radius: 50px;
  margin-left: 6px;
  vertical-align: middle;
}
.best-price-badge {
  display: inline-block;
  font-size: 10px;
  background: rgba(245,158,11,0.15);
  color: #fbbf24;
  border: 1px solid rgba(245,158,11,0.3);
  padding: 2px 8px;
  border-radius: 50px;
  margin-left: 6px;
  vertical-align: middle;
}
.best-badge {
  display: inline-block;
  font-size: 10px;
  background: rgba(245,158,11,0.15);
  color: #fbbf24;
  border: 1px solid rgba(245,158,11,0.3);
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 6px;
}
.conn-label { font-size: 13px; font-weight: 500; color: #fff; }
.conn-sub { font-size: 11px; color: var(--muted); display: block; }
.popular-col td { background: rgba(168,85,247,0.05); }

/* ── CARACTERÍSTICAS (iconos bajo precios) ── */
.features-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.feat {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  flex: 1;
  min-width: 160px;
}
.feat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.feat-title { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.feat-sub { font-size: 11px; color: var(--muted); }

/* ── PASOS DE INSTALACIÓN ── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple-dark), var(--purple));
}
.step-num {
  font-size: 36px;
  font-weight: 800;
  color: rgba(168,85,247,0.15);
  position: absolute;
  top: 12px; right: 18px;
}
.step-icon { font-size: 28px; margin-bottom: 14px; }
.step-title { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.step-desc { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ── DISPOSITIVOS ── */
.devices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.device {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── FAQ (acordeón) ── */
.faq-list {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  text-align: left;
  padding: 18px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-q:hover { background: var(--surface2); }
.faq-q .arrow { font-size: 18px; color: var(--purple); transition: transform .25s; flex-shrink: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; font-size: 13px; color: var(--muted); line-height: 1.7; }
.faq-a-inner { padding: 0 20px 18px; }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-item.open .faq-a { max-height: 300px; }

/* ── CONTACTO ── */
#contacto { background: rgba(168,85,247,0.04); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 36px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  text-align: center;
  text-decoration: none;
  transition: all .25s;
  display: block;
}
.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--purple);
  box-shadow: 0 12px 40px rgba(168,85,247,0.2);
}
.contact-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 16px;
}
.contact-name { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.contact-desc { font-size: 13px; color: var(--muted); margin-bottom: 16px; line-height: 1.6; }
.contact-label { font-size: 12px; color: var(--purple); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.whatsapp-card .contact-icon { background: rgba(37,211,102,0.12); }
.telegram-card  .contact-icon { background: rgba(0,136,204,0.12); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
footer a { color: var(--purple); text-decoration: none; }

/* ── RESPONSIVE MÓVIL ── */
@media (max-width: 680px) {
  .nav-links { display: none; }
  th, td { padding: 10px 12px; font-size: 12px; }
  .price-val { font-size: 17px; }
  .hero { padding: 50px 1rem 40px; }
  section { padding: 50px 1rem; }
}
