/* WANEXUS — CSS compartido para subpáginas de rubros
   Cada subpágina sobreescribe --rubro y --rubro-soft según el rubro */

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

:root {
  --black:    #0a0a0a;
  --white:    #f8f6f0;
  --cream:    #f0ede3;
  --accent:   #00c896;
  --accent2:  #7c3aed;
  --orange:   #fb923c;
  --muted:    #6b6b6b;
  --border:   rgba(255,255,255,0.1);
  --card-bg:  #111111;
  --card-border: #222222;
  --sans:     'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display:  'Syne', system-ui, -apple-system, sans-serif;

  /* estos los sobreescribe cada rubro */
  --rubro:      #00c896;
  --rubro-soft: rgba(0,200,150,0.1);
  --rubro-border: rgba(0,200,150,0.25);
  --rubro-text: #042015;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.logo {
  font-family: var(--display);
  font-weight: 800; font-size: 24px;
  letter-spacing: -0.8px;
}
.logo .wa { color: var(--accent); }
.logo-rubro {
  font-size: 12px; color: rgba(248,246,240,0.5);
  border-left: 1px solid var(--border); padding-left: 14px;
  margin-left: 2px; font-family: var(--sans); font-weight: 400;
}
nav ul { list-style: none; display: flex; gap: 32px; align-items: center; }
nav ul a {
  color: rgba(248,246,240,0.7);
  font-size: 14px; font-weight: 400; letter-spacing: 0.3px;
  transition: color .2s;
}
nav ul a:hover { color: var(--white); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-cta {
  background: var(--accent); color: var(--black) !important;
  padding: 10px 22px; border-radius: 8px; font-weight: 600 !important;
  font-size: 14px !important;
  transition: all .2s;
  white-space: nowrap;
}
.nav-cta:hover { background: #00b084; transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: 1px solid var(--border);
              color: var(--white); cursor: pointer; font-size: 20px;
              width: 40px; height: 40px; border-radius: 8px; line-height: 1; }

/* ─── HERO ─── */
.hero {
  min-height: 90vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px 48px 80px;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, var(--rubro-soft) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 70%, rgba(124,58,237,0.05) 0%, transparent 70%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0; opacity: 0.04;
  background-image: linear-gradient(var(--white) 1px, transparent 1px),
                    linear-gradient(90deg, var(--white) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--rubro-soft); border: 1px solid var(--rubro-border);
  color: var(--rubro); font-size: 12px; font-weight: 500; letter-spacing: 1.2px;
  text-transform: uppercase; padding: 6px 14px; border-radius: 100px;
  margin-bottom: 32px; width: fit-content; position: relative; z-index: 1;
}
.hero-tag::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--rubro); display: block;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02; letter-spacing: -2px;
  position: relative; z-index: 1;
  max-width: 900px;
}
h1 em { color: var(--rubro); font-style: normal; }

.hero-sub {
  font-size: 18px; color: rgba(248,246,240,0.65); font-weight: 300;
  max-width: 620px; margin-top: 28px;
  position: relative; z-index: 1;
  line-height: 1.7;
}

.hero-actions {
  display: flex; gap: 16px; margin-top: 44px; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--rubro); color: var(--rubro-text);
  padding: 15px 28px; border-radius: 10px; font-weight: 600;
  font-size: 15px; letter-spacing: -0.2px;
  transition: all .2s; border: none; cursor: pointer; font-family: var(--sans);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: var(--white);
  padding: 15px 28px; border-radius: 10px; font-weight: 500; font-size: 15px;
  border: 1px solid rgba(248,246,240,0.2);
  transition: all .2s;
}
.btn-secondary:hover { border-color: rgba(248,246,240,0.5); background: rgba(255,255,255,0.04); }

.hero-mini {
  font-size: 13px; color: rgba(248,246,240,0.4);
  margin-top: 18px; position: relative; z-index: 1;
}

/* ─── SECTIONS ─── */
section { padding: 90px 48px; position: relative; }
.section-tag {
  display: inline-block; font-size: 12px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--rubro); font-weight: 500;
  padding: 6px 14px; border-radius: 100px;
  background: var(--rubro-soft); border: 1px solid var(--rubro-border);
  margin-bottom: 20px;
}
h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(32px, 3.8vw, 48px); letter-spacing: -1.5px;
  line-height: 1.1; max-width: 720px;
}
h2 em { color: var(--rubro); font-style: normal; }
.section-sub {
  color: rgba(248,246,240,0.55); font-size: 17px; font-weight: 300;
  max-width: 560px; margin-top: 16px; line-height: 1.7;
}

/* ─── DOLORES ─── */
.dolores-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px; margin-top: 48px;
}
.dolor-card {
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px; padding: 24px;
  transition: all .3s;
}
.dolor-card:hover { border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.04); }
.dolor-ico {
  width: 40px; height: 40px; background: var(--rubro-soft);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; color: var(--rubro);
}
.dolor-ico svg { width: 18px; height: 18px; stroke: currentColor; fill: none;
                 stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dolor-title { font-weight: 600; font-size: 15px; color: var(--white); margin-bottom: 6px; }
.dolor-desc { font-size: 13px; color: rgba(248,246,240,0.55); font-weight: 300; line-height: 1.5; }

/* ─── BENTO BENEFICIOS ─── */
.bento { margin-top: 48px; display: flex; flex-direction: column; gap: 14px; }
.bento-row-a { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; }
.bento-row-b { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.bento-row-c { display: grid; grid-template-columns: 1fr; gap: 14px; }

.bento-card {
  background: linear-gradient(180deg, rgba(0,200,150,0.04), transparent);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; padding: 26px;
  transition: all .3s;
}
.bento-card:hover { border-color: var(--rubro-border); }

.bento-card.big {
  background: linear-gradient(180deg, var(--rubro-soft), transparent);
  border-color: var(--rubro-border);
  display: flex; align-items: center; gap: 28px;
}
.bento-card.big .bento-body { flex: 1; }

.bento-card.wide { display: flex; align-items: center; gap: 28px; }

.bento-num {
  font-size: 11px; color: var(--rubro); letter-spacing: 1.5px;
  font-weight: 600; margin-bottom: 10px;
}
.bento-title {
  font-family: var(--display); font-weight: 700;
  font-size: 20px; letter-spacing: -0.5px;
  color: var(--white); margin-bottom: 8px;
}
.bento-card.big .bento-title { font-size: 24px; }
.bento-desc {
  font-size: 13px; color: rgba(248,246,240,0.6);
  line-height: 1.6; font-weight: 300;
}

/* Mini preview dentro del bento */
.mini-preview {
  width: 200px; flex-shrink: 0;
  background: rgba(0,0,0,0.4); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px;
}
.mini-preview .mp-head {
  font-size: 10px; color: rgba(248,246,240,0.4);
  letter-spacing: 1px; margin-bottom: 8px; text-transform: uppercase;
}
.mini-preview .mp-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; background: var(--rubro-soft);
  border-radius: 8px; margin-bottom: 5px;
}
.mini-preview .mp-row span { font-size: 11px; color: var(--white); }
.mini-preview .mp-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); margin-left: auto;
}

/* Stat chips al costado de bento-card.wide */
.stat-chip {
  padding: 14px 18px; background: var(--rubro-soft);
  border: 1px solid var(--rubro-border);
  border-radius: 10px; text-align: center; min-width: 90px;
}
.stat-chip-label {
  font-size: 10px; color: var(--rubro); letter-spacing: 1px;
  margin-bottom: 4px; text-transform: uppercase;
}
.stat-chip-value {
  font-size: 20px; font-weight: 700; color: var(--white);
  font-family: var(--display);
}

/* ─── MÉTRICAS ─── */
.metricas-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px; margin-top: 48px;
}
.metrica-card {
  background: var(--rubro-soft); border: 1px solid var(--rubro-border);
  border-radius: 14px; padding: 28px;
}
.metrica-value {
  font-family: var(--display); font-size: clamp(28px, 2.8vw, 38px);
  font-weight: 800; color: var(--rubro);
  line-height: 1; margin-bottom: 8px; letter-spacing: -1.2px;
}
.metrica-label {
  font-size: 14px; color: rgba(248,246,240,0.7);
}
.metricas-nota {
  font-size: 11px; color: rgba(248,246,240,0.3);
  margin-top: 18px; font-style: italic;
}

/* ─── PLANES ─── */
#planes {
  background: linear-gradient(135deg, #0d0d0d 0%, #0a0f0d 100%);
  border-top: 1px solid var(--rubro-border);
  border-bottom: 1px solid var(--rubro-border);
  position: relative; overflow: hidden;
}
#planes::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 50% 70% at 90% 50%, var(--rubro-soft) 0%, transparent 70%),
    radial-gradient(ellipse 30% 50% at 10% 30%, rgba(124,58,237,0.05) 0%, transparent 70%);
}
.planes-inner { position: relative; z-index: 1; }
.planes-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 20px; margin-top: 48px;
}
.plan {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 20px; padding: 32px 28px;
  display: flex; flex-direction: column;
  transition: all .3s; position: relative;
}
.plan.featured {
  border-color: rgba(124,58,237,0.4);
  background: linear-gradient(180deg, rgba(124,58,237,0.04), transparent);
}
.plan:hover { transform: translateY(-4px); }
.plan-name {
  font-family: var(--display); font-weight: 700; font-size: 22px;
  letter-spacing: -0.3px; margin-bottom: 6px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.plan-badge {
  font-size: 10px; background: rgba(124,58,237,0.18); color: #a78bfa;
  padding: 3px 9px; border-radius: 6px; font-family: var(--sans);
  font-weight: 600; letter-spacing: 0.5px;
}
.plan-badge-combo {
  font-size: 10px; background: rgba(0,200,150,0.12); color: var(--accent);
  padding: 3px 9px; border-radius: 6px; font-family: var(--sans);
  font-weight: 600; letter-spacing: 0.5px;
}
.plan-desc { font-size: 13px; color: rgba(248,246,240,0.5); margin-bottom: 22px; line-height: 1.5; }
.plan-price-row {
  display: flex; align-items: baseline; gap: 8px;
  font-family: var(--display); margin-bottom: 4px;
}
.plan-price { font-size: 40px; font-weight: 800; letter-spacing: -1.8px; color: var(--accent); }
.plan.pro .plan-price { color: #a78bfa; }
.plan.ent .plan-price { color: var(--orange); font-size: 28px; }
.plan-period { font-size: 13px; color: rgba(248,246,240,0.4); font-family: var(--sans); font-weight: 300; }
.plan-combo-tag {
  font-size: 11px; color: var(--accent);
  padding: 9px 12px; background: rgba(0,200,150,0.06);
  border: 1px solid rgba(0,200,150,0.2); border-radius: 8px;
  margin: 14px 0 4px;
}
.plan-extra-tag {
  font-size: 11px; color: var(--orange);
  padding: 9px 12px; background: rgba(251,146,60,0.06);
  border: 1px solid rgba(251,146,60,0.2); border-radius: 8px;
  margin: 14px 0 4px;
}
.plan-prof {
  display: flex; align-items: center; gap: 12px; margin: 18px 0 22px;
  padding: 12px 14px; background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06); border-radius: 10px;
}
.plan-prof-label { font-size: 12px; color: rgba(248,246,240,0.5); flex: 1; }
.prof-counter {
  display: flex; align-items: center; gap: 0;
  border: 1px solid #333; border-radius: 8px; overflow: hidden;
}
.prof-counter button {
  width: 30px; height: 30px; background: #1a1a1a; border: none; color: var(--white);
  font-size: 15px; cursor: pointer; font-family: var(--sans);
  transition: background .2s;
}
.prof-counter button:hover { background: #252525; }
.prof-counter span {
  min-width: 30px; text-align: center; font-size: 14px;
  font-weight: 600; padding: 0 4px;
}
.plan-features {
  list-style: none; padding: 0; margin: 0 0 24px;
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
}
.plan-features li {
  font-size: 13px; color: rgba(248,246,240,0.75);
  display: flex; align-items: flex-start; gap: 10px;
}
.plan-features li::before {
  content: '✓'; color: var(--accent); flex-shrink: 0;
}
.plan.pro .plan-features li::before { color: #a78bfa; }
.plan.ent .plan-features li::before { color: var(--orange); }
.plan-cta {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px; border-radius: 10px;
  font-weight: 600; font-size: 14px; text-align: center;
  border: 1px solid rgba(0,200,150,0.4); color: var(--accent);
  background: transparent; transition: all .2s;
}
.plan-cta:hover { background: rgba(0,200,150,0.08); }
.plan.pro .plan-cta { background: #a78bfa; color: var(--black); border-color: transparent; }
.plan.pro .plan-cta:hover { filter: brightness(1.08); }
.plan.ent .plan-cta { border-color: rgba(251,146,60,0.4); color: var(--orange); }
.plan.ent .plan-cta:hover { background: rgba(251,146,60,0.08); }

/* ─── FAQ ─── */
.faq-list {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 48px; max-width: 820px;
}
.faq-item {
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 20px 24px;
  transition: all .3s;
}
.faq-item:hover { border-color: rgba(255,255,255,0.15); }
.faq-q { font-size: 16px; font-weight: 600; color: var(--white); margin-bottom: 8px; }
.faq-a { font-size: 14px; color: rgba(248,246,240,0.6); line-height: 1.6; font-weight: 300; }

/* ─── CTA FINAL ─── */
#cta-final {
  background: linear-gradient(180deg, var(--black), #050506);
  text-align: center;
  padding: 90px 48px;
}
#cta-final h2 {
  font-size: clamp(36px, 4vw, 52px);
  margin: 0 auto 16px; max-width: 720px;
}
#cta-final .section-sub {
  margin: 0 auto 32px; max-width: 560px;
}
#cta-final .hero-actions { justify-content: center; }

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 60px 48px 32px;
  background: #050505;
}
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 40px; max-width: 1200px; margin: 0 auto 40px;
}
.footer-col h5 {
  font-family: var(--display); font-weight: 700; font-size: 14px;
  letter-spacing: -0.2px; margin-bottom: 14px;
}
.footer-col p, .footer-col a {
  display: block; font-size: 13px; color: rgba(248,246,240,0.5);
  margin-bottom: 8px; font-weight: 300;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(248,246,240,0.4);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .dolores-grid, .bento-row-b, .metricas-grid, .planes-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .bento-row-a { grid-template-columns: 1fr; }
  .bento-card.big, .bento-card.wide { flex-direction: column; align-items: flex-start; gap: 20px; }
  .mini-preview { width: 100%; }
}
@media (max-width: 768px) {
  nav { padding: 12px 16px; }
  nav ul { display: none; }
  nav ul.open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: rgba(10,10,10,0.98);
    border-bottom: 1px solid var(--border); padding: 16px 20px;
  }
  nav ul.open li { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .logo-rubro { display: none; }
  .hero { padding: 120px 20px 60px; }
  section { padding: 60px 20px; }
  .dolores-grid, .bento-row-b, .metricas-grid, .planes-grid {
    grid-template-columns: 1fr;
  }
  .stat-chip { flex: 1; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

.ico {
  stroke: currentColor; fill: none;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
