:root{
  --bg: #f6f1fa;
  --card: rgba(255,255,255,.78);
  --border: rgba(120,90,180,.18);
  --border-strong: rgba(120,90,180,.32);
  --text: #2f2442;
  --muted: rgba(47,36,66,.82);
  --accent: #7a5bd6;
  --accent-2: #9b7ae6;
}

*{ box-sizing: border-box; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* layout */
.header-inner,
.hero,
.section,
.footer{
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* header */
.header{
  position: sticky;
  top: 0;
  background: rgba(246,241,250,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.04);
  padding: 16px 0;
  z-index: 10;
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 18px;
}
.brand{ display:flex; align-items:center; }
.logo{
  height: 90px;
  width:auto;
  display:block;
}

/* nav */
.nav{
  display:flex;
  gap: 16px;
  align-items:center;
}
.nav a{
  text-decoration:none;
  color: var(--muted);
  font-weight: 500;
}
.nav a:hover{ color: var(--text); }

/* whatsapp button */
.wa-btn{
  text-decoration:none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(122,91,214,.20);
  white-space: nowrap;
}
.wa-btn:hover{ filter: brightness(1.03); }

/* hero */
.hero{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  align-items:center;
  padding-top: 54px;
  padding-bottom: 54px;
}
.hero-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 18px 40px rgba(0,0,0,.06);
}
.tag{
  display:inline-block;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.55);
  margin-bottom: 14px;
}
.hero-card h1{ margin: 4px 0 10px; font-size: 44px; letter-spacing: .2px; }
.hero-card p{ margin:0 0 16px; line-height: 1.6; color: var(--muted); }
.hero-card small{ display:block; margin-top: 12px; color: rgba(47,36,66,.68); line-height: 1.4; }

.buttons{ display:flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.btn{
  text-decoration:none;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
}
.btn.primary{
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color:#fff;
  box-shadow: 0 10px 22px rgba(122,91,214,.20);
}
.btn.secondary{
  background: rgba(255,255,255,.7);
  border: 1px solid var(--border);
  color: var(--text);
}

/* right cards */
.hero-products{
  display:flex;
  flex-direction: column;
  gap: 14px;
}
.product-card{
  background: rgba(255,255,255,.65);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
}
.product-card h3{ margin: 0 0 6px; }
.product-card p{ margin:0; color: var(--muted); line-height:1.5; }

/* sections */
.section{
  padding-top: 34px;
  padding-bottom: 34px;
}
.section h2{ margin: 0 0 10px; font-size: 28px; }
.subtle{ margin: 0 0 14px; color: var(--muted); }

/* product mini cards */
.cards-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.mini-card{
  background: rgba(255,255,255,.62);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 14px;
}
.mini-card h3{ margin: 0 0 6px; }
.mini-card p{ margin: 0; color: var(--muted); line-height: 1.5; }

/* category blocks */
.cat{
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(120,90,180,.14);
}
.cat-head h3{ margin: 0 0 6px; font-size: 20px; }
.cat-head p{ margin: 0 0 12px; color: rgba(47,36,66,.80); line-height: 1.5; }

/* tables */
.table-wrap{
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid rgba(120,90,180,.14);
  background: rgba(255,255,255,.65);
}

table.compare{
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

table.compare th,
 table.compare td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(120,90,180,.12);
  text-align: left;
  vertical-align: top;
}

table.compare thead th{
  background: rgba(245, 238, 255, .85);
  font-weight: 800;
}

.premium-col{
  background: rgba(245, 238, 255, .55);
}

.tiny-note{
  font-weight: 700;
  font-size: 12px;
  opacity: .75;
}

tr.sep td{
  border-top: 2px solid rgba(120,90,180,.18);
}

.wa-inline{
  display:inline-block;
  margin-top: 12px;
  color: var(--accent);
  font-weight: 800;
  text-decoration:none;
}
.wa-inline:hover{ text-decoration: underline; }

/* legal */
.legal-list{ margin: 8px 0 0; padding-left: 18px; line-height: 1.8; }
.legal-list a{ color: var(--accent); font-weight: 800; text-decoration:none; }
.legal-list a:hover{ text-decoration: underline; }

/* footer */
.footer{
  padding-top: 22px;
  padding-bottom: 30px;
  color: var(--muted);
}
.footer a{ color: var(--accent); font-weight: 800; text-decoration:none; }
.footer a:hover{ text-decoration: underline; }
.footer-small{ margin-top: 8px; font-size: 13px; color: rgba(47,36,66,.65); }

/* responsive */
@media (max-width: 920px){
  .hero{ grid-template-columns: 1fr; }
  .cards-3{ grid-template-columns: 1fr; }
  .nav{ display:none; }
}
/* ===== MOBILE FIX ===== */

/* Evita que el sitio “se salga” en móvil */
html, body { overflow-x: hidden; }

/* Header: todo en columna y centrado */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .nav { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 12px;
  }

  .wa-btn {
    width: 100%;
    text-align: center;
    max-width: 420px;
  }

  /* Hero: una columna */
  .hero {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding-top: 28px !important;
    padding-bottom: 28px !important;
  }

  .hero-card {
    padding: 18px !important;
  }

  .hero-card h1 {
    font-size: 34px !important;
  }

  .buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  /* Tablas: scroll horizontal sin romper todo */
  .table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    border-radius: 18px;
  }

  table.compare {
    min-width: 720px; /* permite scroll en celular */
  }
}
