:root {
  --bg: #040816;
  --bg-2: #0a1530;
  --surface: rgba(12, 24, 47, .78);
  --surface-2: rgba(17, 34, 66, .9);
  --text: #ecf3ff;
  --muted: #9db0d2;
  --border: rgba(125, 158, 214, .24);
  --primary: #3b82f6;
  --primary-2: #22d3ee;
  --success: #34d399;
  --shadow: 0 20px 50px rgba(2, 8, 23, .45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 10% -10%, #1a2e57 0%, transparent 35%), var(--bg);
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  width: 360px;
  height: 360px;
  filter: blur(65px);
  border-radius: 50%;
  z-index: -1;
  opacity: .55;
}
.glow-1 { background: #2c6cff; top: -120px; left: -80px; }
.glow-2 { background: #22d3ee; bottom: -160px; right: -120px; }

.container { width: min(1120px, 92%); margin: 0 auto; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(4, 8, 22, .72);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}

.brand {
  display: flex;
  gap: 0;
  text-decoration: none;
  color: inherit;
  align-items: center;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #021022;
  background: linear-gradient(145deg, #6ee7ff, #60a5fa);
}
.brand strong { display: block; font-size: inherit; }
.brand small { color: var(--muted); font-size: .75rem; }

.brand-logo {
  display: block;
  font-size: clamp(1.35rem, 1vw + 1.1rem, 1.56rem);
  font-weight: 800;
  letter-spacing: .45px;
  line-height: 1;
  position: relative;
  width: fit-content;
  color: var(--text);
  text-shadow: 0 0 18px rgba(117, 144, 245, .2);
  transition: text-shadow .28s ease, transform .28s ease;
}

.brand .brand-logo {
  font-size: clamp(1.35rem, 1vw + 1.1rem, 1.56rem);
}

.brand-logo::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(117, 144, 245, .1), rgba(117, 144, 245, .88), rgba(57,255,20,.95));
}

.logo-x {
  display: inline-block;
  background: linear-gradient(110deg, #39ff14 0%, #2dff73 36%, #22d3ee 72%, #60efff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 12px rgba(57, 255, 20, .52), 0 0 24px rgba(34, 211, 238, .4);
  animation: logoNeonFlow 3.2s linear infinite;
  transition: filter .28s ease, text-shadow .28s ease, transform .28s ease;
}

.brand:hover .brand-logo,
.brand-logo:hover {
  text-shadow: 0 0 18px rgba(143, 170, 235, .3);
}

.brand:hover .logo-x,
.brand-logo:hover .logo-x {
  text-shadow: 0 0 14px rgba(57, 255, 20, .72), 0 0 28px rgba(34, 211, 238, .5);
  filter: brightness(1.08);
  transform: translateY(-.5px);
}

@keyframes logoNeonFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ── Logo SVG gráfica ── */
.affix-x-svg {
  height: 1.22em;
  width: auto;
  overflow: visible;
  vertical-align: -0.16em;
  display: inline-block;
  margin-left: 2px;
  transform-origin: 50% 60%;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
  will-change: transform;
}

.affix-x-mark {
  animation: xGlowPulse 2.5s ease-in-out infinite;
  transition: filter .35s ease;
  transform-origin: 50% 60%;
}

@keyframes xGlowPulse {
  0%, 100% {
    filter: drop-shadow(0 0 3px rgba(57,255,20,.5))
            drop-shadow(0 0 9px rgba(57,255,20,.22));
  }
  50% {
    filter: drop-shadow(0 0 6px rgba(57,255,20,.72))
            drop-shadow(0 0 18px rgba(57,255,20,.4))
            drop-shadow(0 0 32px rgba(212,255,0,.18));
  }
}

.brand-logo:hover .affix-x-svg,
.brand:hover .affix-x-svg {
  transform: scale(1.18) translateY(-3px);
}

.brand-logo:hover .affix-x-mark,
.brand:hover .affix-x-mark {
  animation: none;
  filter:
    drop-shadow(0 0 2px #fff)
    drop-shadow(0 0 5px #d4ff00)
    drop-shadow(0 0 12px #39ff14)
    drop-shadow(0 0 24px #39ff14)
    drop-shadow(0 0 48px rgba(57,255,20,.55));
}

.brand-logo:active .affix-x-svg,
.brand:active .affix-x-svg {
  transform: scale(0.92);
  transition: transform .1s ease;
}

.nav-links { display: flex; gap: 20px; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: .88rem;
}
.nav-links a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 11px;
  padding: 11px 16px;
  text-decoration: none;
  font-weight: 700;
  font-size: .88rem;
  border: 1px solid transparent;
  transition: .24s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  color: #06210a;
  background: linear-gradient(130deg, #39FF14, #19d70b);
  border-color: rgba(130, 255, 111, .55);
  box-shadow: 0 14px 30px rgba(57, 255, 20, .30);
}
.btn-primary:hover {
  box-shadow: 0 18px 36px rgba(57, 255, 20, .4), 0 0 18px rgba(57,255,20,.25);
  transform: translateY(-2px) scale(1.01);
}
.btn-outline {
  color: #d6e8ff;
  border-color: rgba(133, 171, 237, .45);
  background: rgba(15, 32, 62, .35);
}
.btn-ghost {
  color: #b9d2ff;
  border-color: rgba(133, 171, 237, .35);
  background: transparent;
}
.w-full { width: 100%; }

.hero {
  padding: 76px 0 42px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 24px;
  align-items: start;
}
.pill {
  display: inline-flex;
  border: 1px solid rgba(138, 180, 255, .35);
  background: rgba(32, 63, 113, .45);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: .78rem;
  color: #cfe2ff;
  margin-bottom: 14px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.15rem);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.hero h1 span {
  color: #90d8ff;
  text-shadow: 0 0 24px rgba(77, 164, 255, .35);
}
.hero p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  margin: 16px 0 0;
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.hero-metrics {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.hero-metrics article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}
.hero-metrics strong {
  display: block;
  font-size: 1.35rem;
  color: #b9e7ff;
}
.hero-metrics span {
  color: var(--muted);
  font-size: .76rem;
}

.hero-card {
  background: linear-gradient(180deg, rgba(19, 39, 76, .85), rgba(10, 21, 45, .92));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.hero-card h3 { margin: 0; font-size: 1.05rem; }
.hero-card p { margin: 8px 0 12px; color: var(--muted); font-size: .9rem; }
.hero-card ul { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 8px; }
.hero-card li {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #d9e8ff;
  font-size: .87rem;
  border: 1px solid rgba(139, 173, 236, .2);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(6, 14, 30, .34);
}

.section { padding: 60px 0; }
.section-alt {
  background: linear-gradient(180deg, rgba(10, 20, 43, .65), rgba(6, 14, 30, .75));
  border-top: 1px solid rgba(130, 160, 210, .16);
  border-bottom: 1px solid rgba(130, 160, 210, .16);
}

.section-head { text-align: center; margin-bottom: 22px; }
.section-kicker {
  color: #a5d8ff;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.section-head h2 {
  margin: 8px 0 0;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
}

.grid { display: grid; gap: 14px; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0; font-size: 1rem; }
.card p { margin: 8px 0 0; color: var(--muted); line-height: 1.6; font-size: .9rem; }

.testimonials .card p { font-style: italic; }
.testimonials strong { display: block; margin-top: 12px; }
.testimonials small { color: var(--muted); }

.pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.price-card {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.price-card h3 { margin: 0; }
.price {
  margin: 10px 0;
  font-size: 1.9rem;
  font-weight: 800;
}
.price span { font-size: .9rem; color: var(--muted); font-weight: 600; }
.price-card ul { margin: 0 0 14px; padding-left: 18px; color: #d8e7ff; display: grid; gap: 7px; font-size: .88rem; }
.price-card.featured {
  border-color: rgba(107, 188, 255, .68);
  transform: translateY(-4px);
}
.tag-best {
  position: absolute;
  top: -10px;
  right: 14px;
  background: linear-gradient(120deg, #6ee7ff, #60a5fa);
  color: #032038;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 800;
}

.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}
.faq details {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(12, 25, 49, .74);
  padding: 12px 14px;
}
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 8px 0 0; color: var(--muted); line-height: 1.6; }

.cta-box {
  border: 1px solid rgba(127, 183, 250, .45);
  background: linear-gradient(140deg, rgba(22, 57, 110, .75), rgba(14, 27, 57, .94));
  border-radius: 18px;
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
}
.cta-box h2 { margin: 0; font-size: clamp(1.35rem, 3vw, 2.1rem); }
.cta-box p { margin: 10px auto 0; color: var(--muted); max-width: 58ch; }
.cta-box .hero-actions { justify-content: center; }

.footer {
  border-top: 1px solid var(--border);
  background: rgba(5, 10, 23, .7);
}
.footer-wrap {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: .84rem;
}
.footer a { color: #bcd8ff; text-decoration: none; }

.reveal {
  opacity: 0;
  transform: translateY(20px) scale(.98);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 58px;
  }
  .cards-3, .pricing { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}

@media (max-width: 680px) {
  .cards-3, .pricing, .hero-metrics { grid-template-columns: 1fr; }
  .nav-wrap { flex-wrap: wrap; }
  .btn { width: 100%; }
  .hero-actions { width: 100%; }
  .footer-wrap { flex-direction: column; justify-content: center; padding: 12px 0; }
}
