:root {
  --primary:       #7C4DFF;
  --primary-dark:  #512DA8;
  --primary-light: #B39DDB;
  --bg:            #0d1b2a;
  --bg-card:       #132030;
  --bg-card2:      #1a2c40;
  --text:          #ffffff;
  --text-muted:    #90a4b4;
  --accent:        #EA80FC;
  --radius:        16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ── NAV ─────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  background: rgba(13, 27, 42, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(124, 77, 255, 0.2);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.nav-brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary-light); }

/* ── HERO ────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 2rem 5rem;
}
.hero-text h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero-text h1 span {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 460px;
}
.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 1.3rem;
  background: #000;
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.18);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.55);
  border-color: rgba(255,255,255,0.35);
}
.store-badge.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.store-badge svg { flex-shrink: 0; }
.store-badge-text { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge-text .sub { font-size: 0.65rem; font-weight: 400; color: rgba(255,255,255,0.75); letter-spacing: 0.02em; }
.store-badge-text .main-txt { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  background: transparent;
  color: var(--primary-light);
  border: 2px solid var(--primary);
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn-secondary:hover {
  background: rgba(124, 77, 255, 0.12);
  transform: translateY(-2px);
}
.hero-phones {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  align-items: flex-end;
}
.phone-frame {
  border-radius: 28px;
  overflow: hidden;
  border: 3px solid rgba(124, 77, 255, 0.4);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  width: 170px;
  flex-shrink: 0;
}
.phone-frame.main { width: 200px; margin-bottom: 0; }
.phone-frame.side { opacity: 0.8; transform: translateY(20px); }
.phone-frame img { width: 100%; display: block; }

/* ── SECTION SHARED ──────────────────────────────────── */
section { padding: 5rem 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-light);
  background: rgba(124, 77, 255, 0.12);
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 580px;
  margin-bottom: 3rem;
}

/* ── FEATURES GRID ───────────────────────────────────── */
#caracteristicas { background: var(--bg); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
/* Centra la última tarjeta cuando queda sola en la fila */
.feature-card:last-child:nth-child(3n + 1) {
  grid-column: 2;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(124, 77, 255, 0.15);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(124, 77, 255, 0.45);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.feature-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.feature-body { padding: 1.25rem 1.4rem 1.5rem; }
.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.feature-body h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
.feature-body p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.55; }

/* ── SEGURIDAD BANNER ────────────────────────────────── */
.security-banner {
  background: linear-gradient(135deg, #1a0a3a 0%, var(--bg-card2) 60%, #0d1b2a 100%);
  border: 1px solid rgba(124, 77, 255, 0.25);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.security-icon {
  font-size: 3.5rem;
  flex-shrink: 0;
}
.security-text h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.4rem; }
.security-text p { color: var(--text-muted); font-size: 0.95rem; max-width: 600px; }
.security-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  background: rgba(124, 77, 255, 0.15);
  border: 1px solid rgba(124, 77, 255, 0.3);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-light);
}

/* ── QUIENES SOMOS ───────────────────────────────────── */
#nosotros { background: var(--bg-card); }
.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.nosotros-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
.stat-card {
  background: var(--bg-card2);
  border-radius: var(--radius);
  padding: 1.2rem;
  border: 1px solid rgba(124, 77, 255, 0.2);
  text-align: center;
}
.stat-card .num {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-card .lbl { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }
.nosotros-img-stack {
  position: relative;
  height: 420px;
}
.nosotros-img-stack img {
  position: absolute;
  border-radius: 20px;
  border: 3px solid rgba(124, 77, 255, 0.3);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}
.nosotros-img-stack .img1 {
  width: 58%;
  top: 0;
  left: 0;
}
.nosotros-img-stack .img2 {
  width: 52%;
  bottom: 0;
  right: 0;
}

/* ── IMPORTAR ────────────────────────────────────────── */
#importar { background: var(--bg); }
.import-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.steps { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1.2rem; }
.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
}
.step-content h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.2rem; }
.step-content p { font-size: 0.85rem; color: var(--text-muted); }
.import-visual {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid rgba(124, 77, 255, 0.2);
  padding: 1.5rem;
}
.import-visual .table-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.excel-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}
.excel-table th {
  background: rgba(124, 77, 255, 0.2);
  padding: 0.5rem 0.6rem;
  text-align: left;
  font-weight: 700;
  color: var(--primary-light);
  font-size: 0.72rem;
}
.excel-table td {
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--text-muted);
}
.excel-table tr:last-child td { border-bottom: none; }
.excel-table tr:nth-child(even) td { background: rgba(255,255,255,0.02); }
.download-template {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0.65rem 1.25rem;
  background: rgba(124, 77, 255, 0.12);
  border: 1px solid rgba(124, 77, 255, 0.35);
  border-radius: 10px;
  color: var(--primary-light);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.download-template:hover {
  background: rgba(124, 77, 255, 0.22);
  transform: translateY(-1px);
}

/* ── SCREENSHOTS CARRUSEL ────────────────────────────── */
#capturas { background: var(--bg-card); overflow: hidden; }
.scroll-track {
  display: flex;
  gap: 1.2rem;
  padding: 1rem 0 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
}
.scroll-track::-webkit-scrollbar { height: 6px; }
.scroll-track::-webkit-scrollbar-track { background: transparent; }
.scroll-track::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }
.scroll-item {
  flex-shrink: 0;
  scroll-snap-align: start;
  width: 180px;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(124, 77, 255, 0.25);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  transition: transform 0.25s, border-color 0.25s;
}
.scroll-item:hover {
  transform: scale(1.04);
  border-color: rgba(124, 77, 255, 0.6);
}
.scroll-item img { width: 100%; display: block; }

/* ── FOOTER ──────────────────────────────────────────── */
footer {
  background: #080f17;
  border-top: 1px solid rgba(124, 77, 255, 0.15);
  padding: 3rem 2rem;
  text-align: center;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.footer-brand img { width: 28px; height: 28px; border-radius: 7px; }
footer p { color: var(--text-muted); font-size: 0.85rem; }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  margin: 1.25rem 0;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary-light); }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 3rem; }
  .hero-text p { margin-inline: auto; }
  .cta-buttons { justify-content: center; }
  .hero-phones { margin-top: 2rem; }
  .phone-frame.side { display: none; }
  .nosotros-grid, .import-grid { grid-template-columns: 1fr; }
  .nosotros-img-stack { height: 260px; }
  .nosotros-img-stack .img1 { width: 50%; }
  .nosotros-img-stack .img2 { width: 48%; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card:last-child:nth-child(3n + 1) { grid-column: unset; }
}
@media (max-width: 540px) {
  nav { padding: 0.65rem 1rem; }
  .nav-links { display: none; }
  section { padding: 3.5rem 1.2rem; }
  .security-banner { flex-direction: column; text-align: center; }
  .hero-phones { gap: 0.75rem; }
  .phone-frame.main { width: 180px; }
}
