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

:root {
  --purple:    #7C3AED;
  --purple-lt: #9D5CF6;
  --purple-glow: rgba(124, 58, 237, 0.35);
  --dark:      #08081A;
  --card:      rgba(255,255,255,0.04);
  --border:    rgba(124,58,237,0.28);
  --border-hl: rgba(124,58,237,0.7);
  --text-muted: rgba(255,255,255,0.55);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: var(--dark);
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── BACKGROUND GLOW ── */
.bg-glow { position: fixed; pointer-events: none; z-index: 0; }
.bg-glow-tl {
  top: -250px; left: -250px; width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(124,58,237,0.18) 0%, transparent 65%);
}
.bg-glow-br {
  bottom: -250px; right: -250px; width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(91,33,182,0.15) 0%, transparent 65%);
}
.bg-glow-mid {
  top: 40%; left: 50%; transform: translate(-50%, -50%);
  width: 900px; height: 500px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.07) 0%, transparent 70%);
}

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 2rem;
  border-bottom: 1px solid var(--border);
  background: rgba(8,8,26,0.88);
  backdrop-filter: blur(14px);
}
.logo {
  font-size: 1.35rem; font-weight: 900; letter-spacing: -0.5px;
  background: linear-gradient(135deg, #a78bfa, #7C3AED);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  text-decoration: none; color: rgba(255,255,255,0.75);
  font-size: 0.95rem; font-weight: 500; transition: color .2s;
}
.nav-links a:hover { color: #fff; }
.btn-nav {
  background: var(--purple); color: #fff;
  padding: .55rem 1.4rem; border-radius: 50px;
  font-size: .9rem; font-weight: 700;
  text-decoration: none; transition: box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn-nav:hover { background: var(--purple-lt); box-shadow: 0 0 18px var(--purple-glow); }

/* ── HAMBURGER ── */
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }

/* ── HERO ── */
.hero {
  position: relative; z-index: 1; text-align: center;
  padding: 5.5rem 1.5rem 4.5rem; max-width: 860px; margin: 0 auto;
}
.hero-badge {
  display: inline-block;
  background: rgba(124,58,237,0.15); border: 1px solid var(--border);
  color: #a78bfa; font-size: .82rem; font-weight: 600;
  padding: .35rem 1rem; border-radius: 50px; margin-bottom: 1.6rem; letter-spacing: .5px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 900; line-height: 1.1; letter-spacing: -1px; margin-bottom: 1.3rem;
}
.hero h1 span {
  background: linear-gradient(135deg, #a78bfa, #7C3AED);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 1.15rem; color: var(--text-muted);
  max-width: 580px; margin: 0 auto 2.5rem; line-height: 1.7;
}
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--purple); color: #fff;
  padding: .85rem 2.2rem; border-radius: 50px;
  font-size: 1rem; font-weight: 700; text-decoration: none;
  transition: box-shadow .2s, background .2s;
}
.btn-primary:hover { background: var(--purple-lt); box-shadow: 0 0 24px var(--purple-glow); }
.btn-outline {
  border: 1px solid var(--border-hl); color: #fff;
  padding: .85rem 2.2rem; border-radius: 50px;
  font-size: 1rem; font-weight: 600; text-decoration: none;
  transition: background .2s, border-color .2s;
}
.btn-outline:hover { background: rgba(124,58,237,0.1); border-color: var(--purple-lt); }
.hero-stars { position: absolute; pointer-events: none; font-size: 1.3rem; color: rgba(167,139,250,0.5); }
.hs1 { top: 12%; left: 7%; }
.hs2 { top: 18%; right: 9%; font-size: 1.8rem; color: rgba(167,139,250,0.35); }
.hs3 { bottom: 12%; left: 14%; font-size: .9rem; }
.hs4 { bottom: 8%; right: 12%; font-size: 1.5rem; color: rgba(167,139,250,0.3); }

/* ── SECTIONS ── */
.section { position: relative; z-index: 1; padding: 5rem 1.5rem; max-width: 1100px; margin: 0 auto; }
.section-title {
  text-align: center; font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 800; margin-bottom: .9rem; letter-spacing: -.5px;
}
.section-sub {
  text-align: center; color: var(--text-muted); font-size: 1.05rem;
  max-width: 540px; margin: 0 auto 3.5rem; line-height: 1.6;
}

/* ── SERVICES ── */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem;
}
.service-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; padding: 2rem; transition: border-color .25s, transform .25s;
}
.service-card:hover { border-color: var(--border-hl); transform: translateY(-4px); }
.service-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(124,58,237,0.18); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1.2rem;
}
.service-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .7rem; }
.service-card p { color: var(--text-muted); font-size: .95rem; line-height: 1.6; margin-bottom: 1.2rem; }
.service-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag {
  background: rgba(124,58,237,0.12); border: 1px solid var(--border);
  color: #a78bfa; font-size: .78rem; font-weight: 600; padding: .25rem .7rem; border-radius: 50px;
}

/* ── PRICING ── */
.pricing-section { position: relative; z-index: 1; padding: 5rem 1.5rem; }
.pricing-inner { max-width: 1100px; margin: 0 auto; }

/* Main toggle */
.toggle-wrap {
  display: flex; justify-content: center; margin-bottom: 3.5rem;
  overflow-x: auto; padding-bottom: .5rem;
}
.toggle-pill {
  display: flex; background: rgba(255,255,255,0.06);
  border: 1px solid var(--border); border-radius: 50px; padding: 5px; flex-shrink: 0;
}
.toggle-btn {
  padding: .6rem 1.5rem; border-radius: 50px;
  font-size: .9rem; font-weight: 700; cursor: pointer;
  border: none; background: transparent; color: rgba(255,255,255,0.55);
  transition: all .25s; white-space: nowrap;
}
.toggle-btn.active {
  background: var(--purple); color: #fff; box-shadow: 0 0 14px rgba(124,58,237,0.5);
}

/* Sub-toggle mensual / anual */
.sub-toggle-wrap { display: flex; justify-content: center; margin-bottom: 2.5rem; }
.sub-toggle-pill {
  display: flex; background: rgba(255,255,255,0.04);
  border: 1px solid var(--border); border-radius: 50px; padding: 4px;
}
.sub-toggle-btn {
  padding: .45rem 1.4rem; border-radius: 50px;
  font-size: .85rem; font-weight: 600; cursor: pointer;
  border: none; background: transparent; color: rgba(255,255,255,0.5);
  transition: all .25s; white-space: nowrap;
}
.sub-toggle-btn.active {
  background: rgba(124,58,237,0.6); color: #fff; box-shadow: 0 0 10px rgba(124,58,237,0.35);
}
.saving-badge {
  display: inline-block; margin-left: .4rem;
  background: rgba(52,211,153,0.15); border: 1px solid rgba(52,211,153,0.3);
  color: #34d399; font-size: .72rem; font-weight: 700; padding: .1rem .5rem; border-radius: 50px;
}

/* Pricing groups */
.pricing-group { display: none; }
.pricing-group.active { display: block; }
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem; align-items: start;
}

/* Price cards */
.price-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 2.2rem 2rem; transition: transform .25s; position: relative;
}
.price-card:hover { transform: translateY(-6px); }
.price-card.featured {
  border-color: var(--border-hl);
  background: rgba(124,58,237,0.10);
  box-shadow: 0 0 40px rgba(124,58,237,0.2), 0 0 0 1px rgba(124,58,237,0.4);
  transform: translateY(-8px);
}
.price-card.featured:hover { transform: translateY(-14px); }
.featured-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--purple); color: #fff;
  font-size: .78rem; font-weight: 700; padding: .3rem 1rem; border-radius: 50px;
  letter-spacing: .5px; white-space: nowrap;
}
.plan-name { font-size: 1.1rem; font-weight: 700; margin-bottom: .4rem; }
.plan-tag { font-size: .82rem; color: #a78bfa; font-weight: 600; margin-bottom: 1.3rem; }

/* Price display */
.price-display { display: none; }
.price-display.active { display: block; }
.plan-price {
  font-size: 2.6rem; font-weight: 900; letter-spacing: -1px; margin-bottom: .2rem; line-height: 1;
}
.plan-price sup { font-size: 1.3rem; vertical-align: super; margin-right: 2px; }
.plan-price-note { font-size: .85rem; color: var(--text-muted); margin-bottom: .4rem; }
.plan-recurrence {
  font-size: .92rem; color: rgba(167,139,250,0.85); font-weight: 600; margin-bottom: 1.6rem; min-height: 1.4rem;
}
.plan-saving {
  font-size: .82rem; color: #34d399; font-weight: 600; margin-bottom: 1.6rem;
}

/* Budget card (sin precio) */
.budget-icon {
  font-size: 2.8rem; margin-bottom: .8rem; display: block;
}
.budget-label {
  font-size: .85rem; color: var(--text-muted); margin-bottom: 1.6rem; line-height: 1.5;
}

/* Buttons */
.btn-card {
  display: block; width: 100%; text-align: center;
  padding: .8rem; border-radius: 50px;
  font-size: .95rem; font-weight: 700; text-decoration: none;
  margin-bottom: 1.8rem; transition: all .2s; cursor: pointer; border: none;
}
.btn-card-solid { background: var(--purple); color: #fff; }
.btn-card-solid:hover { background: var(--purple-lt); box-shadow: 0 0 18px var(--purple-glow); }
.btn-card-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.25); }
.btn-card-ghost:hover { border-color: var(--purple-lt); background: rgba(124,58,237,0.1); }

/* Feature list */
.feature-list { list-style: none; display: flex; flex-direction: column; gap: .75rem; }
.feature-list li {
  display: flex; align-items: flex-start; gap: .7rem;
  font-size: .9rem; color: rgba(255,255,255,0.82); line-height: 1.4;
}
.check {
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(124,58,237,0.22); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; flex-shrink: 0; margin-top: 1px;
}
.check::before { content: '✓'; color: #a78bfa; font-weight: 900; }

/* ── FAQ ── */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.faq-item {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
}
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem 1.5rem; background: transparent; border: none;
  color: #fff; font-size: .97rem; font-weight: 600; cursor: pointer; text-align: left; gap: 1rem;
}
.faq-q svg { flex-shrink: 0; transition: transform .3s; color: #a78bfa; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner {
  padding: 0 1.5rem 1.3rem; color: var(--text-muted); font-size: .92rem; line-height: 1.65;
}
.faq-item.open .faq-a { max-height: 300px; }

/* ── CTA FINAL ── */
.cta-final {
  position: relative; z-index: 1; text-align: center; padding: 5.5rem 1.5rem 6rem;
  max-width: 680px; margin: 0 auto;
}
.cta-final h2 {
  font-size: clamp(1.7rem, 4vw, 2.8rem); font-weight: 900; letter-spacing: -.5px; margin-bottom: 1rem;
}
.cta-final p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.65; margin-bottom: 2.5rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-email {
  display: flex; align-items: center; gap: .6rem;
  border: 1px solid var(--border-hl); color: #fff;
  padding: .9rem 2rem; border-radius: 50px; font-size: 1rem; font-weight: 700; text-decoration: none;
  transition: background .2s;
}
.btn-email:hover { background: rgba(124,58,237,0.12); }

/* ── FOOTER ── */
footer {
  position: relative; z-index: 1; border-top: 1px solid var(--border);
  padding: 2rem; text-align: center; color: var(--text-muted); font-size: .87rem;
}
footer a { color: #a78bfa; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── DIVIDER ── */
.divider {
  position: relative; z-index: 1; max-width: 900px; margin: 0 auto;
  border: none; border-top: 1px solid var(--border);
}

/* ── PRECIOS TACHADOS ── */
.plan-price-old {
  font-size: 1.35rem; font-weight: 700;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-bottom: .1rem; line-height: 1.1;
}
.plan-price-old sup { font-size: .75rem; vertical-align: super; }
.price-old {
  text-decoration: line-through;
  color: var(--text-muted);
  font-weight: 400;
  margin-right: .15rem;
}

/* ── SECCIÓN CONTACTO ── */
.contact-section-wrap { position: relative; z-index: 1; }
.contact-section { max-width: 1100px; margin: 0 auto; padding: 5rem 1.5rem 6rem; }
.contact-header { text-align: center; margin-bottom: 3.5rem; }
.contact-grid {
  display: grid; grid-template-columns: 1fr 320px; gap: 3rem; align-items: start;
}

.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: .45rem; }
.form-group label { font-size: .88rem; font-weight: 600; color: rgba(255,255,255,0.8); }
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  border-radius: 12px; padding: .8rem 1rem; color: #fff;
  font-size: .95rem; font-family: inherit;
  transition: border-color .2s, box-shadow .2s; outline: none; width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--purple-lt); box-shadow: 0 0 0 3px rgba(124,58,237,0.18);
}
.form-group select option { background: #1a1a2e; color: #fff; }
.form-group textarea { resize: vertical; min-height: 110px; }
.btn-submit {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  background: var(--purple); color: #fff;
  padding: .9rem 2rem; border-radius: 50px;
  font-size: 1rem; font-weight: 700; border: none; cursor: pointer;
  transition: background .2s, box-shadow .2s; align-self: flex-start;
}
.btn-submit:hover { background: var(--purple-lt); box-shadow: 0 0 22px var(--purple-glow); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; }
.form-success {
  display: none;
  background: rgba(52,211,153,0.12); border: 1px solid rgba(52,211,153,0.3);
  color: #34d399; border-radius: 12px; padding: 1rem 1.2rem;
  font-size: .95rem; font-weight: 600;
}

.contact-info {
  display: flex; flex-direction: column; gap: 1.5rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 2rem;
}
.contact-info-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-info-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(124,58,237,0.18); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #a78bfa;
}
.contact-info-icon--wa {
  background: rgba(37,211,102,0.15); border-color: rgba(37,211,102,0.3); color: #25D366;
}
.contact-info-label {
  font-size: .78rem; color: var(--text-muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: .3rem;
}
.contact-info a { color: #a78bfa; text-decoration: none; font-weight: 600; font-size: .95rem; }
.contact-info a:hover { text-decoration: underline; }
.contact-info p { color: rgba(255,255,255,0.8); font-size: .92rem; }

/* ── BOTÓN WHATSAPP FLOTANTE ── */
.whatsapp-float {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
  width: 52px; height: 52px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: transform .2s, box-shadow .2s; text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(37,211,102,0.6); }
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; display: block; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 1rem 1.2rem; }
  .nav-links { display: none; flex-direction: column; gap: 1rem; }
  .nav-links.open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(8,8,26,0.97); padding: 1.5rem; border-bottom: 1px solid var(--border);
  }
  .nav-toggle { display: flex; }
  .btn-nav { display: none; }
  .price-card.featured { transform: none; }
  .price-card.featured:hover { transform: translateY(-6px); }
  .hero { padding: 4rem 1.2rem 3.5rem; }
  .toggle-btn { padding: .55rem 1rem; font-size: .82rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .btn-submit { align-self: stretch; width: 100%; }
  .whatsapp-float { bottom: 1.5rem; right: 1.5rem; width: 46px; height: 46px; }
  .whatsapp-float svg { width: 24px; height: 24px; }
}
