/* ================================================================
   Docenpro · v3 Aurora — Dark mode + glass + neon
   ================================================================ */
:root {
  --bg: #0a0e1c;
  --bg-darker: #060916;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --border-glass: rgba(255, 255, 255, 0.15);
  --text: #f8fafc;
  --text-soft: #cbd5e1;
  --muted: #94a3b8;
  --soft: #64748b;
  --cyan: #06b6d4;
  --cyan-light: #22d3ee;
  --magenta: #ec4899;
  --magenta-light: #f472b6;
  --violet: #a855f7;
  --lime: #84cc16;
  --gradient-neon: linear-gradient(135deg, #06b6d4 0%, #a855f7 50%, #ec4899 100%);
  --gradient-cyan: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
  --gradient-magenta: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

a { color: var(--cyan-light); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--magenta-light); }
img, svg { display: block; max-width: 100%; height: auto; }
strong { color: var(--text); font-weight: 600; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--gradient-neon);
  z-index: 1000;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
}

/* ===== Aurora background ===== */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
}
.aurora-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
  top: -200px; left: -200px;
  animation: aurora-1 20s ease-in-out infinite;
}
.aurora-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--magenta) 0%, transparent 70%);
  top: 30%; right: -150px;
  animation: aurora-2 24s ease-in-out infinite;
}
.aurora-3 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--violet) 0%, transparent 70%);
  bottom: -200px; left: 30%;
  animation: aurora-3 28s ease-in-out infinite;
}
.aurora-4 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #1e40af 0%, transparent 70%);
  top: 60%; left: 10%;
  animation: aurora-4 18s ease-in-out infinite;
}
@keyframes aurora-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(100px, 80px) scale(1.2); }
}
@keyframes aurora-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-80px, 120px) scale(0.85); }
}
@keyframes aurora-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(120px, -80px) scale(1.15); }
}
@keyframes aurora-4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-60px, -100px) scale(0.9); }
}
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ===== Glass effect ===== */
.glass {
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-glass);
}

/* ===== Tilt 3D ===== */
.tilt {
  transition: transform 0.4s var(--ease-out);
  transform-style: preserve-3d;
}

/* ===== Neon text ===== */
.neon, .neon-text {
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(168, 85, 247, 0.4));
}
.neon-cyan {
  background: var(--gradient-cyan);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(6, 182, 212, 0.4));
}
.neon-magenta {
  background: var(--gradient-magenta);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(236, 72, 153, 0.4));
}

/* ===== Botones ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 26px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: all 0.22s var(--ease-out);
}
.btn-primary {
  background: var(--gradient-neon);
  color: #fff;
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(168, 85, 247, 0.5);
  color: #fff;
}
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-glass);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: var(--surface-strong); color: var(--text); }
.btn-sad {
  background: var(--gradient-cyan) !important;
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.35) !important;
}
.btn-sad:hover { box-shadow: 0 12px 28px rgba(6, 182, 212, 0.5) !important; }
.btn-lg { font-size: 16px; padding: 14px 32px; }
.btn-sm { font-size: 12px; padding: 8px 18px; }
.btn-block { display: flex; width: 100%; }
.neon-glow { box-shadow: 0 0 30px rgba(168, 85, 247, 0.5), 0 0 60px rgba(236, 72, 153, 0.3); }

/* ===== Topbar ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.brand {
  position: relative;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.brand-glow {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gradient-neon);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.8);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(168, 85, 247, 0.8); }
  50% { box-shadow: 0 0 24px rgba(168, 85, 247, 1), 0 0 36px rgba(6, 182, 212, 0.6); }
}
.topbar-nav { display: flex; align-items: center; gap: 24px; }
.topbar-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
}
.topbar-nav a:not(.btn):hover { color: var(--text); }

@media (max-width: 920px) { .topbar-nav a:not(.btn) { display: none; } }

/* ===== Hero ===== */
.hero { padding: 96px 0 80px; position: relative; }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}
@media (max-width: 1024px) { .hero-inner { grid-template-columns: 1fr; } }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan-light);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 24px;
  padding: 6px 14px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 999px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}
.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 24px;
}
.hero-title .line { display: block; }
.hero-subtitle {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--text-soft);
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-products {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.glass-card {
  position: relative;
  display: block;
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  overflow: hidden;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.glass-card:hover {
  color: inherit;
  transform: translateY(-6px) rotateY(-2deg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.glass-card-glow {
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  background: var(--gradient-neon);
  filter: blur(30px);
  opacity: 0.2;
  z-index: -1;
}
.glass-card-glow-sad { background: var(--gradient-cyan); }
.glass-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.glass-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 6px 12px;
  border-radius: 8px;
}
.glass-tag-plan {
  background: rgba(168, 85, 247, 0.15);
  color: var(--violet);
  border: 1px solid rgba(168, 85, 247, 0.3);
}
.glass-tag-sad {
  background: rgba(6, 182, 212, 0.15);
  color: var(--cyan-light);
  border: 1px solid rgba(6, 182, 212, 0.3);
}
.glass-icon { font-size: 22px; }
.glass-card img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
}
.glass-card p {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-soft);
}

/* ===== Stats ===== */
.stats { padding: 32px 0 64px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  text-align: center;
}
.stat-num {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { font-size: 13px; color: var(--muted); }

/* ===== Sections ===== */
.section { padding: 96px 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--cyan-light);
  margin-bottom: 14px;
  padding: 4px 12px;
  background: rgba(6, 182, 212, 0.08);
  border-radius: 999px;
}
.section-title {
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
}

/* ===== Productos ===== */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 28px;
}
.producto-glass {
  position: relative;
  padding: 40px;
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.producto-glass:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
.producto-glow {
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.3), transparent 60%);
  z-index: -1;
  opacity: 0.6;
}
.producto-glow-sad { background: radial-gradient(circle, rgba(6, 182, 212, 0.3), transparent 60%); }
.producto-content { position: relative; z-index: 1; }
.producto-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--violet);
  background: rgba(168, 85, 247, 0.15);
  padding: 5px 12px;
  border-radius: 8px;
  margin-bottom: 18px;
}
.producto-tag-sad {
  color: var(--cyan-light);
  background: rgba(6, 182, 212, 0.15);
}
.producto-nombre {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 14px;
}
.producto-desc { color: var(--text-soft); margin-bottom: 22px; line-height: 1.65; }
.producto-bullets { list-style: none; margin-bottom: 28px; }
.producto-bullets li {
  padding: 7px 0 7px 24px;
  position: relative;
  color: var(--text-soft);
  font-size: 14px;
}
.producto-bullets li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--cyan-light);
}

/* ===== Pricing ===== */
.pricing-group-title {
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  color: var(--text);
  margin: 56px 0 24px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}
.pricing-grid-single { max-width: 360px; }
.price-card {
  position: relative;
  padding: 36px 28px;
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.price-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
}
.price-card-featured {
  border-color: var(--violet);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(236, 72, 153, 0.08));
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.3);
}
.price-card-sad {
  border-color: var(--cyan);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(16, 185, 129, 0.08));
}
.price-ribbon {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-neon);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(168, 85, 247, 0.4);
}
.price-card h4 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.price-amount {
  font-size: 52px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 12px 0 22px;
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.price-amount-sad {
  background: var(--gradient-cyan);
  -webkit-background-clip: text;
  background-clip: text;
}
.price-amount .cur { font-size: 22px; vertical-align: top; margin-right: 4px; }
.price-amount .per { font-size: 14px; font-weight: 500; margin-left: 6px; color: var(--muted); background: none; -webkit-text-fill-color: var(--muted); }
.price-card ul { list-style: none; flex-grow: 1; margin-bottom: 24px; }
.price-card ul li {
  padding: 8px 0 8px 22px;
  position: relative;
  font-size: 14px;
  color: var(--text-soft);
}
.price-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--cyan-light);
  font-weight: 700;
}

/* ===== Steps ===== */
.section-contact .section-title { color: var(--text); }
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 0 0 48px;
}
.step {
  padding: 32px 28px;
  border-radius: 18px;
  text-align: center;
  position: relative;
}
.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  background: var(--gradient-neon);
  border-radius: 18px;
  font-size: 28px;
  margin-bottom: 16px;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.4);
}
.step-num {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cyan-light);
  margin-bottom: 8px;
}
.step h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}
.step p { color: var(--text-soft); font-size: 14px; }
.contact-cta { text-align: center; }

/* ===== Design selector ===== */
.section-designs { padding: 96px 0; }
.design-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.design-card {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.design-card:hover {
  transform: translateY(-6px);
  color: inherit;
  box-shadow: 0 20px 50px rgba(168, 85, 247, 0.25);
}
.design-card-active { border-color: var(--cyan); box-shadow: 0 0 30px rgba(6, 182, 212, 0.3); }
.design-badge {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  background: var(--gradient-neon);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 6px;
}
.design-thumb {
  aspect-ratio: 600 / 400;
  overflow: hidden;
  border-bottom: 1px solid var(--border-glass);
}
.design-thumb img { width: 100%; height: 100%; object-fit: cover; }
.design-info { padding: 20px; }
.design-info h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}
.design-info p { color: var(--text-soft); font-size: 13px; }

/* ===== Footer ===== */
.footer {
  background: var(--bg-darker);
  padding: 48px 0 28px;
  border-top: 1px solid var(--border-glass);
  position: relative;
  z-index: 1;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.footer-brand { font-size: 24px; font-weight: 900; letter-spacing: -0.01em; }
.footer-tagline { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--muted); }

/* ===== Reveal ===== */
.reveal {
  opacity: 0;
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal[data-anim="fade-in-up"] { transform: translateY(36px); }
.reveal.in { opacity: 1; transform: translate(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .aurora { animation: none; }
}
