/* ============================================================
   DIRECTORIO PEDERNALES — app.css v2.0
   Diseño inspirado en Fioxen Directory + NutFlix Dashboard
   Fuente: Rubik | Variables configurables desde BD
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300;0,400;0,500;0,600;0,700;0,900;1,400&display=swap');
@import url('modular/18_extracted_utilities.css');
@import url('modular/19_plans_extracted.css');
@import url('modular/20_dashboard_extracted.css');

/* ── CSS VARIABLES CONFIGURABLES ──────────────────────────── */
:root {
  /* ★ COLORES PRINCIPALES (se sobreescriben desde BD vía <style> inline) */
  --primary: #00d400;
  --primary-rgb: 0, 212, 0;
  --secondary: #00d400;
  --white: #fff;
  --black: #141720;
  --bgLight: #f7f7f8;
  --bgDark: #1e2030;
  --bgDark2: #041f2f;
  --borderColor: #e8ecdf;
  --gray: #727272;
  --textColor: #353535;
  --shadow: 0px 2px 16.8px 3.2px rgba(0, 38, 66, 0.08);
  --shadow2: 0 0.375rem 0.75rem rgba(140, 152, 164, .075);
  --gold: #ffc100;
  --transition: all .3s ease-in-out;
  --danger: #e74c3c;
  --success: #2ecc71;
  --info: #3498db;

  /* Aliases */
  --color-primary: var(--primary);
  --color-secondary: var(--black);
  --color-accent: var(--secondary);
  --color-bg: #fff;
  --color-bg-alt: var(--bgLight);
  --color-dark: var(--black);
  --color-dark2: var(--bgDark2);
  --color-text: var(--textColor);
  --color-text-light: var(--gray);
  --color-border: var(--borderColor);
  --color-white: #fff;

  /* Font */
  --font-heading: 'Rubik', system-ui, sans-serif;
  --font-body: 'Rubik', system-ui, sans-serif;
  --font-mono: 'Rubik', monospace;

  /* Spacing */
  --s1: .5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2rem;
  --s5: 3rem;
  --s6: 5rem;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;

  /* Navbar */
  --navbar-h: 72px;
}

/* ── DARK MODE ─────────────────────────────────────────────── */
[data-theme="dark"] {
  --color-bg: var(--bgDark);
  --color-bg-alt: var(--bgDark2);
  --color-text: #e8e8e8;
  --color-text-light: #9a9aaa;
  --color-border: #2e3150;
  --color-white: #1e2030;
  --white: #1e2030;
  --bgLight: var(--bgDark2);
  --borderColor: #2e3150;
  --textColor: #e8e8e8;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background .3s, color .3s;
  /* padding-top solo para páginas con navbar — panel/admin lo anulan con body.no-navbar */
  padding-top: var(--navbar-h);
}

/* ✅ Páginas SIN navbar (panel cliente y admin) */
body.no-navbar {
  padding-top: 0 !important;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary);
}

ul {
  list-style: none;
}

input,
select,
textarea,
button {
  font-family: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--s3);
}

@media(max-width:768px) {
  .container {
    padding: 0 var(--s2);
  }
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

h2 {
  font-size: clamp(1.3rem, 3vw, 2rem);
}

h3 {
  font-size: 1.2rem;
}

/* ── TOPBAR ────────────────────────────────────────────────── */
.topbar {
  background: var(--black);
  color: #9aa0b0;
  font-size: 0.8rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 212, 0, 0.1);
}

.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar__follow {
  display: flex;
  align-items: center;
  gap: var(--s1);
}

.topbar__follow a {
  color: #9aa0b0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 0.75rem;
}

.topbar__follow a:hover {
  color: var(--primary);
}

.topbar__promo {
  color: #9aa0b0;
}

.topbar__promo a {
  color: var(--primary);
  font-weight: 600;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.topbar__actions a {
  color: #9aa0b0;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.topbar__actions a:hover {
  color: var(--primary);
}

/* ── NAVBAR ────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow);
  height: var(--navbar-h);
  transition: var(--transition);
}

[data-theme="dark"] .navbar {
  background: var(--bgDark);
}

.navbar__inner {
  display: flex;
  align-items: center;
  gap: var(--s3);
  height: var(--navbar-h);
}

.navbar__logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
}

.navbar__logo-img {
  height: 44px;
  width: auto;
}

/* ── LOGO VARIANTS: desktop full / mobile icon / light-dark switching ── */
.navbar__logo--desktop {
  display: block;
}

.navbar__logo--mobile {
  display: none;
  height: 32px;
  width: auto;
}

.navbar__logo--light {
  display: block;
}

.navbar__logo--dark {
  display: none;
}

[data-theme="dark"] .navbar__logo--dark {
  display: block;
}

[data-theme="dark"] .navbar__logo--light {
  display: none;
}

[data-theme="dark"] .navbar__logo-text {
  color: #fff;
}

/* Mobile (<=768px): show ONLY the icon, hide all full logos */
@media (max-width: 768px) {
  .navbar__logo--desktop {
    display: none !important;
  }

  .navbar__logo--light {
    display: none !important;
  }

  .navbar__logo--dark {
    display: none !important;
  }

  [data-theme="dark"] .navbar__logo--dark {
    display: none !important;
  }

  [data-theme="dark"] .navbar__logo--light {
    display: none !important;
  }

  .navbar__logo--mobile {
    display: inline-block !important;
    height: 32px !important;
    width: auto !important;
  }

  [data-theme="dark"] .navbar__logo--mobile {
    filter: brightness(0) invert(1);
  }
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.navbar__link {
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: var(--transition);
  position: relative;
}

.navbar__link:hover,
.navbar__link.active {
  color: var(--primary);
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform .2s;
  border-radius: 2px;
}

.navbar__link:hover::after {
  transform: scaleX(1);
}

.navbar__dropdown {
  position: relative;
}

.navbar__dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  padding: 6px 0;
  min-width: 200px;
  box-shadow: var(--shadow-lg, 0 8px 32px rgba(0, 0, 0, .12));
  z-index: 100;
}

[data-theme="dark"] .navbar__dropdown-menu {
  background: var(--bgDark2);
}

.navbar__dropdown:hover .navbar__dropdown-menu {
  display: block;
}

.navbar__dropdown-menu li a {
  display: block;
  padding: 9px var(--s3);
  color: var(--color-text);
  font-size: 0.875rem;
}

.navbar__dropdown-menu li a:hover {
  color: var(--primary);
  background: rgba(0, 212, 0, 0.06);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--s2);
  flex-shrink: 0;
}

.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.navbar__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

.navbar__mobile {
  display: none;
  position: absolute;
  top: var(--navbar-h);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 2px solid var(--primary);
  padding: var(--s3);
  flex-direction: column;
  gap: var(--s1);
  box-shadow: var(--shadow);
}

.navbar__mobile--open {
  display: flex;
}

.navbar__mobile a {
  color: var(--color-text);
  padding: 10px var(--s2);
  border-radius: var(--r-sm);
  font-weight: 500;
}

.navbar__mobile a:hover {
  color: var(--primary);
  background: rgba(0, 212, 0, 0.06);
}

[data-theme="dark"] .navbar__mobile {
  background: var(--bgDark);
}

@media(max-width:960px) {
  .navbar__links {
    display: none;
  }

  .navbar__burger {
    display: flex;
  }
}

/* ── DARK MODE TOGGLE — MOON / SUN ICON ───────────────────── */
.theme-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
  font-size: 1.15rem;
  padding: 6px 8px;
  border-radius: 8px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.theme-btn:hover {
  color: var(--primary);
  background: rgba(var(--primary-rgb), .08);
}

/* Light mode: show moon (click to go dark) */
.theme-btn__sun {
  display: none;
}

.theme-btn__moon {
  display: inline-block;
}

/* Dark mode: show sun (click to go light) */
[data-theme="dark"] .theme-btn__sun {
  display: inline-block;
  color: var(--primary);
}

[data-theme="dark"] .theme-btn__moon {
  display: none;
}

/* Keep old toggle working if still referenced */
.theme-toggle {
  width: 44px;
  height: 24px;
  background: var(--color-border);
  border-radius: var(--r-full);
  border: none;
  cursor: pointer;
  position: relative;
  transition: background .3s;
  flex-shrink: 0;
}

.theme-toggle::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform .3s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}

[data-theme="dark"] .theme-toggle {
  background: var(--primary);
}

/* ── NAVBAR MOBILE LAYOUT: logo centrado, toggle a la izquierda ─ */
@media (max-width: 768px) {
  .navbar__inner {
    position: relative;
    justify-content: space-between;
  }

  /* Logo: centered absolutely so it doesn't affect flex layout */
  .navbar__logo {
    position: absolute !important;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
  }

  /* Actions block: goes to left (before logo in visual order) */
  .navbar__actions {
    order: -1;
    margin-right: 0;
  }

  /* Hide auth ghost/outline buttons on mobile — they live in the hamburger menu */
  .navbar__actions .btn {
    display: none !important;
  }

  /* Burger stays at right end */
  .navbar__burger {
    order: 1;
  }
}

[data-theme="dark"] .theme-toggle::after {
  transform: translateX(20px);
}

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: .65rem 1.4rem;
  border-radius: var(--r-sm);
  font-size: .9rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  line-height: 1.4;
}

.btn--primary {
  background: var(--primary);
  color: var(--black);
  border-color: var(--primary);
}

.btn--primary:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), .35);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn--outline:hover {
  background: var(--primary);
  color: var(--black);
}

.btn--dark {
  background: var(--black);
  color: var(--primary);
  border-color: var(--black);
}

.btn--dark:hover {
  background: var(--bgDark2);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-light);
  border-color: transparent;
}

.btn--ghost:hover {
  color: var(--primary);
  background: rgba(0, 212, 0, .08);
}

.btn--whatsapp {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
}

.btn--whatsapp:hover {
  background: #1eb858;
  color: #fff;
}

.btn--sm {
  padding: .45rem .9rem;
  font-size: .8rem;
}

.btn--lg {
  padding: .875rem 2.2rem;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

.btn--pill {
  border-radius: var(--r-full);
}

.btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

/* ── FORM INPUTS ───────────────────────────────────────────── */
.input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--r-sm);
  font-size: .9rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: var(--transition);
  font-family: var(--font-body);
}

[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: var(--bgDark2);
  border-color: #2e3150;
  color: #e8e8e8;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .15);
}

label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.form-group {
  margin-bottom: var(--s3);
}

.form-hint {
  font-size: .8rem;
  color: var(--color-text-light);
  margin-top: 4px;
}

/* ── FLASH MESSAGES ────────────────────────────────────────── */
.flash {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) var(--s4);
  font-size: .9rem;
  position: fixed;
  top: calc(var(--navbar-h) + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  border-radius: var(--r-md);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .2);
  min-width: 300px;
  max-width: 90vw;
  transition: opacity .5s;
}

.flash button {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  opacity: .7;
  color: inherit;
}

.flash--success {
  background: #1a6640;
  color: #fff;
}

.flash--error {
  background: #8B3A2A;
  color: #fff;
}

.flash--info {
  background: #1B4F72;
  color: #fff;
}

/* ── PAGE HEADER BANNER (Fioxen style) ─────────────────────── */
.page-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
}

.page-banner__title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--black);
  font-weight: 900;
  margin-bottom: 8px;
}

.page-banner__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: rgba(0, 0, 0, .6);
}

.page-banner__breadcrumb a {
  color: var(--black);
  font-weight: 600;
}

.page-banner__breadcrumb span {
  opacity: .5;
}

.page-banner__img {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  object-fit: cover;
  opacity: .3;
}

/* ── HERO ──────────────────────────────────────────────────── */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--black);
  background-size: cover;
  background-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(20, 23, 32, .92) 0%, rgba(20, 23, 32, .65) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  width: 100%;
  padding: var(--s6) 0;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--primary-rgb), .15);
  border: 1px solid rgba(var(--primary-rgb), .3);
  color: var(--primary);
  font-size: .75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: var(--r-full);
  margin-bottom: var(--s3);
  font-weight: 600;
}

.hero__title {
  color: #fff;
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 900;
  margin-bottom: var(--s2);
  line-height: 1.1;
}

.hero__title span,
.hero__title strong {
  color: var(--primary);
}

.hero__sub {
  color: rgba(255, 255, 255, .7);
  font-size: 1.1rem;
  margin-bottom: var(--s4);
  max-width: 560px;
}

.hero__ctas {
  display: flex;
  gap: var(--s2);
  flex-wrap: wrap;
  margin-bottom: var(--s5);
}

.hero__stats {
  display: flex;
  gap: var(--s4);
  flex-wrap: wrap;
}

.hero__stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.hero__stat-label {
  font-size: .8rem;
  color: rgba(255, 255, 255, .6);
  margin-top: 2px;
}

.hero__stat-divider {
  width: 1px;
  background: rgba(255, 255, 255, .15);
}

/* ── SEARCH BAR (grande, pill) ─────────────────────────────── */
.search-wrap {
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--r-xl);
  padding: 8px;
  margin-bottom: var(--s5);
  max-width: 760px;
}

.search-bar {
  display: flex;
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.search-bar__field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px var(--s3);
  min-width: 0;
}

.search-bar__field i {
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
}

.search-bar__input {
  border: none;
  outline: none;
  font-size: 1rem;
  background: transparent;
  width: 100%;
  color: var(--textColor);
  font-family: var(--font-body);
}

.search-bar__input::placeholder {
  color: #aaa;
}

.search-bar__sep {
  width: 1px;
  background: var(--borderColor);
  margin: 12px 0;
}

.search-bar__select {
  border: none;
  outline: none;
  background: transparent;
  color: var(--textColor);
  font-size: .9rem;
  padding: 0 var(--s2);
  cursor: pointer;
  min-width: 160px;
  font-family: var(--font-body);
}

.search-bar__btn {
  background: var(--primary);
  color: var(--black);
  border: none;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  flex-shrink: 0;
}

.search-bar__btn:hover {
  background: var(--secondary);
  transform: none;
}

@media(max-width:640px) {
  .search-bar {
    flex-direction: column;
    border-radius: var(--r-md);
  }

  .search-bar__sep {
    width: 100%;
    height: 1px;
    margin: 0 var(--s2);
  }

  .search-bar__btn {
    border-radius: 0;
    padding: 14px;
  }
}

/* ── SECTIONS ──────────────────────────────────────────────── */
.section {
  padding: var(--s6) 0;
}

.section--light {
  background: var(--bgLight);
}

[data-theme="dark"] .section--light {
  background: var(--bgDark2);
}

.section--dark {
  background: var(--black);
}

.section__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: var(--s4);
  position: relative;
}

.section__header--flex {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  text-align: left;
}

.section__eyebrow {
  font-size: .75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section__eyebrow::before,
.section__eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
  max-width: 40px;
}

.section__title {
  color: var(--color-text);
}

.section__desc {
  color: var(--color-text-light);
  max-width: 560px;
  margin-top: 10px;
}

.section__link {
  color: var(--primary);
  font-size: .875rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ── CATEGORY CARDS (Fioxen style con íconos FA) ───────────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: var(--s2);
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 10px;
  border-radius: var(--r-lg);
  text-align: center;
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  transition: var(--transition);
  cursor: pointer;
  color: var(--color-text);
  position: relative;
  overflow: hidden;
}

.category-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(var(--primary-rgb), .15);
  color: var(--color-text);
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), .05) 0%, transparent 100%);
  opacity: 0;
  transition: opacity .3s;
}

.category-card:hover::before {
  opacity: 1;
}

.category-card__fa-icon {
  font-size: 1.6rem;
  color: var(--primary);
  transition: transform .3s;
}

.category-card:hover .category-card__fa-icon {
  transform: scale(1.2);
}

.category-card__icon {
  display: none;
}

/* ocultar emojis */
.category-card__name {
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.3;
}

.category-card__count {
  font-size: .7rem;
  color: var(--color-text-light);
  background: var(--bgLight);
  padding: 2px 8px;
  border-radius: var(--r-full);
}

/* ── BUSINESS CARDS ────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--s3);
}

.cards-grid--featured {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

/* CARD estilo Fioxen */
.biz-card {
  background: var(--color-white);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1.5px solid var(--color-border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.biz-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .1);
}

.biz-card--super {
  border-color: var(--primary);
}

.biz-card__img-wrap {
  position: relative;
  display: block;
  height: 200px;
  overflow: hidden;
}

.biz-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.biz-card:hover .biz-card__img {
  transform: scale(1.06);
}

.biz-card__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.biz-card__cat-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: var(--primary);
  color: var(--black);
  font-size: .7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  gap: 5px;
}

.biz-card__status {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: .65rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--r-full);
  background: #2ecc71;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.biz-card__status--closed {
  background: var(--danger);
}

.biz-card__body {
  padding: var(--s3);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.biz-card__meta {
  display: flex;
  gap: var(--s2);
  font-size: .75rem;
  color: var(--color-text-light);
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.biz-card__meta i {
  color: var(--primary);
  font-size: .7rem;
}

.biz-card__name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.biz-card__name a {
  color: var(--color-text);
}

.biz-card__name a:hover {
  color: var(--primary);
}

.biz-card__desc {
  font-size: .82rem;
  color: var(--color-text-light);
  margin-bottom: var(--s2);
  line-height: 1.5;
  flex: 1;
}

.biz-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--s2);
  border-top: 1px solid var(--color-border);
}

.biz-card__rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.biz-card__stars {
  color: var(--gold);
  font-size: .75rem;
  display: flex;
}

.biz-card__rating-count {
  font-size: .75rem;
  color: var(--color-text-light);
}

.biz-card__btn {
  font-size: .8rem;
}

/* CARD HORIZONTAL (list view) */
.biz-card--horizontal {
  flex-direction: row;
}

.biz-card--horizontal .biz-card__img-wrap {
  width: 220px;
  height: auto;
  flex-shrink: 0;
}

.biz-card--horizontal .biz-card__body {
  padding: var(--s3);
}

@media(max-width:600px) {
  .biz-card--horizontal {
    flex-direction: column;
  }

  .biz-card--horizontal .biz-card__img-wrap {
    width: 100%;
    height: 200px;
  }
}

/* ── BADGES ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: .7rem;
  font-weight: 700;
}

.badge--verified {
  background: rgba(46, 204, 113, .15);
  color: #1a7a42;
  border: 1px solid rgba(46, 204, 113, .3);
}

.badge--verified i {
  color: #2ecc71;
}

.badge--pro {
  background: rgba(52, 152, 219, .15);
  color: #1B4F72;
  border: 1px solid rgba(52, 152, 219, .3);
}

.badge--super_pro {
  background: rgba(var(--primary-rgb), .15);
  color: var(--secondary);
  border: 1px solid rgba(var(--primary-rgb), .3);
}

.badge--lg {
  font-size: .8rem;
  padding: 5px 14px;
}

/* ── STARS RATING ───────────────────────────────────────────── */
.stars {
  display: inline-flex;
  gap: 2px;
}

.stars i {
  color: var(--gold);
  font-size: .85rem;
}

.stars i.empty {
  color: var(--color-border);
}

/* ── LISTING PAGE ───────────────────────────────────────────── */
.listing-page {
  padding: var(--s4) 0 var(--s6);
}

.listing-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s2) var(--s3);
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--r-md);
  margin-bottom: var(--s3);
}

[data-theme="dark"] .listing-toolbar {
  background: var(--bgDark2);
}

.listing-toolbar__count {
  font-size: .875rem;
  color: var(--color-text-light);
}

.listing-toolbar__count strong {
  color: var(--primary);
}

.listing-toolbar__right {
  display: flex;
  gap: var(--s2);
  align-items: center;
}

.listing-toolbar__sort {
  border: 1px solid var(--color-border);
  border-radius: var(--r-sm);
  padding: 6px 12px;
  font-size: .875rem;
  background: transparent;
  color: var(--color-text);
  min-width: 150px;
}

.listing-view-btns {
  display: flex;
  gap: 4px;
}

.listing-view-btn {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  transition: var(--transition);
}

.listing-view-btn.active,
.listing-view-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(var(--primary-rgb), .08);
}

.listing-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: var(--s4);
}

@media(max-width:960px) {
  .listing-layout {
    grid-template-columns: 1fr;
  }
}

/* ── FILTER SIDEBAR (Fioxen style) ─────────────────────────── */
.filter-sidebar {
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--r-lg);
  padding: var(--s3);
  height: fit-content;
  position: sticky;
  top: calc(var(--navbar-h) + var(--s2));
}

[data-theme="dark"] .filter-sidebar {
  background: var(--bgDark2);
}

.filter-sidebar__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--s3);
  padding-bottom: var(--s2);
  border-bottom: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-sidebar__title a {
  font-size: .8rem;
  color: var(--color-text-light);
  font-weight: 400;
}

.filter-group {
  margin-bottom: var(--s3);
}

.filter-group__title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-light);
  margin-bottom: 10px;
}

.filter-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .875rem;
  cursor: pointer;
  padding: 5px 0;
  color: var(--color-text);
}

.filter-check input {
  width: auto;
  cursor: pointer;
  accent-color: var(--primary);
}

.filter-search {
  position: relative;
}

.filter-search input {
  padding-right: 36px;
}

.filter-search .fa-search {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-light);
  font-size: .85rem;
}

.filter-sidebar .btn--primary {
  width: 100%;
  margin-top: var(--s2);
  border-radius: var(--r-full);
}

/* ── PAGINATION ─────────────────────────────────────────────── */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: var(--s5);
  flex-wrap: wrap;
}

.pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  font-size: .875rem;
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
  transition: var(--transition);
  font-weight: 500;
}

.pagination__btn:hover,
.pagination__btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--black);
}

.pagination__btn.disabled {
  opacity: .4;
  pointer-events: none;
}

/* ── BUSINESS DETAIL PAGE ───────────────────────────────────── */
.biz-hero {
  position: relative;
  background: var(--black);
}

.biz-hero__cover {
  height: 440px;
  overflow: hidden;
}

.biz-hero__cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .75;
}

.biz-hero__cover-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3a3d4a;
  font-size: 4rem;
}

.biz-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 23, 32, .7) 0%, transparent 60%);
}

.biz-hero__thumbs {
  display: flex;
  gap: 8px;
  padding: 12px 0;
  overflow-x: auto;
  position: relative;
  z-index: 1;
}

.biz-hero__thumb {
  width: 90px;
  height: 65px;
  border-radius: var(--r-sm);
  background-size: cover;
  background-position: center;
  border: 2.5px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  opacity: .7;
}

.biz-hero__thumb.active,
.biz-hero__thumb:hover {
  border-color: var(--primary);
  opacity: 1;
}

.biz-topbar {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: var(--s3) 0;
  box-shadow: var(--shadow2);
}

[data-theme="dark"] .biz-topbar {
  background: var(--bgDark);
}

.biz-topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s3);
  flex-wrap: wrap;
}

.biz-topbar__name {
  font-size: clamp(1.25rem, 3vw, 1.85rem);
}

.biz-topbar__meta {
  display: flex;
  align-items: center;
  gap: var(--s2);
  flex-wrap: wrap;
  margin-top: 4px;
}

.biz-topbar__meta span {
  font-size: .8rem;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

.biz-topbar__meta i {
  color: var(--primary);
}

.biz-topbar__actions {
  display: flex;
  gap: var(--s2);
}

.biz-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--s4);
  padding: var(--s4) 0 var(--s6);
}

@media(max-width:960px) {
  .biz-layout {
    grid-template-columns: 1fr;
  }

  .biz-sidebar {
    order: -1;
  }
}

.biz-section {
  margin-bottom: var(--s4);
  background: var(--color-white);
  border-radius: var(--r-lg);
  padding: var(--s3);
  border: 1.5px solid var(--color-border);
}

[data-theme="dark"] .biz-section {
  background: var(--bgDark2);
}

.biz-section__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  margin-bottom: var(--s3);
  padding-bottom: var(--s2);
  border-bottom: 2px solid var(--color-border);
}

.biz-section__title i {
  color: var(--primary);
  background: rgba(var(--primary-rgb), .1);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.biz-section__text {
  color: var(--color-text-light);
  line-height: 1.8;
}

.hours-table {
  display: grid;
  gap: 2px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--bgLight);
  border-radius: var(--r-sm);
  font-size: .875rem;
}

[data-theme="dark"] .hours-row {
  background: rgba(255, 255, 255, .04);
}

.hours-row--closed {
  opacity: .5;
}

.hours-day {
  font-weight: 600;
}

.hours-closed {
  color: var(--danger);
  font-size: .8rem;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bgLight);
  border-radius: var(--r-sm);
  font-size: .875rem;
}

[data-theme="dark"] .amenity-item {
  background: rgba(255, 255, 255, .04);
}

.amenity-item i {
  color: var(--primary);
  width: 16px;
}

.promo-card {
  padding: var(--s3);
  background: rgba(var(--primary-rgb), .05);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin-bottom: var(--s2);
}

.biz-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--r-md);
}

.biz-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── BUSINESS SIDEBAR WIDGETS ───────────────────────────────── */
.biz-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.biz-widget {
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

[data-theme="dark"] .biz-widget {
  background: var(--bgDark2);
}

.biz-widget__header {
  background: var(--primary);
  color: var(--black);
  padding: 12px var(--s3);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.biz-widget__body {
  padding: var(--s3);
}

.biz-contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  font-size: .875rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.biz-contact-row:last-child {
  border-bottom: none;
}

.biz-contact-row i {
  color: var(--primary);
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.biz-contact-row:hover {
  color: var(--primary);
}

.biz-socials {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.biz-social {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  font-size: .875rem;
  font-weight: 600;
  transition: var(--transition);
}

.biz-social--facebook {
  background: rgba(24, 119, 242, .1);
  color: #1877F2;
}

.biz-social--facebook:hover {
  background: #1877F2;
  color: #fff;
}

.biz-social--instagram {
  background: rgba(225, 48, 108, .1);
  color: #E1306C;
}

.biz-social--instagram:hover {
  background: #E1306C;
  color: #fff;
}

.biz-social--whatsapp {
  background: rgba(37, 211, 102, .1);
  color: #25D366;
}

.biz-social--whatsapp:hover {
  background: #25D366;
  color: #fff;
}

.biz-map iframe {
  width: 100%;
  height: 220px;
  border: none;
  display: block;
}

.biz-qr-img {
  width: 140px;
  height: 140px;
  margin: 0 auto var(--s2);
  border: 3px solid var(--primary);
  border-radius: var(--r-md);
  padding: 6px;
  background: #fff;
  display: block;
}

.biz-qr-code {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 3px;
  text-align: center;
  margin-bottom: 4px;
}

/* ── RESERVATION WIDGET (Fioxen style) ─────────────────────── */
.reservation-widget .biz-widget__body {
  padding: var(--s3);
}

.reservation-widget input,
.reservation-widget select {
  margin-bottom: 10px;
}

.reservation-widget .btn {
  width: 100%;
  border-radius: var(--r-full);
  margin-top: 4px;
  padding: 14px;
  font-size: 1rem;
}

/* ── REVIEWS SECTION ────────────────────────────────────────── */
.review-card {
  padding: var(--s3);
  border: 1.5px solid var(--color-border);
  border-radius: var(--r-lg);
  margin-bottom: var(--s2);
  background: var(--color-white);
  transition: var(--transition);
}

[data-theme="dark"] .review-card {
  background: var(--bgDark2);
}

.review-card:hover {
  border-color: var(--primary);
}

.review-card__header {
  display: flex;
  align-items: flex-start;
  gap: var(--s2);
  margin-bottom: var(--s2);
}

.review-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--color-border);
}

.review-card__avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), .15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

.review-card__meta {
  flex: 1;
}

.review-card__author {
  font-weight: 700;
  font-size: .95rem;
}

.review-card__date {
  font-size: .75rem;
  color: var(--color-text-light);
  margin-top: 2px;
}

.review-card__google {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: .7rem;
  color: var(--color-text-light);
}

.review-card__google img {
  height: 14px;
}

.review-card__text {
  font-size: .875rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.review-card__text a {
  color: var(--primary);
}

.review-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s3);
  align-items: center;
  padding: var(--s3);
  background: var(--bgLight);
  border-radius: var(--r-lg);
  margin-bottom: var(--s3);
}

[data-theme="dark"] .review-summary {
  background: rgba(255, 255, 255, .04);
}

.review-summary__score {
  text-align: center;
}

.review-summary__number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.review-summary__label {
  font-size: .75rem;
  color: var(--color-text-light);
}

.review-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.review-bar__label {
  font-size: .75rem;
  width: 14px;
}

.review-bar__track {
  flex: 1;
  height: 6px;
  background: var(--color-border);
  border-radius: var(--r-full);
  overflow: hidden;
}

.review-bar__fill {
  height: 100%;
  background: var(--gold);
  border-radius: var(--r-full);
}

.review-bar__count {
  font-size: .7rem;
  color: var(--color-text-light);
  width: 24px;
}

/* ── GOOGLE REVIEWS WIDGET ──────────────────────────────────── */
.google-reviews-widget {
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

[data-theme="dark"] .google-reviews-widget {
  background: var(--bgDark2);
}

.google-reviews-widget__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s2) var(--s3);
  background: linear-gradient(135deg, rgba(var(--primary-rgb), .08) 0%, transparent);
  border-bottom: 1px solid var(--color-border);
}

.google-reviews-widget__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: .95rem;
}

.google-reviews-widget__google-logo {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .8rem;
  color: var(--color-text-light);
}

.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #4285F4;
  color: white;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--r-full);
}

.google-reviews-widget__embed {
  min-height: 300px;
}

.google-reviews-embed-placeholder {
  padding: var(--s3);
}

.google-reviews-embed-placeholder p {
  font-size: .875rem;
  color: var(--color-text-light);
  margin-bottom: var(--s2);
}

.google-reviews-embed-placeholder code {
  background: var(--bgLight);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .8rem;
}

/* ── GALLERY MODAL ──────────────────────────────────────────── */
.gallery-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, .97);
  align-items: center;
  justify-content: center;
  cursor: grab;
  user-select: none;
}

.gallery-modal.open {
  display: flex;
}

.gallery-modal:active {
  cursor: grabbing;
}

.gallery-modal__img {
  max-height: 90vh;
  max-width: 82vw;
  object-fit: contain;
  border-radius: 4px;
  display: block;
  pointer-events: none;
}

.gallery-modal__close,
.gallery-modal__prev,
.gallery-modal__next {
  position: absolute;
  background: rgba(255, 255, 255, .15);
  border: none;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
  z-index: 10;
  flex-shrink: 0;
  backdrop-filter: blur(4px);
}

.gallery-modal__close:hover,
.gallery-modal__prev:hover,
.gallery-modal__next:hover {
  background: var(--primary);
  color: var(--black);
}

.gallery-modal__close {
  top: 16px;
  right: 16px;
}

.gallery-modal__prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.gallery-modal__next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

/* ── STEPS ──────────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s4);
}

.step-card {
  text-align: center;
  padding: var(--s3);
  position: relative;
}

.step-card::after {
  content: '→';
  position: absolute;
  right: -var(--s2);
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--primary);
  opacity: .5;
}

.step-card:last-child::after {
  display: none;
}

.step-card__num {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(var(--primary-rgb), .15);
  line-height: 1;
  margin-bottom: var(--s2);
}

.step-card__icon {
  width: 64px;
  height: 64px;
  background: rgba(var(--primary-rgb), .1);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--s2);
}

.step-card__icon i {
  font-size: 1.5rem;
  color: var(--primary);
}

.step-card__title {
  font-size: 1rem;
  margin-bottom: 8px;
}

.step-card__desc {
  font-size: .875rem;
  color: var(--color-text-light);
}

/* ── PLANS ──────────────────────────────────────────────────── */
.plans-toggle {
  display: flex;
  background: var(--bgLight);
  border-radius: var(--r-full);
  padding: 4px;
  width: fit-content;
  margin: 0 auto var(--s4);
  border: 1.5px solid var(--color-border);
}

.plans-toggle__btn {
  padding: 9px var(--s3);
  border-radius: var(--r-full);
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: .9rem;
  color: var(--color-text-light);
  transition: var(--transition);
}

.plans-toggle__btn.active {
  background: var(--black);
  color: var(--primary);
}

.plans-toggle__save {
  font-size: .7rem;
  background: #1a6640;
  color: #fff;
  padding: 2px 8px;
  border-radius: var(--r-full);
  margin-left: 6px;
  vertical-align: middle;
}

.plans-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s3);
  align-items: start;
}

.plan-card {
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: var(--r-xl);
  padding: var(--s4);
  position: relative;
  transition: var(--transition);
}

[data-theme="dark"] .plan-card {
  background: var(--bgDark2);
}

.plan-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(var(--primary-rgb), .15);
}

.plan-card--featured {
  border-color: var(--primary);
  box-shadow: 0 16px 40px rgba(var(--primary-rgb), .2);
}

.plan-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--black);
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 18px;
  border-radius: var(--r-full);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}

.plan-card__badge--gold {
  background: var(--black);
  color: var(--primary);
}

.plan-card__name {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.plan-card__desc {
  font-size: .85rem;
  color: var(--color-text-light);
  margin-bottom: var(--s3);
}

.plan-card__price {
  margin-bottom: var(--s3);
  padding-bottom: var(--s3);
  border-bottom: 1px solid var(--color-border);
}

.plan-card__amount {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--primary);
}

.plan-card__period {
  font-size: .85rem;
  color: var(--color-text-light);
}

.plan-card__features {
  margin-bottom: var(--s3);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-card__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .875rem;
}

.plan-card__features li.yes i.fas {
  color: #2ecc71;
}

.plan-card__features li.no {
  color: #bbb;
}

.plan-card__features li.no i.fas {
  color: #ddd;
}

/* ── BENEFITS ───────────────────────────────────────────────── */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--s3);
}

.benefit-card {
  padding: var(--s3);
  background: var(--color-white);
  border-radius: var(--r-lg);
  border: 1.5px solid var(--color-border);
  transition: var(--transition);
}

[data-theme="dark"] .benefit-card {
  background: var(--bgDark2);
}

.benefit-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.benefit-card__icon {
  width: 52px;
  height: 52px;
  background: rgba(var(--primary-rgb), .1);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s2);
}

.benefit-card__icon i {
  font-size: 1.4rem;
  color: var(--primary);
}

.benefit-card h4 {
  font-size: .95rem;
  margin-bottom: 6px;
}

.benefit-card p {
  font-size: .85rem;
  color: var(--color-text-light);
}

/* ── BLOG ───────────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--s4);
}

.blog-card {
  background: var(--color-white);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1.5px solid var(--color-border);
  transition: var(--transition);
}

[data-theme="dark"] .blog-card {
  background: var(--bgDark2);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .1);
  border-color: var(--primary);
}

.blog-card__img-wrap {
  display: block;
  height: 200px;
  overflow: hidden;
}

.blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.blog-card:hover .blog-card__img {
  transform: scale(1.06);
}

.blog-card__cat {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: var(--black);
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--r-full);
}

.blog-card__img-wrap {
  position: relative;
}

.blog-card__body {
  padding: var(--s3);
}

.blog-card__meta {
  display: flex;
  gap: var(--s2);
  font-size: .75rem;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.blog-card__meta i {
  color: var(--primary);
}

.blog-card__title {
  margin: 0 0 8px;
}

.blog-card__title a {
  color: var(--color-text);
  font-size: 1rem;
}

.blog-card__title a:hover {
  color: var(--primary);
}

.blog-card__excerpt {
  font-size: .85rem;
  color: var(--color-text-light);
  margin-bottom: var(--s2);
  line-height: 1.6;
}

.blog-card__link {
  font-size: .8rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ── CTA ────────────────────────────────────────────────────── */
.cta-modern {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, var(--info, #00b0ff) 100%);
  border-radius: 30px;
  padding: 5rem 2rem;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(var(--primary-rgb), 0.25);
  margin-top: 2rem;
  margin-bottom: 2rem;
}
.cta-modern::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
  animation: rotateGlow 25s linear infinite;
  pointer-events: none;
}
@keyframes rotateGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.cta-modern__content {
  position: relative;
  z-index: 1;
}
.cta-modern__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
}
.cta-modern__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  margin-bottom: 1.25rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.cta-modern__sub {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.cta-modern__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-btn-white {
  background: #fff;
  color: var(--primary);
  border: none;
  font-weight: 800;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cta-btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
  color: var(--primary);
}
.cta-btn-outline-light {
  background: rgba(255,255,255,0.05);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
  font-weight: 800;
  transition: all 0.2s;
}
.cta-btn-outline-light:hover {
  background: rgba(255,255,255,0.2);
  border-color: #fff;
  color: #fff;
  transform: translateY(-3px);
}

/* ── MARQUEE SLIDER ─────────────────────────────────────────── */
.marquee-wrapper {
  overflow: hidden;
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  padding: 1rem 0 2rem;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
.marquee-content {
  display: flex;
  gap: 1.5rem;
  white-space: nowrap;
  animation: scrollMarquee 70s linear infinite;
}
.marquee-content:hover {
  animation-play-state: paused;
}
@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 0.75rem)); }
}
.benefit-card-marquee {
  background: var(--bgLight);
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  width: 320px;
  white-space: normal;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
[data-theme="dark"] .benefit-card-marquee {
  background: var(--bgDark2);
}
.benefit-card-marquee:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  border-color: var(--primary);
}
.benefit-card-marquee i {
  color: var(--primary);
  font-size: 1.5rem;
  background: rgba(var(--primary-rgb), 0.1);
  padding: 0.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.benefit-card-marquee h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
}
.benefit-card-marquee p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.45;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  background: var(--black);
  border-top: 1px solid rgba(var(--primary-rgb), .12);
  padding: var(--s6) 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s4);
  padding-bottom: var(--s4);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.footer__logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
  display: block;
  margin-bottom: var(--s2);
}

.footer__tagline {
  color: rgba(255, 255, 255, .4);
  font-size: .875rem;
  margin-bottom: var(--s3);
}

.footer__title {
  font-size: .7rem;
  font-family: var(--font-mono);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--s2);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__list a {
  font-size: .875rem;
  color: rgba(255, 255, 255, .45);
}

.footer__list a:hover {
  color: var(--primary);
}

.footer__newsletter .btn {
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 11px var(--s3);
}

.footer__newsletter input {
  border-radius: var(--r-sm) 0 0 var(--r-sm);
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .1);
  color: #fff;
}

.footer__newsletter-row {
  display: flex;
}

.footer__social {
  display: flex;
  gap: 8px;
  margin-top: var(--s2);
}

.footer__social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  transition: var(--transition);
}

.footer__social a:hover {
  background: var(--primary);
  color: var(--black);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s2) 0;
  flex-wrap: wrap;
  gap: 8px;
}

.footer__bottom p {
  font-size: .8rem;
  color: rgba(255, 255, 255, .2);
}

@media(max-width:900px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width:600px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ── AUTH PAGES ─────────────────────────────────────────────── */
.auth-page {
  min-height: calc(100vh - var(--navbar-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s4) var(--s3);
  background: var(--bgLight);
}

[data-theme="dark"] .auth-page {
  background: var(--bgDark);
}

.auth-card {
  background: var(--color-white);
  border-radius: var(--r-xl);
  padding: var(--s4) var(--s5);
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .12);
}

[data-theme="dark"] .auth-card {
  background: var(--bgDark2);
  border: 1.5px solid #2e3150;
}

.auth-card__title {
  font-size: 1.75rem;
  margin-bottom: 4px;
}

.auth-card__sub {
  color: var(--color-text-light);
  font-size: .9rem;
  margin-bottom: var(--s4);
}

.auth-card__footer {
  text-align: center;
  margin-top: var(--s3);
  font-size: .875rem;
  color: var(--color-text-light);
}

@media(max-width:500px) {
  .auth-card {
    padding: var(--s4) var(--s3);
  }
}

/* ── CLIENT PANEL ───────────────────────────────────────────── */
.panel-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.panel-sidebar {
  background: var(--black);
  border-right: 1px solid rgba(var(--primary-rgb), .1);
  padding: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  scrollbar-width: none;
}

.panel-sidebar::-webkit-scrollbar {
  display: none;
}

.panel-sidebar__name {
  font-family: var(--font-heading);
  color: var(--primary);
  font-size: 1rem;
  font-weight: 700;
}

.panel-sidebar__email {
  color: rgba(255, 255, 255, .35);
  font-size: .75rem;
}

.panel-nav__item {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: 10px var(--s4);
  color: rgba(255, 255, 255, .45);
  font-size: .875rem;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.panel-nav__item:hover,
.panel-nav__item.active {
  color: var(--primary);
  background: rgba(var(--primary-rgb), .06);
  border-left-color: var(--primary);
}

.panel-nav__item i {
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.panel-nav__section {
  padding: var(--s2) var(--s3) 4px;
  font-size: .65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .2);
  font-family: var(--font-mono);
}

.panel-content {
  padding: var(--s4);
  background: var(--bgLight);
}

[data-theme="dark"] .panel-content {
  background: var(--bgDark);
}

.panel-header__title {
  font-size: 1.6rem;
  color: var(--color-text);
}

.panel-header__sub {
  color: var(--color-text-light);
  font-size: .9rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: var(--s3);
  margin-bottom: var(--s4);
}

.stat-card {
  background: var(--color-white);
  border-radius: var(--r-lg);
  padding: var(--s3);
  border: 1.5px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .stat-card {
  background: var(--bgDark2);
  border-color: #2e3150;
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), .1);
}

.stat-card__label {
  font-size: .72rem;
  font-family: var(--font-mono);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat-card__label i {
  color: var(--primary);
}

.stat-card__value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.stat-card__desc {
  font-size: .75rem;
  color: var(--color-text-light);
  margin-top: 4px;
}

/* ✅ Tablets: mantener 2 columnas, solo hacer sidebar más angosta */
@media(max-width:900px) and (min-width:769px) {
  .panel-layout {
    grid-template-columns: 200px 1fr;
  }
}

/* ── ADMIN PANEL (NutFlix style) ────────────────────────────── */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--bgDark2);
  border-right: 1px solid #2e3150;
  padding: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.admin-sidebar__brand {
  padding: var(--s3) var(--s3) var(--s3);
  border-bottom: 1px solid rgba(var(--primary-rgb), .1);
}

.admin-sidebar__logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 900;
}

.admin-sidebar__role {
  font-size: .65rem;
  color: rgba(255, 255, 255, .3);
  font-family: var(--font-mono);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.admin-nav__item {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: 10px var(--s3);
  color: rgba(255, 255, 255, .4);
  font-size: .82rem;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.admin-nav__item:hover,
.admin-nav__item.active {
  color: var(--primary);
  background: rgba(var(--primary-rgb), .05);
  border-left-color: var(--primary);
}

.admin-nav__item i {
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  font-size: .9rem;
}

.admin-nav__section {
  padding: var(--s2) var(--s3) 4px;
  font-size: .6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .2);
}

.admin-content {
  padding: var(--s4);
  background: var(--bgLight);
  min-height: 100vh;
}

[data-theme="dark"] .admin-content {
  background: var(--bgDark);
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s4);
}

.admin-header__title {
  font-size: 1.5rem;
  color: var(--color-text);
}

.admin-card {
  background: var(--color-white);
  border-radius: var(--r-lg);
  padding: var(--s3);
  border: 1.5px solid var(--color-border);
  margin-bottom: var(--s3);
}

[data-theme="dark"] .admin-card {
  background: var(--bgDark2);
  border-color: #2e3150;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}

.admin-table th {
  padding: var(--s2) var(--s3);
  background: var(--bgLight);
  font-weight: 600;
  text-align: left;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 2px solid var(--color-border);
  color: var(--color-text);
}

[data-theme="dark"] .admin-table th {
  background: rgba(255, 255, 255, .04);
}

.admin-table td {
  padding: var(--s2) var(--s3);
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
  color: var(--color-text);
}

.admin-table tr:hover td {
  background: rgba(var(--primary-rgb), .02);
}

/* NutFlix-style admin stat cards */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--s3);
  margin-bottom: var(--s4);
}

.admin-stat-card {
  background: var(--color-white);
  border-radius: var(--r-lg);
  padding: var(--s3);
  border: 1.5px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: var(--s3);
  transition: var(--transition);
}

[data-theme="dark"] .admin-stat-card {
  background: var(--bgDark2);
  border-color: #2e3150;
}

.admin-stat-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.admin-stat-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.admin-stat-card__icon--green {
  background: rgba(46, 204, 113, .15);
  color: #2ecc71;
}

.admin-stat-card__icon--blue {
  background: rgba(52, 152, 219, .15);
  color: #3498db;
}

.admin-stat-card__icon--gold {
  background: rgba(255, 193, 0, .15);
  color: var(--gold);
}

.admin-stat-card__icon--purple {
  background: rgba(155, 89, 182, .15);
  color: #9b59b6;
}

.admin-stat-card__icon--primary {
  background: rgba(var(--primary-rgb), .15);
  color: var(--primary);
}

.admin-stat-card__icon--red {
  background: rgba(231, 76, 60, .15);
  color: var(--danger);
}

.admin-stat-card__value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--color-text);
  line-height: 1;
}

.admin-stat-card__label {
  font-size: .75rem;
  color: var(--color-text-light);
  margin-top: 2px;
}

/* ── PROFILE COMPLETENESS ───────────────────────────────────── */
.profile-pct {
  background: var(--color-white);
  border-radius: var(--r-lg);
  padding: var(--s3);
  margin-bottom: var(--s3);
  border: 1.5px solid var(--color-border);
}

[data-theme="dark"] .profile-pct {
  background: var(--bgDark2);
  border-color: #2e3150;
}

.profile-pct__label {
  display: flex;
  justify-content: space-between;
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.profile-pct__bar {
  height: 8px;
  background: var(--color-border);
  border-radius: var(--r-full);
  overflow: hidden;
}

.profile-pct__fill {
  height: 100%;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: var(--r-full);
  transition: width .6s ease;
}

/* ── ONBOARDING ─────────────────────────────────────────────── */
.onboarding__step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-border);
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .875rem;
  font-weight: 700;
  margin: 0 auto 4px;
  transition: var(--transition);
}

.onboarding__step.done .onboarding__step-num {
  background: var(--primary);
  color: var(--black);
}

.onboarding__step.active .onboarding__step-num {
  background: var(--black);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.onboarding__connector {
  flex: 1;
  height: 2px;
  background: var(--color-border);
  align-self: center;
  margin: 0 -1px;
}

/* ── ALERTS ─────────────────────────────────────────────────── */
.alert {
  padding: var(--s2) var(--s3);
  border-radius: var(--r-md);
  margin-bottom: var(--s3);
  font-size: .875rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.alert--warning {
  background: #FEF3C7;
  border-left: 3px solid #F59E0B;
  color: #92400E;
}

.alert--info {
  background: #EFF6FF;
  border-left: 3px solid #3B82F6;
  color: #1E40AF;
}

.alert--success {
  background: #ECFDF5;
  border-left: 3px solid #10B981;
  color: #065F46;
}

.alert--error {
  background: #FEF2F2;
  border-left: 3px solid #EF4444;
  color: #991B1B;
}

[data-theme="dark"] .alert--info {
  background: rgba(59, 130, 246, .12);
  color: #93c5fd;
}

[data-theme="dark"] .alert--success {
  background: rgba(16, 185, 129, .12);
  color: #6ee7b7;
}

[data-theme="dark"] .alert--warning {
  background: rgba(245, 158, 11, .12);
  color: #fcd34d;
}

[data-theme="dark"] .alert--error {
  background: rgba(239, 68, 68, .12);
  color: #fca5a5;
}

/* ── UTILITIES ──────────────────────────────────────────────── */
.text-primary {
  color: var(--primary);
}

.text-muted {
  color: var(--color-text-light);
}

.text-center {
  text-align: center;
}

.hidden {
  display: none;
}

.w-full {
  width: 100%;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gap-1 {
  gap: var(--s2);
}

.mt-1 {
  margin-top: var(--s2);
}

.mb-1 {
  margin-bottom: var(--s2);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media(max-width:768px) {
  .hero {
    min-height: 75vh;
  }

  .biz-layout {
    grid-template-columns: 1fr;
  }

  .biz-sidebar {
    order: -1;
  }

  /* ✅ Panel cliente mobile: columna izquierda de iconos */
  .panel-layout {
    grid-template-columns: 52px 1fr;
  }

  .panel-sidebar {
    height: 100vh;
    position: sticky;
    top: 0;
  }

  .panel-nav__text {
    display: none !important;
  }

  .panel-nav__section {
    display: none !important;
  }

  .panel-nav__item {
    justify-content: center;
    padding: 12px 0 !important;
    margin: 0 4px 2px !important;
    border-left: none !important;
    border-radius: 8px;
    gap: 0;
  }

  .panel-nav__item i {
    width: auto;
    font-size: 1.15rem;
  }

  .panel-nav__item:hover,
  .panel-nav__item.active {
    border-left: none !important;
    border-bottom: 2px solid var(--primary);
  }

  .panel-sidebar-user,
  .panel-sidebar__name,
  .panel-sidebar__email {
    display: none !important;
  }

  .panel-sidebar__brand {
    padding: 8px 4px !important;
    justify-content: center !important;
  }

  /* ✅ Admin mobile: columna izquierda de iconos */
  .admin-layout {
    grid-template-columns: 52px 1fr;
  }

  .admin-sidebar {
    height: 100vh;
    position: sticky;
    top: 0;
  }

  .admin-nav__item {
    justify-content: center;
    padding: 12px 0 !important;
    margin: 0 4px 2px !important;
    border-left: none !important;
    border-radius: 8px;
    gap: 0;
  }

  .admin-nav__item span,
  .admin-nav__item .nav-badge {
    display: none !important;
  }

  .admin-nav__item i {
    width: auto;
    font-size: 1.15rem;
  }

  .admin-nav__section {
    display: none !important;
  }

  .admin-sidebar__logo,
  .admin-sidebar__role {
    display: none !important;
  }

  .admin-sidebar__brand {
    padding: 8px 4px !important;
    justify-content: center !important;
  }

  .admin-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .listing-layout {
    grid-template-columns: 1fr;
  }
}

@media(max-width:480px) {
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }

  .search-wrap {
    border-radius: var(--r-lg);
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ════════════════════════════════════════════════════════
   CSS ADICIONAL v10 — Agregar al FINAL de assets/css/app.css
   ════════════════════════════════════════════════════════ */

/* ── OVERFLOW FIX GLOBAL ─────────────────────────────── */
html {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
}

* {
  box-sizing: border-box;
}

/* ── HERO: sin espacio en blanco cuando hay mensajes ──── */
.hero {
  /* El body tiene padding-top para el navbar, el hero NO necesita padding extra */
  margin-top: 0;
}

/* Cuando el flash aparece, asegurarse que no tape el hero content */
.flash {
  top: calc(var(--navbar-h) + 16px) !important;
}

/* ── NAVBAR DROPDOWN — arreglar gap que cierra el menú ── */
.navbar__dropdown-menu {
  top: 100% !important;
  margin-top: -2px;
  /* eliminar gap */
}

/* Área invisible para no perder hover entre link y menú */
.navbar__dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 8px;
  /* cubre el gap */
}

.navbar__dropdown:hover .navbar__dropdown-menu {
  display: block;
}

/* ── PANEL CLIENT — mensajes de flash integrados ─────── */
.panel-content>.alert:first-child {
  margin-bottom: 1.5rem;
}

/* ── BADGE VERIFICADO junto al nombre ────────────────── */
.biz-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--r-full);
  vertical-align: middle;
  margin-left: 8px;
  box-shadow: 0 2px 8px rgba(46, 204, 113, .35);
}

.biz-verified-badge i {
  font-size: 0.65rem;
}

/* Badge en card */
.biz-card__name .biz-verified-badge {
  font-size: 0.65rem;
  padding: 2px 7px;
}

/* Badge Super Pro — dorado */
.biz-superpro-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--black);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--r-full);
  vertical-align: middle;
  margin-left: 8px;
  box-shadow: 0 2px 8px rgba(var(--primary-rgb), .35);
}

/* ── ADMIN FOOTER ────────────────────────────────────── */
.admin-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  font-size: 0.78rem;
  color: var(--color-text-light);
  border-top: 1px solid var(--color-border);
  background: var(--color-white);
  margin-top: 2rem;
}

[data-theme="dark"] .admin-footer {
  background: var(--bgDark2);
  border-color: #232b3e;
}

.admin-footer a {
  color: var(--primary);
}

/* ── PLAN CARD — mejor overflow ─────────────────────── */
.plans-cards {
  overflow: visible;
}

.plan-card {
  overflow: visible;
  /* para el badge que sale por arriba */
}

/* ── SUBSCRIPTION PAGE ───────────────────────────────── */
.gateway-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: 10px;
  transition: 0.2s;
  flex: 1;
  min-width: 140px;
  background: var(--color-white);
}

.gateway-label.active {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), .04);
}

.gateway-label:hover {
  border-color: var(--primary);
}

/* ── SHARE MODAL ─────────────────────────────────────── */
#share-modal {
  display: none;
}

#share-modal.open {
  display: flex;
}

.share-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0.875rem 0.5rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--color-text);
  transition: 0.2s;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1.5px solid var(--color-border);
  background: var(--color-white);
}

.share-btn i {
  font-size: 1.4rem;
}

.share-btn:hover {
  border-color: var(--c, var(--primary));
  background: rgba(0, 0, 0, .04);
  transform: translateY(-2px);
}

/* ── TABLES — evitar overflow horizontal ─────────────── */
.admin-card {
  overflow-x: auto;
}

.admin-table {
  min-width: 400px;
}

/* ── MOBILE — fix overflow ──────────────────────────── */
@media (max-width: 768px) {
  .hero {
    overflow: hidden;
  }

  .hero__content {
    padding-left: var(--s2);
    padding-right: var(--s2);
  }

  .search-wrap {
    margin: 0 calc(-1 * var(--s2));
    border-radius: 0;
  }

  .biz-layout {
    grid-template-columns: 1fr !important;
  }

  /* ✅ NO override panel/admin — they use icons-only sidebar */
  .plans-cards {
    grid-template-columns: 1fr !important;
  }

  .plan-card--featured {
    transform: none !important;
  }

  .admin-stats-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .footer__grid {
    grid-template-columns: 1fr !important;
  }

  .page-banner {
    padding: 40px 0 30px;
  }

  .page-banner__img {
    display: none;
  }
}

/* ── DARK MODE — tabla corregida ─────────────────────── */
[data-theme="dark"] .admin-table td {
  border-color: #232b3e;
}

[data-theme="dark"] .gateway-label {
  background: var(--bgDark2);
  border-color: #232b3e;
}

[data-theme="dark"] .plan-card {
  background: #1a1f2e;
}