/* ============================================================
   InventarioApp — Apple-Inspired Design System
   CSS para las páginas públicas (Landing, Planes, Registro, Ayuda)
   ============================================================ */

/* ── Google Fonts ── */
/* Fonts loaded via <link> in _LayoutPublic.cshtml */

/* ── Variables (mapped to central --dash-* system) ── */
:root {
  /* Backgrounds */
  --bg-primary: var(--dash-bg-card, #ffffff);
  --bg-secondary: var(--dash-bg-body, #f5f5f7);
  --bg-card: var(--dash-bg-card, #ffffff);
  --bg-card-hover: var(--dash-bg-card-hover, #fafafa);
  --bg-elevated: var(--dash-bg-elevated, #f5f5f7);

  /* Text */
  --text-primary: var(--dash-text-primary, #1d1d1f);
  --text-secondary: var(--dash-text-secondary, #6e6e73);
  --text-muted: var(--dash-text-muted, #86868b);

  /* Borders */
  --border-default: var(--dash-border, #d2d2d7);
  --border-subtle: var(--dash-border-subtle, #e8e8ed);

  /* Accent — naranja refinado */
  --accent: var(--dash-accent, #ff6b00);
  --accent-hover: var(--dash-accent-hover, #e65f00);
  --accent-light: var(--dash-accent-light, rgba(255, 107, 0, 0.08));
  --accent-border: var(--dash-accent-border, rgba(255, 107, 0, 0.25));

  /* Supporting */
  --green-500: var(--dash-green, #34c759);
  --pink-500: var(--dash-red, #ff375f);
  --purple-400: var(--dash-purple, #bf5af2);

  /* Radii */
  --radius-sm: var(--dash-radius-sm, 0.5rem);
  --radius-md: var(--dash-radius-md, 0.75rem);
  --radius-lg: var(--dash-radius-lg, 1rem);
  --radius-xl: var(--dash-radius-xl, 1.25rem);
  --radius-2xl: 1.75rem;

  /* Fonts */
  --font-heading: var(--dash-font, 'Outfit', system-ui, -apple-system, 'Helvetica Neue', sans-serif);
  --font-body: var(--dash-font, 'Plus Jakarta Sans', system-ui, -apple-system, 'Helvetica Neue', sans-serif);
  --font-mono: 'JetBrains Mono', monospace;

  /* Shadows — subtle */
  --shadow-card: var(--dash-shadow-md, 0 2px 12px rgba(0, 0, 0, 0.04));
  --shadow-elevated: var(--dash-shadow-lg, 0 4px 24px rgba(0, 0, 0, 0.08));
  --shadow-product: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body.public-layout {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Container ── */
.container-pub {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) { .container-pub { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container-pub { padding: 0 2rem; } }

/* ── Typography — Apple-style ── */
.heading-xl {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}
.heading-lg {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}
.heading-md {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.heading-sm {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.text-body-pub {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }

/* ── Gradient Text — naranja refinado ── */
.gradient-text {
  background: linear-gradient(90deg, var(--accent), var(--dash-text-muted, #86868b));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons — Apple pill style ── */
.btn-primary-pub {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  border: none;
  border-radius: 980px;
  cursor: pointer;
  transition: background 0.2s ease;
  text-decoration: none;
}
.btn-primary-pub:hover { background: var(--accent-hover); color: #fff; }

.btn-primary-pub-lg { padding: 1rem 2rem; font-size: 1.05rem; }

.btn-outline-pub {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: transparent;
  color: var(--accent);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  border: none;
  border-radius: 980px;
  cursor: pointer;
  transition: background 0.2s ease;
  text-decoration: none;
}
.btn-outline-pub:hover { background: var(--accent-light); color: var(--accent); }

.btn-ghost-pub {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: transparent;
  color: var(--accent);
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  text-decoration: none;
}
.btn-ghost-pub:hover { text-decoration: underline; color: var(--accent-hover); }

.btn-link-pub {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--accent);
  font-weight: 500;
  font-size: 1.05rem;
  text-decoration: none;
  transition: color 0.2s;
}
.btn-link-pub:hover { text-decoration: underline; }

/* ── Badge ── */
.badge-pub {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 1rem;
  background: var(--accent-light);
  color: var(--accent);
  border: none;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
}

/* ── Cards — Apple style ── */
.card-pub {
  background: var(--bg-secondary);
  border: none;
  border-radius: var(--radius-2xl);
  padding: 2.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-pub:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

/* ── Icon Box ── */
.icon-box {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  color: var(--text-primary);
}
.icon-box.orange,
.icon-box.pink,
.icon-box.green,
.icon-box.purple {
  background: var(--bg-primary);
  color: var(--text-primary);
}

/* ══════════════════════════════════════════
   NAVBAR — Apple frosted glass
   ══════════════════════════════════════════ */
.navbar-pub {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  padding: 0;
}
.navbar-pub.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.navbar-pub .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}
.navbar-pub .nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}
.navbar-pub .nav-logo img { width: 2.25rem; height: 2.25rem; transition: transform 0.2s; }
.navbar-pub .nav-logo:hover img { transform: scale(1.05); }
.navbar-pub .nav-logo span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}
.navbar-pub .nav-logo .accent { color: var(--accent); }
.navbar-pub .nav-links { display: flex; align-items: center; gap: 2rem; }
.navbar-pub .nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.navbar-pub .nav-links a:hover,
.navbar-pub .nav-links a.active { color: var(--text-primary); }
.navbar-pub .nav-actions { display: flex; align-items: center; gap: 0.75rem; }

/* ══════════════════════════════════════════
   HERO SECTION — Apple centered
   ══════════════════════════════════════════ */
.hero-section {
  position: relative;
  padding: 10rem 0 5rem;
  background: var(--bg-primary);
  text-align: center;
  overflow: visible;
}
/* Legacy elements — hidden */
.hero-section .hero-bg,
.hero-section .hero-overlay-lr,
.hero-section .hero-overlay-bt { display: none; }

.hero-section .hero-content {
  position: relative;
  z-index: 10;
  max-width: 52rem;
  margin: 0 auto;
  padding: 0;
}
.hero-section .hero-content h1 { margin-bottom: 1.5rem; }
.hero-section .hero-content p.hero-desc {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
}
.hero-section .hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero-section .hero-trust {
  margin-top: 1.5rem;
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.hero-section .hero-trust svg { display: none; }

/* ══════════════════════════════════════════
   TRUST LOGOS
   ══════════════════════════════════════════ */
.trust-section {
  padding: 3rem 0;
  background: var(--bg-secondary);
}
.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.trust-logo-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  opacity: 0.6;
  transition: opacity 0.3s;
}
.trust-logo-item:hover { opacity: 1; }
.trust-logo-initials {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.trust-logo-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}
@media (max-width: 639px) {
  .trust-logos { gap: 1.5rem; }
  .trust-logo-name { display: none; }
}

/* ══════════════════════════════════════════
   FEATURES BENTO GRID
   ══════════════════════════════════════════ */
.features-section {
  padding: 8rem 0;
  background: var(--bg-primary);
}
.features-section .section-header { text-align: center; margin-bottom: 4rem; }
.features-section .section-header h2 { margin-bottom: 1.25rem; }
.features-section .section-header p { max-width: 40rem; margin: 0 auto; }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.bento-grid .card-pub:first-child { grid-column: span 1; }
@media (max-width: 1023px) { .bento-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) { .bento-grid { grid-template-columns: 1fr; } }

.bento-grid .card-pub .icon-box { margin-bottom: 1.25rem; }
.bento-grid .card-pub h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}
.bento-grid .card-pub p { color: var(--text-secondary); line-height: 1.6; }

/* ══════════════════════════════════════════
   STATS
   ══════════════════════════════════════════ */
.stats-section {
  padding: 5rem 0;
  background: var(--bg-secondary);
  border: none;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
@media (max-width: 767px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-item { text-align: center; }
.stat-item .icon-box { display: none; }
.stat-item .stat-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  /* Override gradient-text on stat values */
  background: none;
  -webkit-text-fill-color: var(--text-primary);
  background-clip: unset;
}
.stat-item .stat-label { font-size: 1rem; color: var(--text-secondary); }

/* ══════════════════════════════════════════
   DASHBOARD SHOWCASE
   ══════════════════════════════════════════ */
.dashboard-section {
  padding: 4rem 0 8rem;
  background: var(--bg-primary);
  position: relative;
}
.dashboard-section .dashboard-img-wrapper {
  position: relative;
  max-width: 64rem;
  margin: 0 auto;
}
.dashboard-section .dashboard-glow { display: none; }
.dashboard-section .dashboard-img-wrapper img {
  position: relative;
  width: 100%;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-product);
}
.dashboard-section .feature-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}
.dashboard-section .feature-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-secondary);
  border: none;
  border-radius: 9999px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.dashboard-section .feature-badge svg { color: var(--accent); width: 1rem; height: 1rem; }

/* ══════════════════════════════════════════
   PRICING CARDS
   ══════════════════════════════════════════ */
.pricing-section {
  padding: 8rem 0;
  background: var(--bg-secondary);
}
.pricing-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 64rem;
  margin: 0 auto;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 72rem;
  margin: 0 auto;
}
@media (max-width: 1023px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-preview-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 639px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 24rem; }
  .pricing-preview-grid { grid-template-columns: 1fr; max-width: 24rem; margin: 0 auto; }
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: 2.5rem;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}
.pricing-card.popular {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.pricing-card .popular-badge {
  position: absolute;
  top: -0.875rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.pricing-card .plan-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  display: inline-block;
}
.pricing-card .plan-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}
.pricing-card .plan-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  min-height: 2.5rem;
}
.pricing-card .plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  flex-wrap: nowrap;
}
.pricing-card .plan-price .amount {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  color: var(--text-primary);
  white-space: nowrap;
}
.pricing-card .plan-price .period { font-size: 0.875rem; color: var(--text-muted); white-space: nowrap; }
.pricing-card .plan-features { list-style: none; margin-bottom: 1.75rem; }
.pricing-card .plan-features li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  padding: 0.375rem 0;
  color: var(--text-secondary);
}
.pricing-card .plan-features li svg { width: 1rem; height: 1rem; color: var(--accent); flex-shrink: 0; }

/* ══════════════════════════════════════════
   COMPARISON TABLE
   ══════════════════════════════════════════ */
.comparison-table {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  border-collapse: collapse;
}
.comparison-table th, .comparison-table td {
  padding: 0.875rem 1rem;
  text-align: center;
  font-size: 0.875rem;
}
.comparison-table thead th {
  border-bottom: 1px solid var(--border-default);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
}
.comparison-table tbody tr { border-bottom: 1px solid var(--border-subtle); transition: background 0.2s; }
.comparison-table tbody tr:hover { background: var(--bg-secondary); }
.comparison-table td:first-child { text-align: left; display: flex; align-items: center; gap: 0.625rem; }
.comparison-table .check { color: var(--green-500); }
.comparison-table .cross { color: var(--text-muted); opacity: 0.3; }

/* ══════════════════════════════════════════
   FAQ ACCORDION
   ══════════════════════════════════════════ */
.faq-section { padding: 8rem 0; background: var(--bg-primary); }
.faq-list { max-width: 48rem; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: 0.75rem;
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: var(--border-default); }
.faq-item .faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.9375rem;
  cursor: pointer;
  text-align: left;
}
.faq-item .faq-question svg { color: var(--text-muted); transition: transform 0.2s; flex-shrink: 0; }
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-item .faq-answer {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

/* ══════════════════════════════════════════
   TESTIMONIALS
   ══════════════════════════════════════════ */
.testimonials-section {
  padding: 8rem 0;
  background: var(--bg-secondary);
}

.testimonial-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  margin-bottom: 2rem;
}
.testimonial-featured-img { position: relative; min-height: 24rem; }
.testimonial-featured-img img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-featured-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.testimonial-quote {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: 1.5rem;
  border: none;
  padding: 0;
}
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-subtle);
}
.testimonial-name { font-family: var(--font-heading); font-weight: 600; font-size: 0.875rem; color: var(--text-primary); }
.testimonial-role { font-size: 0.75rem; color: var(--text-muted); }
.testimonial-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}
.testimonial-stat { text-align: center; }
.testimonial-stat-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  display: block;
  color: var(--text-primary);
}
.testimonial-stat-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; display: block; }

@media (max-width: 767px) {
  .testimonial-featured { grid-template-columns: 1fr; }
  .testimonial-featured-img { min-height: 16rem; }
  .testimonial-stats { gap: 1rem; }
  .testimonial-stat-value { font-size: 1.25rem; }
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 767px) { .testimonials-grid { grid-template-columns: 1fr; } }

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  transition: transform 0.3s, box-shadow 0.3s;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}
.testimonial-card-stars { display: flex; gap: 0.25rem; margin-bottom: 1rem; }
.testimonial-card-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-style: italic;
}

/* ══════════════════════════════════════════
   CTA SECTION
   ══════════════════════════════════════════ */
.cta-section {
  padding: 8rem 0;
  background: var(--bg-primary);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* ══════════════════════════════════════════
   FOOTER — Apple compact style
   ══════════════════════════════════════════ */
.footer-pub {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  padding: 2.5rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}
@media (max-width: 767px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }
.footer-col h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: var(--text-primary);
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a, .footer-col ul li span {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 0;
  border-top: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.75rem; color: var(--text-muted); }

/* ══════════════════════════════════════════
   REGISTRO (Split Screen)
   ══════════════════════════════════════════ */
.registro-section {
  min-height: calc(100vh - 4.5rem);
  padding: 6rem 0;
  background: var(--bg-secondary);
}
.registro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 72rem;
  margin: 0 auto;
}
@media (max-width: 1023px) { .registro-grid { grid-template-columns: 1fr; max-width: 32rem; } .registro-benefits, .registro-left { display: none; } }

.registro-benefits .benefit-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.registro-benefits .benefit-item .icon-box { flex-shrink: 0; }

.registro-left { display: flex; align-items: center; }
.registro-left-content { max-width: 32rem; }
.registro-right { display: flex; align-items: center; justify-content: center; }

.registro-form-card,
.registro-form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: 2.5rem;
  width: 100%;
  max-width: 28rem;
  box-shadow: var(--shadow-elevated);
}

/* Form styles */
.form-group-pub, .form-group { margin-bottom: 1.25rem; }
.form-group-pub label, .form-label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.form-group-pub input, .form-input {
  width: 100%;
  height: 2.75rem;
  padding: 0 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group-pub input::placeholder, .form-input::placeholder { color: var(--text-muted); opacity: 0.6; }
.form-group-pub input:focus, .form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--dash-accent-rgb, 255, 107, 0), 0.12);
}
.form-group-pub .password-wrapper { position: relative; }
.form-group-pub .password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}
.form-group-pub .field-validation-error, .form-error { color: var(--dash-red, #ef4444); font-size: 0.75rem; margin-top: 0.25rem; display: block; }

/* Alert error box */
.alert-error {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: rgba(var(--dash-red-rgb, 255, 55, 95), 0.06);
  border: 1px solid rgba(var(--dash-red-rgb, 255, 55, 95), 0.15);
  border-radius: var(--radius-md);
  color: var(--dash-red, #dc2626);
}

/* Password strength indicator */
.password-strength { display: flex; align-items: center; gap: 0.75rem; }
.strength-bar { flex: 1; height: 4px; background: var(--border-default); border-radius: 2px; overflow: hidden; }
.strength-fill { height: 100%; border-radius: 2px; transition: width 0.3s, background 0.3s; width: 0; }
.strength-text { font-size: 0.75rem; font-weight: 500; white-space: nowrap; }

/* ══════════════════════════════════════════
   AYUDA (Help Center)
   ══════════════════════════════════════════ */
.ayuda-hero { padding: 6rem 0; background: var(--bg-primary); position: relative; }
.ayuda-search-wrapper { position: relative; max-width: 36rem; margin: 0 auto; }
.ayuda-search-wrapper input {
  width: 100%;
  height: 3.5rem;
  padding: 0 8rem 0 3rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
.ayuda-search-wrapper input:focus { border-color: var(--accent); }
.ayuda-search-wrapper .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}
.ayuda-search-wrapper .btn-primary-pub {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.popular-articles { padding: 4rem 0; border-bottom: 1px solid var(--border-subtle); }
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
@media (max-width: 767px) { .articles-grid { grid-template-columns: 1fr; } }
.article-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.2s;
}
.article-link:hover { border-color: var(--accent-border); background: var(--bg-card-hover); color: var(--text-primary); }
.article-link .article-title { font-size: 0.875rem; font-weight: 500; }
.article-link .article-cat { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }
.article-link svg { color: var(--text-muted); flex-shrink: 0; transition: color 0.2s; }
.article-link:hover svg { color: var(--accent); }

.categories-section { padding: 6rem 0; background: var(--bg-primary); }
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 64rem;
  margin: 0 auto;
}
@media (max-width: 767px) { .categories-grid { grid-template-columns: 1fr; } }

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-elevated); }
.category-card .cat-header { padding: 1.5rem; cursor: pointer; }
.category-card .cat-header .cat-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.75rem; }
.category-card .cat-count { font-size: 0.75rem; color: var(--accent); margin-top: 0.5rem; }
.category-card .cat-articles { border-top: 1px solid var(--border-subtle); padding: 1rem 1.5rem; }
.category-card .cat-articles a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.category-card .cat-articles a:hover { color: var(--accent); }

.contact-section { padding: 6rem 0; border-top: 1px solid var(--border-subtle); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 48rem;
  margin: 0 auto;
}
@media (max-width: 639px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.2s;
}
.contact-card:hover { box-shadow: var(--shadow-elevated); }

/* ══════════════════════════════════════════
   MOBILE MENU
   ══════════════════════════════════════════ */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.25rem;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 0.75rem 0;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
  transition: color 0.2s;
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--accent); }

@media (max-width: 767px) {
  .nav-links { display: none !important; }
  .nav-actions .btn-ghost-pub,
  .nav-actions .btn-primary-pub { display: none; }
  .nav-hamburger { display: block; }
}

/* ── Scrollbar — system style ── */
body.public-layout::-webkit-scrollbar { width: 8px; }
body.public-layout::-webkit-scrollbar-track { background: transparent; }
body.public-layout::-webkit-scrollbar-thumb { background: var(--dash-border, #c1c1c6); border-radius: 4px; }
body.public-layout::-webkit-scrollbar-thumb:hover { background: var(--dash-text-muted, #a1a1a6); }

/* ── Utilities ── */
.text-center-pub { text-align: center; }
.pub-mb-4 { margin-bottom: 1rem; }
.pub-mb-5 { margin-bottom: 1.25rem; }
.pub-mb-6 { margin-bottom: 1.5rem; }
.pub-mb-8 { margin-bottom: 2rem; }
.pub-mb-10 { margin-bottom: 2.5rem; }
.pub-mb-14 { margin-bottom: 3.5rem; }
.pub-mt-5 { margin-top: 1.25rem; }
.pub-mt-8 { margin-top: 2rem; }
.pub-mt-12 { margin-top: 3rem; }
.pub-mx-auto { margin-left: auto; margin-right: auto; }
.pub-max-w-xl { max-width: 36rem; }
.pub-max-w-2xl { max-width: 42rem; }
.pub-w-full { width: 100%; }

/* ── AOS Overrides ── */
[data-aos] { pointer-events: auto !important; }

/* ── Legacy class overrides — hide dark-theme remnants ── */
.mesh-gradient { background: none !important; }
.glass-card { background: var(--bg-card); backdrop-filter: none; border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); }

/* ══════════════════════════════════════════
   PLAN CARDS — Feature list redesign
   ══════════════════════════════════════════ */
.plan-icon-wrapper {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.plan-limits {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1rem;
}
.plan-limit-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.plan-limit-item span { font-weight: 500; }

.plan-features-list {
  margin-bottom: 1.5rem;
}
.plan-features-title {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.625rem;
}
.plan-feature-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem;
  margin: 0 -0.5rem;
  border-radius: 8px;
  font-size: 0.84rem;
  cursor: default;
  transition:
    transform 0.25s cubic-bezier(0.34, 1.3, 0.64, 1),
    background-color 0.25s ease,
    color 0.25s ease;
}
.plan-feature-row.included span { color: var(--text-secondary); transition: color 0.25s ease; }
.plan-feature-row.excluded span { color: var(--text-muted); opacity: 0.5; }
.plan-feature-row .feature-check {
  color: var(--green-500);
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.plan-feature-row .feature-cross { color: var(--text-muted); opacity: 0.3; flex-shrink: 0; }

/* Hover: solo sobre las incluidas (las excluidas quedan estaticas) */
.plan-feature-row.included:hover {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  transform: translateX(4px);
}
.plan-feature-row.included:hover span {
  color: var(--text-primary);
}
.plan-feature-row.included:hover .feature-check {
  transform: scale(1.2) rotate(-6deg);
}

@media (prefers-reduced-motion: reduce) {
  .plan-feature-row,
  .plan-feature-row .feature-check,
  .plan-feature-row.included span { transition: none; }
  .plan-feature-row.included:hover { transform: none; }
  .plan-feature-row.included:hover .feature-check { transform: none; }
}

.plan-cta { margin-top: auto; }
.pricing-card { display: flex; flex-direction: column; }

/* Currency toggle */
.currency-toggle {
  display: inline-flex;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 0.25rem;
  gap: 0.25rem;
}
.currency-btn {
  padding: 0.4rem 1.25rem;
  border: none;
  border-radius: 9999px;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.currency-btn.active {
  background: var(--accent);
  color: #fff;
}
.currency-btn:not(.active):hover {
  background: var(--accent-light);
  color: var(--accent);
}

/* ══════════════════════════════════════════
   DARK MODE
   ══════════════════════════════════════════ */

/* Dark theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}
.theme-toggle .icon-sun,
.theme-toggle .icon-moon { width: 16px; height: 16px; }
/* Show/hide icons based on theme */
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
/* Default (no data-theme) = light */
body:not([data-theme="dark"]) .theme-toggle .icon-moon { display: none; }

/* Dark mode variables — inherit from --dash-* dark values when available */
[data-theme="dark"] {
  --bg-primary: var(--dash-bg-card, #0a0a0b);
  --bg-secondary: var(--dash-bg-body, #141416);
  --bg-card: var(--dash-bg-card, #1a1a1e);
  --bg-card-hover: var(--dash-bg-card-hover, #222226);
  --bg-elevated: var(--dash-bg-elevated, #222226);

  --text-primary: var(--dash-text-primary, #f5f5f7);
  --text-secondary: var(--dash-text-secondary, #a1a1a6);
  --text-muted: var(--dash-text-muted, #6e6e73);

  --border-default: var(--dash-border, #38383d);
  --border-subtle: var(--dash-border-subtle, #2c2c30);

  --accent-light: var(--dash-accent-light, rgba(255, 107, 0, 0.12));

  --shadow-card: var(--dash-shadow-md, 0 2px 12px rgba(0, 0, 0, 0.2));
  --shadow-elevated: var(--dash-shadow-lg, 0 4px 24px rgba(0, 0, 0, 0.3));
  --shadow-product: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Dark mode — navbar glass */
[data-theme="dark"] .navbar-pub {
  background: rgba(10, 10, 11, 0.72);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
[data-theme="dark"] .navbar-pub.scrolled {
  background: rgba(10, 10, 11, 0.92);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Dark mode — mobile menu */
[data-theme="dark"] .nav-mobile {
  background: rgba(20, 20, 22, 0.98);
}

/* Dark mode — scrollbar */
[data-theme="dark"] body.public-layout::-webkit-scrollbar-thumb { background: var(--dash-border, #48484d); }
[data-theme="dark"] body.public-layout::-webkit-scrollbar-thumb:hover { background: var(--dash-text-muted, #58585d); }

/* Dark mode — comparison table hover */
[data-theme="dark"] .comparison-table tbody tr:hover { background: var(--bg-card); }

/* Dark mode — stat values override */
[data-theme="dark"] .stat-item .stat-value { -webkit-text-fill-color: var(--text-primary); }

/* ── Legal pages (Términos, Privacidad) ── */
.legal-hero {
    padding: 6rem 0 3rem;
    text-align: center;
}
.legal-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}
.legal-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
}
.legal-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 3rem;
    padding-bottom: 5rem;
}
.legal-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
    border-right: 1px solid var(--border-subtle);
    padding-right: 1.5rem;
}
.legal-sidebar h4 {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.legal-sidebar a {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.3rem 0;
    transition: color 0.2s;
}
.legal-sidebar a:hover { color: var(--accent); }
.legal-content h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2.5rem 0 1rem;
    padding-top: 1rem;
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p,
.legal-content li {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--text-secondary);
}
.legal-content ul {
    padding-left: 1.25rem;
    margin: 0.75rem 0;
}
.legal-content ul li {
    margin-bottom: 0.4rem;
}
.legal-content a {
    color: var(--accent);
    text-decoration: underline;
}
.legal-content .highlight-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    margin: 1.25rem 0;
}
.legal-content .highlight-box p {
    margin: 0;
}
@media (max-width: 768px) {
    .legal-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .legal-sidebar {
        display: none;
    }
    .legal-hero h1 { font-size: 1.75rem; }
}
