:root {
  /* Tema día (default) */
  --bg: #ffffff;
  --bg-alt: #f3f3f6;
  --surface: #ffffff;
  --border: #e3e3e8;
  --text: #16161a;
  --text-muted: #63636b;
  --red: #e12129;
  --red-dark: #b5171e;
  --radius: 14px;
  --max-width: 1160px;
  --header-bg: rgba(255,255,255,0.88);
  --shadow: rgba(20,20,20,0.10);
}

html[data-theme="dark"] {
  --bg: #0d0d0d;
  --bg-alt: #161616;
  --surface: #1c1c1c;
  --border: #2b2b2b;
  --text: #f4f4f4;
  --text-muted: #a3a3a3;
  --header-bg: rgba(13,13,13,0.9);
  --shadow: rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  transition: background-color .25s ease, color .25s ease;
}

.site-header,
.card,
.pack-card,
.price-row,
.offer-card,
.order-form-card,
.testimonial-slide,
.profile-card,
.faq-item,
.site-footer,
.platform-tab,
.ticker-wrap {
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--red); }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul, ol { margin: 0; padding: 0; list-style: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--red); }
.btn-whatsapp { background: var(--surface); color: var(--text); border: 2px solid var(--red); }
.btn-whatsapp:hover { background: var(--red); color: #fff; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand-logo { width: 34px; height: auto; }
.brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.3px; }
.main-nav { display: flex; gap: 26px; }
.main-nav a { color: var(--text-muted); font-weight: 500; font-size: 0.95rem; }
.main-nav a:hover { color: var(--text); }
.header-cta { white-space: nowrap; }
.theme-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.05rem;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-toggle:hover { border-color: var(--red); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); }

/* Hero */
.hero { padding: 64px 0 40px; background: radial-gradient(circle at top right, rgba(225,33,41,0.14), transparent 55%); }
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.badge {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 18px;
}
.hero h1 { font-size: 2.7rem; line-height: 1.15; margin: 0 0 16px; font-weight: 800; }
.hero-sub { color: var(--text-muted); font-size: 1.05rem; max-width: 480px; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 14px; margin-bottom: 30px; flex-wrap: wrap; }
.trust-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--text-muted); font-size: 0.88rem; }

.hero-offer { display: flex; justify-content: center; }
.offer-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  width: 100%;
  max-width: 320px;
  text-align: center;
  box-shadow: 0 12px 40px var(--shadow);
}
.offer-tag {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.offer-title { font-size: 1.3rem; font-weight: 700; margin: 0 0 6px; }
.offer-desc { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 16px; }
.countdown { display: flex; justify-content: center; gap: 14px; margin-bottom: 22px; }
.countdown div { display: flex; flex-direction: column; align-items: center; }
.countdown span { font-size: 1.8rem; font-weight: 800; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; min-width: 52px; }
.countdown small { color: var(--text-muted); font-size: 0.7rem; margin-top: 4px; }

/* Ticker */
.ticker-wrap {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 12px 0;
}
.ticker { white-space: nowrap; font-size: 0.9rem; color: var(--text-muted); animation: scroll-left 22s linear infinite; }
.ticker span { margin-right: 48px; }
@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Sections */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: 2rem; font-weight: 800; margin: 0 0 8px; text-align: center; }
.section-sub { color: var(--text-muted); text-align: center; margin: 0 0 44px; }

.grid { display: grid; gap: 22px; }
.services-grid { grid-template-columns: repeat(3, 1fr); }
.portfolio-grid { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--red); transform: translateY(-3px); }
.card-icon { font-size: 1.8rem; margin-bottom: 12px; }
.card-icon-row { display: flex; gap: 10px; }
.crypto-icon { width: 26px; height: 26px; }
.payment-icon { width: 30px; height: 30px; }
.card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.card p { color: var(--text-muted); font-size: 0.92rem; margin: 0 0 16px; }
.price { font-weight: 700; color: var(--red); }

/* Packs: tabs de plataforma + tabla de precios */
.platform-tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.platform-tab {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.platform-tab:hover:not(.active) { border-color: var(--red); color: var(--text); }
.platform-tab.active { background: var(--red); border-color: var(--red); color: #fff; }
.platform-icon { width: 18px; height: 18px; flex-shrink: 0; display: block; }
.platform-tab.active .platform-icon { filter: brightness(0) invert(1); }

.service-tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 18px 0 32px; }
.service-tabs[hidden] { display: none; }
.service-tab {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.service-tab:hover:not(.active) { border-color: var(--text); color: var(--text); }
.service-tab.active { background: var(--text); border-color: var(--text); color: var(--bg); }

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3b3b;
  margin-right: 6px;
  vertical-align: middle;
  animation: livePulse 1.4s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,59,59,0.55); }
  50% { opacity: 0.45; box-shadow: 0 0 0 5px rgba(255,59,59,0); }
}

.duration-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.duration-tabs[hidden] { display: none; }
.duration-tab {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.duration-tab:hover:not(.active) { border-color: var(--red); color: var(--text); }
.duration-tab.active { background: var(--red); border-color: var(--red); color: #fff; }

.selector-main { display: flex; flex-direction: column; }

.contact-panel {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
}
.contact-panel p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

.pack-selector {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
  align-items: start;
  max-width: 920px;
  margin: 0 auto;
}

.qty-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.qty-grid[hidden] { display: none; }
.qty-chip {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.qty-chip:hover { border-color: var(--red); transform: translateY(-2px); }
.qty-chip { position: relative; }
.qty-chip .num { font-size: 1.1rem; font-weight: 800; }
.qty-chip .unit { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; }
.qty-chip .price-mini { font-size: 0.78rem; font-weight: 600; color: var(--red); display: flex; align-items: baseline; gap: 5px; }
.qty-chip .price-mini .price-strike { color: var(--text-muted); text-decoration: line-through; font-weight: 500; font-size: 0.7rem; }
.qty-chip.active { border-color: var(--red); background: linear-gradient(180deg, rgba(225,33,41,0.14), var(--surface) 65%); }
.qty-chip .discount-badge {
  position: absolute;
  top: -9px;
  right: -8px;
  background: var(--red);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.price-display {
  position: sticky;
  top: 96px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
  box-shadow: 0 12px 40px var(--shadow);
}
.price-display-label { display: block; text-transform: uppercase; letter-spacing: 0.6px; font-size: 0.72rem; color: var(--text-muted); font-weight: 700; margin-bottom: 12px; }
.price-display-main { margin-bottom: 4px; }
.price-display-qty { font-size: 1.6rem; font-weight: 800; }
.price-display-unit { display: block; color: var(--text-muted); font-size: 0.85rem; margin-top: 2px; }
.price-display-unit strong { color: var(--text); }
.price-display-amount { font-size: 2.3rem; font-weight: 800; color: var(--red); margin: 16px 0 22px; transition: transform .1s ease; }
.price-display-amount small { font-size: 0.95rem; color: var(--text-muted); font-weight: 600; }
.price-display-amount.pulse { animation: priceBump .35s ease; }
.price-display-discount { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; }
.price-display-discount[hidden] { display: none; }
.price-display-strike { color: var(--text-muted); text-decoration: line-through; font-size: 1rem; }
.discount-tag { background: var(--red); color: #fff; font-size: 0.72rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.price-display-input-label { display: block; text-align: left; font-size: 0.8rem; color: var(--text-muted); margin: 0 0 6px; }
.price-display-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 11px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-family: inherit;
  font-size: 0.92rem;
}
@keyframes priceBump {
  0% { transform: scale(1); }
  45% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.section-note { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin-top: 22px; }

/* Como funciona */
.como-funciona-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.steps li { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.steps li:last-child { border-bottom: none; }
.steps strong { font-size: 1.05rem; }
.steps span { color: var(--text-muted); font-size: 0.92rem; }

.order-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.order-form-card h3 { margin: 0 0 18px; }
.order-form-card label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 6px; }
.order-form-card select, .order-form-card input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-family: inherit;
  font-size: 0.95rem;
}
.form-hint { color: var(--text-muted); font-size: 0.8rem; text-align: center; margin: 10px 0 0; }

/* Portfolio */
.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}
.avatar-initials {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
}
.profile-card .handle { font-weight: 600; margin-bottom: 4px; }
.profile-card .followers { color: var(--text-muted); font-size: 0.85rem; }
.profile-card .growth { color: var(--red); font-size: 0.85rem; font-weight: 600; margin-top: 4px; }

/* Testimonials */
.testimonial-carousel { display: flex; align-items: center; gap: 16px; max-width: 720px; margin: 0 auto; }
.testimonial-track-wrap { overflow: hidden; flex: 1; }
.testimonial-track { display: flex; transition: transform .4s ease; }
.testimonial-slide {
  min-width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}
.testimonial-slide p { font-size: 1.05rem; margin: 0 0 18px; }
.testimonial-author { display: flex; align-items: center; justify-content: center; gap: 12px; }
.testimonial-author .avatar-initials { margin: 0; width: 44px; height: 44px; font-size: 0.85rem; }
.testimonial-author strong { display: block; font-size: 0.92rem; }
.testimonial-author span { color: var(--text-muted); font-size: 0.8rem; }
.carousel-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  flex-shrink: 0;
}
.carousel-btn:hover { border-color: var(--red); }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  text-align: left;
  padding: 20px 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-question .icon { color: var(--red); transition: transform .2s ease; font-size: 1.2rem; }
.faq-item.open .faq-question .icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.93rem;
  transition: max-height .25s ease, padding .25s ease;
  padding: 0 4px;
}
.faq-item.open .faq-answer { max-height: 240px; padding-bottom: 20px; }

/* CTA final */
.cta-final { text-align: center; }
.cta-final h2 { font-size: 2rem; margin: 0 0 10px; }
.cta-final p { color: var(--text-muted); margin: 0 0 26px; }

/* Footer */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding-top: 56px; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand .brand-logo { width: 30px; }
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; margin: 0; }
.footer-col h4 { font-size: 0.9rem; margin: 0 0 14px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col a { display: block; color: var(--text); font-size: 0.92rem; margin-bottom: 10px; }
.footer-col a:hover { color: var(--red); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 8px;
}

/* WhatsApp flotante */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  z-index: 200;
  transition: transform .15s ease, box-shadow .15s ease;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 10px 28px rgba(0,0,0,0.3); }
.whatsapp-float svg { width: 30px; height: 30px; }

@media (max-width: 640px) {
  .whatsapp-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner, .como-funciona-inner { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .pack-selector { grid-template-columns: 1fr; }
  .price-display { position: static; }
}

@media (max-width: 640px) {
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 16px 24px; border-bottom: 1px solid var(--border); display: none; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .hero h1 { font-size: 2rem; }
  .services-grid, .portfolio-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .qty-grid { grid-template-columns: repeat(3, 1fr); }
}
