:root {
  --bg: #0a0a0a;
  --bg-alt: #121212;
  --bg-card: #161616;
  --border: #262626;
  --blue: #2563eb;
  --blue-bright: #3b82f6;
  --blue-cta: #3b82f6;
  --blue-cta-hover: #1d4ed8;
  --text: #f5f5f5;
  --text-secondary: #a3a3a3;
  --text-dim: #737373;
  --radius: 14px;
  --max-width: 1180px;
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.container-narrow { max-width: 760px; }

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

.editable {
  color: var(--blue-bright);
  border-bottom: 1px dashed var(--blue-bright);
  cursor: help;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 1rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue-cta), var(--blue-cta-hover));
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, .35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, .5);
}
.btn-small { padding: 10px 20px; font-size: .875rem; }
.btn-large { padding: 18px 40px; font-size: 1.125rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 24px;
}
.logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.logo span { color: var(--blue-bright); }
.main-nav {
  display: flex;
  gap: 22px;
  flex: 1;
  justify-content: center;
  flex-wrap: nowrap;
}
.main-nav a {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color .2s ease;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--text); }
.main-nav a.is-current { color: var(--blue-bright); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 110px 0 90px;
  text-align: center;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,.35) 0%, rgba(37,99,235,0) 70%);
  pointer-events: none;
}
.hero-inner { position: relative; }
.hero-title {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -.03em;
  max-width: 920px;
  margin: 0 auto 22px;
  line-height: 1.15;
}
.hero-title .accent {
  color: var(--blue-bright);
  animation: destello 2.4s ease-in-out infinite;
}
@keyframes destello {
  0%, 100% { text-shadow: 0 0 20px rgba(59, 130, 246, .4); }
  50% { text-shadow: 0 0 40px rgba(59, 130, 246, .9), 0 0 14px rgba(96, 165, 250, .9); }
}
.rotating-text {
  display: inline-block;
  text-transform: uppercase;
  transition: opacity .4s ease, transform .4s ease;
}
.rotating-text.is-swapping {
  opacity: 0;
  transform: translateY(8px);
}
.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 28px;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, .12);
  border: 1px solid rgba(37, 99, 235, .4);
  color: var(--blue-bright);
  font-weight: 700;
  font-size: .85rem;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 40px;
}

.hero-video { max-width: 780px; margin: 0 auto; }
.video-placeholder {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--bg-card), var(--bg-alt));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}
.video-placeholder.small { aspect-ratio: 9/13; border-radius: 10px; }
.play-btn {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--blue-cta);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 0 8px rgba(37, 99, 235, .15);
  transition: transform .2s ease;
}
.play-btn:hover { transform: scale(1.08); }
.video-hint { color: var(--text-dim); font-size: .85rem; }
.hero-cta-note {
  margin-top: 18px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: .95rem;
}

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.02em;
  text-align: center;
  margin-bottom: 16px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 48px;
}
/* ---------- Steps ---------- */
.steps {
  display: grid;
  gap: 24px;
  margin-bottom: 56px;
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.step-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--blue-bright);
  opacity: .55;
  line-height: 1;
}
.step-body h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.step-body p { color: var(--text-secondary); }

.incluye-summary {
  background: linear-gradient(135deg, rgba(37,99,235,.15), rgba(37,99,235,.03));
  border: 1px solid rgba(37,99,235,.35);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.incluye-summary p { font-size: 1.05rem; font-weight: 600; }

/* ---------- Carousel ---------- */
.carousel-wrap { position: relative; display: flex; align-items: center; gap: 12px; }
.carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 4px 16px;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.result-slide {
  flex: 0 0 auto;
  width: min(320px, 78vw);
  scroll-snap-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.result-slide .compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.result-slide .compare > div {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: linear-gradient(160deg, #1a1a1a, #101010);
}
.result-slide .compare img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.result-slide .compare .label {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(10, 10, 10, .65);
  backdrop-filter: blur(4px);
  color: var(--text);
}
.result-slide .compare .after .label { color: var(--blue-bright); }
.result-slide .result-name { padding: 14px 16px; font-weight: 700; font-size: .9rem; }
.carousel-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, border-color .2s ease;
}
.carousel-btn:hover { background: var(--blue); border-color: var(--blue); }

/* ---------- Testimonios ---------- */
.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: center;
}
.video-card { text-align: center; }
.video-name {
  display: block;
  margin-top: 12px;
  font-weight: 700;
  font-size: .9rem;
  color: var(--text-secondary);
}
.pull-quote {
  font-size: 1.05rem;
  font-weight: 700;
  font-style: italic;
  color: var(--blue-bright);
  text-align: center;
  line-height: 1.5;
}

/* ---------- Garantía ---------- */
.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.guarantee-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: border-color .2s ease, transform .2s ease;
}
.guarantee-card:hover { border-color: var(--blue); transform: translateY(-4px); }
.guarantee-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(37,99,235,.12);
  color: var(--blue-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.guarantee-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.guarantee-card p { color: var(--text-secondary); font-size: .92rem; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 14px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--blue-bright);
  flex-shrink: 0;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--text-secondary); margin-top: 14px; }

/* ---------- CTA final ---------- */
.cta-final {
  padding: 100px 0;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(37,99,235,.18), rgba(10,10,10,0) 60%);
  border-top: 1px solid var(--border);
}
.cta-final h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 16px;
}
.cta-final p {
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 32px;
}
.scarcity { margin-top: 28px; max-width: 340px; margin-left: auto; margin-right: auto; }
.scarcity-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 10px;
}
.scarcity-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--blue-bright));
  border-radius: 999px;
}
.scarcity span {
  font-size: .82rem;
  color: var(--text-dim);
  font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.footer-legal {
  color: var(--text-dim);
  font-size: .78rem;
  max-width: 780px;
  margin: 0 auto 24px;
  text-align: center;
  line-height: 1.6;
}
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 20px;
}
.footer-links a,
.footer-links button {
  color: var(--text-dim);
  font-size: .8rem;
  font-weight: 600;
}
.footer-links a:hover { color: var(--blue-bright); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-dim);
  font-size: .82rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .guarantee-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonios-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 1040px) {
  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 16px;
  }
}

@media (max-width: 560px) {
  .guarantee-grid { grid-template-columns: 1fr; }
  .header-inner .btn-small { display: none; }
}

/* ---------- Burbuja de Instagram ---------- */
.social-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-cta), var(--blue-cta-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 10px 28px rgba(37, 99, 235, .45);
  z-index: 240;
  transition: transform .2s ease, box-shadow .2s ease;
}
.social-fab:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 14px 34px rgba(37, 99, 235, .6);
}
@media (max-width: 560px) {
  .social-fab { right: 16px; bottom: 16px; width: 50px; height: 50px; }
}
