@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@500;600;700;800;900&display=swap');

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

:root {
  --background: #0a0a0f;
  --surface: #111118;
  --card: #1a1a24;
  --foreground: #ffffff;
  --muted: #a0a0b0;
  --border: rgba(255,255,255,0.08);
  --primary: #fe2c55;
  --secondary: #25f4ee;
  --accent: #7c3aed;
  --radius: 0.75rem;
}

html { scroll-behavior: smooth; }

body {
  background: var(--background);
  color: var(--foreground);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1,h2,h3,h4 { font-family: 'Poppins', system-ui, sans-serif; letter-spacing: -0.02em; }

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

/* ---- UTILITIES ---- */
.text-gradient {
  background: linear-gradient(90deg, #fe2c55 0%, #25f4ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bg-grad-brand { background: linear-gradient(135deg, #fe2c55 0%, #7c3aed 50%, #25f4ee 100%); }

.glow-red {
  box-shadow: 0 0 0 0 rgba(254,44,85,0);
  transition: box-shadow .3s, transform .3s;
}
.glow-red:hover {
  box-shadow: 0 10px 40px -5px rgba(254,44,85,0.55);
  transform: translateY(-1px);
}

.btn-shine {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: #fff;
  border-radius: 9999px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn-shine::after {
  content: "";
  position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  animation: shine 2.8s ease-in-out infinite;
}
@keyframes shine { 0%{left:-75%} 60%,100%{left:130%} }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  border-radius: 9999px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  text-decoration: none;
  transition: border-color .3s;
}
.btn-outline:hover { border-color: rgba(254,44,85,0.5); }

.card-hover {
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.card-hover:hover {
  border-color: rgba(254,44,85,0.5);
  box-shadow: 0 12px 40px -10px rgba(37,244,238,0.15), 0 0 0 1px rgba(254,44,85,0.25);
  transform: translateY(-3px);
}

.border-grad {
  position: relative;
  background: var(--card);
  border-radius: calc(var(--radius) + 4px);
}
.border-grad::before {
  content: "";
  position: absolute; inset: 0;
  padding: 1.5px;
  border-radius: inherit;
  background: linear-gradient(135deg, #fe2c55, #7c3aed, #25f4ee, #fe2c55);
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: borderShift 6s linear infinite;
  pointer-events: none;
}
@keyframes borderShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* ---- READ PROGRESS ---- */
#read-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: 2px; background: transparent; pointer-events: none;
}
#read-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #25f4ee, #fe2c55);
  width: 0%;
  transition: width .1s linear;
}

/* ---- NAVBAR ---- */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s, border-color .3s;
}
#navbar.scrolled {
  backdrop-filter: blur(12px);
  background: rgba(10,10,15,0.7);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 72rem; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1.25rem;
}
.nav-logo { display: flex; align-items: center; gap: 0.5rem; }
.nav-logo-icon {
  width: 28px; height: 28px; border-radius: 6px; flex-shrink: 0;
}
.nav-logo-text { display: flex; flex-direction: column; line-height: 1; }
.nav-logo-text strong { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1rem; }
.nav-logo-text span { font-size: 10px; color: var(--muted); letter-spacing: 0.05em; }
.nav-cta { padding: 0.5rem 1rem; font-size: 0.875rem; opacity: 1; }

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-radial {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(124,58,237,0.18), transparent 60%);
}
canvas#particles {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.6;
}
.hero-inner {
  position: relative; z-index: 10;
  max-width: 56rem; margin: 0 auto;
  padding: 6rem 1.25rem;
  text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--border);
  background: rgba(26,26,36,0.6);
  backdrop-filter: blur(8px);
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem; color: var(--muted);
  margin-bottom: 2rem;
}
.hero-icon-wrap {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 2rem;
}
.hero-icon-glow {
  position: absolute;
  width: 8rem; height: 8rem; border-radius: 50%;
  filter: blur(3rem); opacity: 0.4;
}
.hero-icon-box {
  position: relative;
  width: 5rem; height: 5rem; border-radius: 1rem;
  padding: 2px;
  background: linear-gradient(135deg, #fe2c55, #7c3aed, #25f4ee);
}
.hero-icon-inner {
  width: 100%; height: 100%; border-radius: calc(1rem - 2px);
  background: var(--card);
  display: flex; align-items: center; justify-content: center;
}
.hero-icon-inner svg { width: 2.25rem; height: 2.25rem; color: var(--secondary); }
h1.hero-title {
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 800; line-height: 0.95;
}
.hero-subtitle {
  font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--muted); margin-top: 0.5rem;
}
.hero-desc {
  margin-top: 1.5rem; font-size: 1rem;
  color: var(--muted); max-width: 42rem; margin-left: auto; margin-right: auto;
  line-height: 1.7;
}
.hero-actions { margin-top: 2.5rem; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.hero-actions .btn-shine { padding: 1rem 2rem; font-size: 1rem; }
.hero-fine { font-size: 0.75rem; color: var(--muted); }

/* ---- SECTIONS COMMON ---- */
section { padding: 6rem 0; }
.container { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.container-md { max-width: 56rem; margin: 0 auto; padding: 0 1.25rem; }
.container-sm { max-width: 48rem; margin: 0 auto; padding: 0 1.25rem; }
.section-label {
  display: block; font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--secondary); font-weight: 600;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700; line-height: 1.15;
}
.bg-surface { background: var(--surface); }

/* ---- PROBLEMA ---- */
.cards-3 {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 3.5rem;
}
.card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: calc(var(--radius) + 0.5rem);
  padding: 1.5rem;
}
.card-icon {
  width: 2.75rem; height: 2.75rem; border-radius: 0.75rem;
  background: rgba(254,44,85,0.1); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.card-icon svg { width: 1.25rem; height: 1.25rem; }
.card p { color: rgba(255,255,255,0.85); line-height: 1.6; }

/* ---- QUÉ ES ---- */
.two-col {
  display: grid; gap: 3rem;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; } }
.phone-mockup-wrap { display: flex; justify-content: center; position: relative; }
.phone-glow {
  position: absolute; inset: -2rem; border-radius: 50%;
  background: linear-gradient(135deg, rgba(254,44,85,0.2), rgba(37,244,238,0.2));
  filter: blur(3rem); opacity: 0.4;
}
.phone-frame {
  position: relative;
  width: 260px; height: 520px;
  border-radius: 2.5rem;
  border: 10px solid var(--card);
  background: var(--background);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.phone-notch {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 6rem; height: 1.25rem; background: var(--background); border-radius: 9999px; z-index: 10;
}
.phone-tabs {
  display: flex; justify-content: center; gap: 1.5rem;
  padding-top: 2.5rem; font-size: 0.75rem; color: var(--muted);
}
.phone-tabs span.active { color: var(--foreground); font-weight: 600; border-bottom: 2px solid var(--foreground); padding-bottom: 4px; }
.phone-screen {
  margin: 1rem 0.75rem 0; border-radius: 1rem; flex: 1;
  background: linear-gradient(135deg, rgba(254,44,85,0.3), rgba(124,58,237,0.3), rgba(37,244,238,0.3));
  height: 340px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.phone-screen svg { width: 4rem; height: 4rem; opacity: 0.7; }
.phone-caption {
  position: absolute; bottom: 0.75rem; left: 0.75rem; right: 0.75rem;
  font-size: 0.75rem;
}
.phone-caption p:first-child { font-weight: 600; }
.phone-caption p:last-child { color: var(--muted); }
.phone-nav {
  display: flex; justify-content: space-around;
  padding: 0.75rem 0; font-size: 0.625rem; color: var(--muted);
}

/* ---- MODULOS ---- */
.cards-6 {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 3.5rem;
}
.mod-card {
  border: 1px solid var(--border); background: var(--card);
  border-radius: calc(var(--radius) + 0.5rem);
  padding: 1.75rem; position: relative; overflow: hidden;
}
.mod-num {
  position: absolute; top: 1rem; right: 1rem;
  font-family: 'Poppins', sans-serif; font-weight: 700;
  font-size: 0.75rem; color: rgba(255,255,255,0.1);
}
.mod-icon {
  width: 3rem; height: 3rem; border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(254,44,85,0.2), rgba(37,244,238,0.2));
  border: 1px solid rgba(254,44,85,0.3);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem;
}
.mod-icon svg { width: 1.25rem; height: 1.25rem; color: var(--secondary); }
.mod-card h3 { font-family: 'Poppins', sans-serif; font-size: 1.0625rem; font-weight: 600; margin-bottom: 0.5rem; }
.mod-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

/* ---- PARA QUIÉN ---- */
.check-grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 3rem; }
.check-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  border: 1px solid var(--border); background: var(--card);
  border-radius: 0.75rem; padding: 1.25rem;
}
.check-circle {
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  flex-shrink: 0; margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
}
.check-circle.yes { background: rgba(37,244,238,0.15); color: var(--secondary); }
.check-circle.no  { background: rgba(254,44,85,0.15); color: var(--primary); }
.check-circle svg { width: 1rem; height: 1rem; }
.check-item p { font-size: 0.9375rem; color: rgba(255,255,255,0.9); }
.not-box {
  margin-top: 3rem; border: 1px solid var(--border);
  background: var(--surface); border-radius: calc(var(--radius) + 0.5rem);
  padding: 1.75rem;
}
.not-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 600; margin-bottom: 1rem; }
.not-list { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ---- CREDIBILIDAD ---- */
.cred-section {
  position: relative; overflow: hidden;
}
.cred-radial {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top, rgba(254,44,85,0.12), transparent 60%);
}
.cred-line {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  height: 1px; width: 66%;
  background: linear-gradient(90deg, transparent, rgba(37,244,238,0.6), transparent);
}
.cred-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-top: 3rem; }
.cred-card {
  border: 1px solid var(--border); background: var(--card);
  border-radius: 0.75rem; padding: 1.25rem; text-align: center;
}
.cred-card svg { width: 1.5rem; height: 1.5rem; margin: 0 auto; color: var(--secondary); }
.cred-card p { margin-top: 0.75rem; font-size: 0.875rem; }

/* ---- PRECIO ---- */
.price-wrap { max-width: 42rem; margin: 0 auto; }
.price-inner { position: relative; z-index: 10; padding: 2.5rem; text-align: center; }
.price-amount {
  display: flex; align-items: baseline; justify-content: center; gap: 0.5rem;
  margin-top: 2rem;
}
.price-number {
  font-family: 'Poppins', sans-serif; font-weight: 800;
  font-size: clamp(3.5rem, 8vw, 4.5rem);
  background: linear-gradient(90deg, #fe2c55 0%, #25f4ee 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.price-currency { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.25rem; color: var(--muted); }
.price-period { font-size: 0.875rem; color: var(--muted); }
.price-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.75rem; text-align: left; max-width: 24rem; margin-left: auto; margin-right: auto; }
.price-item { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; }
.price-check {
  width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: rgba(37,244,238,0.2); color: var(--secondary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.price-check svg { width: 0.875rem; height: 0.875rem; }
.price-cta { margin-top: 2.5rem; width: 100%; justify-content: center; padding: 1rem 2rem; font-size: 1rem; }
.price-fine { margin-top: 1rem; font-size: 0.75rem; color: var(--muted); }

/* ---- FAQ ---- */
.faq-list { margin-top: 3rem; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  border: 1px solid var(--border); background: var(--card);
  border-radius: 0.75rem; overflow: hidden;
}
.faq-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.25rem; text-align: left;
  background: transparent; border: none; color: var(--foreground); cursor: pointer;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.9375rem;
}
.faq-chevron { width: 1.25rem; height: 1.25rem; flex-shrink: 0; color: var(--muted); transition: transform .3s; }
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--secondary); }
.faq-body { max-height: 0; overflow: hidden; transition: max-height .35s ease, opacity .35s; opacity: 0; }
.faq-item.open .faq-body { max-height: 300px; opacity: 1; }
.faq-body p { padding: 0 1.25rem 1.25rem; font-size: 0.875rem; color: var(--muted); line-height: 1.7; }

/* ---- MOBILE FLOAT CTA ---- */
#mobile-cta {
  display: none;
  position: fixed; bottom: 1rem; left: 1rem; right: 1rem; z-index: 50;
  justify-content: center;
  transform: translateY(6rem); opacity: 0;
  transition: transform .4s, opacity .4s;
  pointer-events: none;
}
#mobile-cta.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
@media (max-width: 640px) { #mobile-cta { display: flex; } }
#mobile-cta a { width: 100%; justify-content: center; padding: 0.875rem 1.25rem; font-size: 0.875rem; }

/* ---- FOOTER ---- */
footer {
  border-top: 1px solid var(--border);
  background: var(--background);
}
.footer-inner {
  max-width: 72rem; margin: 0 auto; padding: 3rem 1.25rem;
  display: grid; gap: 2rem; font-size: 0.875rem;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 1rem 1.25rem; color: var(--muted); }
.footer-nav a:hover { color: var(--foreground); }
.footer-nav span { opacity: 0.3; }
.footer-meta { color: var(--muted); }
.footer-meta p + p { margin-top: 0.25rem; }
.footer-meta a { text-decoration: underline; text-underline-offset: 2px; }
.footer-meta a:hover { color: var(--foreground); }

/* ---- LEGAL PAGES ---- */
.legal-back {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; color: var(--muted); margin-bottom: 2rem;
  transition: color .2s;
}
.legal-back:hover { color: var(--foreground); }
.legal-content { padding-top: 8rem; padding-bottom: 6rem; }
.legal-article { max-width: 48rem; margin: 0 auto; padding: 0 1.25rem; }
.legal-article h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1.15; }
.legal-article .intro { margin-top: 1rem; color: var(--muted); }
.legal-body { margin-top: 2.5rem; }
.legal-body h2 {
  font-family: 'Poppins', sans-serif; font-size: 1.25rem; font-weight: 700;
  margin-top: 2.5rem; margin-bottom: 0.75rem;
}
.legal-body p { font-size: 0.9375rem; color: var(--muted); line-height: 1.75; margin-bottom: 1rem; }
.legal-body ul { list-style: disc; padding-left: 1.5rem; color: var(--muted); }
.legal-body ul li { margin-bottom: 0.375rem; font-size: 0.9375rem; }
.legal-date { margin-top: 3rem; font-size: 0.75rem; color: var(--muted); }

/* ---- FADE UP ---- */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.fade-up.in { opacity: 1; transform: none; }

/* ---- BG HEX ---- */
.bg-hex {
  background-image:
    radial-gradient(circle at 20% 10%, rgba(124,58,237,0.12), transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(37,244,238,0.08), transparent 40%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.04'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34z'/%3E%3Cpath d='M28 0v34L0 50M28 34l28 16M28 34v66'/%3E%3C/g%3E%3C/svg%3E");
}
