/* Twenty Four — visual refresh. Capa visual sin cambios funcionales. */

:root {
  --tf-ink: #071116;
  --tf-aqua: #00d4cc;
  --tf-aqua-bright: #56f8e9;
  --tf-card-border: rgba(14, 49, 55, 0.1);
  --tf-soft: rgba(0, 212, 204, 0.055);
  --tf-shadow-sm: 0 8px 24px rgba(3, 18, 22, 0.08);
  --tf-shadow-md: 0 18px 50px rgba(3, 18, 22, 0.13);
  --r: 18px;
  --r-sm: 12px;
  --r-lg: 26px;
}

[data-theme="dark"] {
  --tf-card-border: rgba(255, 255, 255, 0.09);
  --tf-soft: rgba(0, 212, 204, 0.07);
  --tf-shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.26);
  --tf-shadow-md: 0 18px 50px rgba(0, 0, 0, 0.4);
}

html {
  scroll-behavior: smooth;
  scrollbar-color: rgba(0, 212, 204, 0.55) transparent;
}

body,
button,
input,
select,
textarea {
  font-family: "Manrope", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  letter-spacing: -0.01em;
  background: radial-gradient(circle at 8% 18%, rgba(0, 212, 204, 0.045), transparent 25rem), var(--bg);
}

::selection {
  color: #001312;
  background: rgba(86, 248, 233, 0.8);
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(0, 212, 204, 0.3);
  outline-offset: 3px;
}

/* Header glass */
.navbar {
  background: color-mix(in srgb, var(--bg-elevated) 86%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
  box-shadow: 0 8px 32px rgba(5, 22, 27, 0.06);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.navbar-inner {
  height: 76px;
  max-width: 1320px;
  gap: 1.25rem;
}

@media (min-width: 821px) {
  .navbar-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
  }

  .navbar-logo {
    justify-self: start;
  }

  .navbar-center {
    width: max-content;
    justify-self: center;
  }

  .navbar-actions {
    min-width: 0;
    justify-self: end;
  }
}

.navbar-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.14rem;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.navbar-links {
  position: relative;
  gap: 1.2rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

[data-theme="dark"] .navbar-links {
  box-shadow: none;
}

.navbar-links::before {
  display: none;
}

.navbar-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.55rem 0.12rem;
  border-radius: 0;
  font-size: 0.82rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

.navbar-link::before {
  display: none;
}

.navbar-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.18rem;
  width: 0;
  height: 2px;
  border-radius: 1px;
  background: var(--primary);
  transform: translateX(-50%);
  transition: width 0.2s ease;
}

.navbar-link:hover {
  color: var(--primary-dark);
  background: transparent;
  box-shadow: none;
  transform: none;
}

[data-theme="dark"] .navbar-link:hover {
  color: var(--tf-aqua-bright);
  background: transparent;
}

.navbar-link.active {
  color: var(--primary-dark);
  background: transparent;
  box-shadow: none;
}

.navbar-link:hover::after {
  width: 60%;
}

.navbar-link.active::after {
  width: 100%;
}

.navbar-links > * .navbar-link.active,
.navbar-links > * .navbar-link.active:hover {
  color: var(--primary-dark);
  background: transparent;
  box-shadow: none;
}

.navbar-actions {
  gap: 0.55rem;
}

.navbar-theme-btn,
.navbar-lang-btn,
.navbar-currency-btn {
  min-height: 40px;
  border-color: color-mix(in srgb, var(--border-mid) 72%, transparent);
  background: color-mix(in srgb, var(--bg-card) 72%, transparent);
}

.navbar-theme-btn:hover,
.navbar-lang-btn:hover,
.navbar-currency-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--tf-shadow-sm);
}

.navbar-login-btn {
  min-height: 42px;
  padding-inline: 1.1rem;
  border: 1px solid color-mix(in srgb, var(--primary) 58%, var(--border-mid));
  border-radius: 10px;
  color: var(--primary-dark);
  background: color-mix(in srgb, var(--bg-card) 92%, var(--primary) 8%);
  box-shadow: none;
  font-weight: 700;
}

.navbar-login-btn:hover {
  color: var(--primary-dark);
  background: color-mix(in srgb, var(--bg-card) 85%, var(--primary) 15%);
  transform: none;
  box-shadow: none;
}

[data-theme="dark"] .navbar-login-btn,
[data-theme="dark"] .navbar-login-btn:hover {
  color: var(--tf-aqua-bright);
  background: rgba(0, 212, 204, 0.06);
}

/* Hero premium */
.hero {
  isolation: isolate;
  padding: 4.6rem 1.25rem 4.25rem;
  color: #f5fffe;
  background:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    radial-gradient(circle at 15% 25%, rgba(0, 212, 204, 0.22), transparent 30rem),
    radial-gradient(circle at 84% 78%, rgba(58, 103, 255, 0.15), transparent 27rem),
    linear-gradient(145deg, #061216 0%, #0a1d23 52%, #071116 100%);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
  border-bottom: 1px solid rgba(0, 212, 204, 0.2);
}

.hero::before,
.hero::after {
  opacity: 0.72;
  filter: blur(100px);
}

.hero-content {
  max-width: 900px;
  margin-inline: auto;
}

.hero-badge {
  margin-bottom: 1.35rem;
  padding: 0.55rem 1rem;
  color: #7bfff2;
  border-color: rgba(86, 248, 233, 0.28);
  background: rgba(0, 212, 204, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.hero-badge-dot {
  box-shadow: 0 0 0 5px rgba(0, 212, 204, 0.1);
}

.hero-title {
  max-width: 850px;
  margin: 0 auto 1.15rem;
  color: #f7fffe;
  font-size: clamp(2.55rem, 5.4vw, 4.85rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.hero-title .hl,
.hero-title .rotating-word {
  background: linear-gradient(110deg, #eafffd 4%, var(--tf-aqua-bright) 48%, var(--tf-aqua) 90%);
  background-size: 180% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  max-width: 650px;
  margin-bottom: 1.8rem;
  color: #b8c9ca;
  font-size: 1.04rem;
  line-height: 1.72;
  text-wrap: balance;
}

.search-wrap {
  max-width: 610px;
}

.search-input {
  height: 58px;
  padding-inline: 1.35rem 4.2rem;
  color: #ecfffd;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.085);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 50px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.search-input::placeholder {
  color: #91a9aa;
}

.search-input:focus {
  border-color: rgba(86, 248, 233, 0.7);
  background: rgba(255, 255, 255, 0.11);
  box-shadow: 0 0 0 4px rgba(0, 212, 204, 0.12), 0 18px 50px rgba(0, 0, 0, 0.2);
}

.search-btn {
  right: 7px;
  width: 44px;
  height: 44px;
  background: linear-gradient(145deg, var(--tf-aqua-bright), var(--tf-aqua));
  box-shadow: 0 8px 20px rgba(0, 212, 204, 0.3);
}

.search-btn:hover {
  transform: translateY(-50%) scale(1.05);
}

.search-suggestions {
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.search-pill {
  padding: 0.35rem 0.85rem;
  color: #b8c9ca;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.065);
  backdrop-filter: blur(10px);
}

.search-pill:hover {
  color: #f5fffe;
  border-color: rgba(86, 248, 233, 0.45);
  background: rgba(0, 212, 204, 0.12);
  transform: translateY(-1px);
}

.floating-icon {
  opacity: 0.22;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px);
}

/* Filtros flotantes */
#productos-section + .container {
  position: relative;
  z-index: 3;
  padding-top: 1.6rem;
}

#productos-section + .container > .filters {
  width: fit-content;
  max-width: calc(100% - 1rem);
  margin: -3.1rem auto 2.25rem;
  padding: 0.65rem;
  gap: 0.35rem;
  border: 1px solid var(--tf-card-border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-card) 94%, transparent);
  box-shadow: var(--tf-shadow-md);
  backdrop-filter: blur(20px) saturate(150%);
}

.filter-btn {
  min-height: 38px;
  padding: 0.55rem 1rem;
  border-color: transparent;
  font-size: 0.78rem;
  font-weight: 650;
}

.filter-btn:hover {
  color: var(--text);
  border-color: transparent;
  background: var(--bg-input);
}

.filter-btn.active {
  color: #001817;
  border-color: transparent;
  background: linear-gradient(135deg, var(--tf-aqua-bright), var(--tf-aqua));
  box-shadow: 0 7px 18px rgba(0, 212, 204, 0.22);
}

/* Tarjetas de producto */
.products-grid {
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.25rem;
}

.product-card {
  min-height: 410px;
  border: 1px solid var(--tf-card-border);
  border-radius: 24px;
  background: linear-gradient(180deg, var(--tf-soft) 0, transparent 46%), var(--bg-card);
  box-shadow: var(--tf-shadow-sm);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.34s ease, box-shadow 0.34s ease;
}

[data-theme="light"] .product-card {
  box-shadow: var(--tf-shadow-sm);
}

.product-card:hover,
[data-theme="light"] .product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 212, 204, 0.42);
  box-shadow: var(--tf-shadow-md), 0 0 0 1px rgba(0, 212, 204, 0.08);
}

.card-accent-bar {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--tf-aqua) 25%, var(--tf-aqua-bright) 72%, transparent);
}

.card-title-bar {
  height: auto;
  min-height: 78px;
  padding: 1.1rem 1.15rem 0.55rem;
  gap: 0.5rem;
}

.card-title-text {
  min-height: 0;
  font-size: 0.93rem;
  font-weight: 750;
  line-height: 1.28;
  letter-spacing: -0.025em;
  text-transform: none;
  text-wrap: balance;
}

.card-badge,
.badge {
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.63rem;
  font-weight: 750;
  letter-spacing: 0.025em;
}

.card-badge.badge-popular {
  color: #b86a00;
  border-color: rgba(245, 166, 35, 0.2);
  background: rgba(245, 166, 35, 0.1);
}

.card-badge.badge-offer {
  color: #e5472b;
  border-color: rgba(255, 85, 51, 0.2);
  background: rgba(255, 85, 51, 0.09);
}

[data-theme="dark"] .card-badge.badge-popular {
  color: #ffbd4f;
}

[data-theme="dark"] .card-badge.badge-offer {
  color: #ff8169;
}

.out-of-stock-badge {
  top: 12px;
  right: 12px;
  padding: 0.35rem 0.7rem;
  border: 2px solid var(--bg-card);
  box-shadow: 0 7px 18px rgba(255, 68, 68, 0.24);
}

.product-info {
  padding: 0 1.15rem 1.15rem;
}

.product-desc {
  min-height: 3.35em;
  margin-bottom: 0.9rem;
  color: var(--text-2);
  font-size: 0.77rem;
  line-height: 1.5;
  -webkit-line-clamp: 3;
  text-wrap: pretty;
}

.product-price-row {
  margin-bottom: 0.45rem;
}

.product-price {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.product-rating {
  margin-bottom: 0.9rem;
  opacity: 0.9;
}

.product-rating svg {
  width: 15px;
  height: 15px;
}

.product-buy-btn,
.btn-primary {
  border: 1px solid rgba(0, 212, 204, 0.35);
  border-radius: 14px;
  color: #001817;
  background: linear-gradient(135deg, var(--tf-aqua-bright), var(--tf-aqua));
  box-shadow: 0 9px 22px rgba(0, 212, 204, 0.16);
  font-weight: 800;
}

.product-buy-btn {
  min-height: 46px;
  padding: 0.72rem 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.025em;
}

.product-buy-btn:hover,
.btn-primary:hover {
  background: linear-gradient(135deg, #80fff4, var(--tf-aqua-bright));
  box-shadow: 0 13px 28px rgba(0, 212, 204, 0.26);
  transform: translateY(-2px);
}

/* Secciones secundarias */
.bestsellers-section {
  margin-top: 4rem;
  padding: 4.5rem 0;
  border-block: 1px solid var(--tf-card-border);
  background: radial-gradient(circle at 50% 0%, rgba(0, 212, 204, 0.08), transparent 31rem), color-mix(in srgb, var(--bg-elevated) 74%, transparent);
}

.bestsellers-header {
  margin-bottom: 2.4rem;
}

.bestsellers-header h2,
.testimonials-title,
.section-header h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.bestsellers-grid {
  max-width: 980px;
  gap: 1.35rem;
}

.stats-counter-section {
  padding: 4.5rem 0;
  border-block-color: var(--tf-card-border);
  background: linear-gradient(120deg, rgba(0, 212, 204, 0.05), transparent 40%), var(--bg);
}

.stats-counter-grid {
  gap: 1rem;
}

.stats-counter-card {
  padding: 1.8rem 1rem;
  border: 1px solid var(--tf-card-border);
  border-radius: 20px;
  background: color-mix(in srgb, var(--bg-card) 82%, transparent);
  box-shadow: var(--tf-shadow-sm);
}

.stats-counter-icon {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(0, 212, 204, 0.14);
  border-radius: 17px;
  background: rgba(0, 212, 204, 0.08);
}

.counter-value {
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.06em;
}

.testimonials-section {
  padding: 5.5rem 0;
  border-block-color: var(--tf-card-border);
  background: radial-gradient(circle at 15% 20%, rgba(0, 212, 204, 0.06), transparent 24rem), var(--bg-elevated);
}

.testimonial-card {
  flex-basis: 340px;
  padding: 1.55rem;
  border-color: var(--tf-card-border);
  border-radius: 21px;
  box-shadow: var(--tf-shadow-sm);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 212, 204, 0.34);
  box-shadow: var(--tf-shadow-md);
}

.testimonial-text {
  font-size: 0.88rem;
  line-height: 1.7;
}

.benefits-section {
  padding: 5.5rem 0;
}

.benefits-grid {
  gap: 1.25rem;
}

.benefit-card {
  padding: 2.2rem 1.7rem;
  border-color: var(--tf-card-border);
  border-radius: 23px;
  background: linear-gradient(180deg, rgba(0, 212, 204, 0.05), transparent 56%), var(--bg-card);
  box-shadow: var(--tf-shadow-sm);
}

.benefit-card:hover {
  border-color: rgba(0, 212, 204, 0.34);
  box-shadow: var(--tf-shadow-md);
}

.benefit-icon {
  width: 60px;
  height: 60px;
  border: 1px solid rgba(0, 212, 204, 0.16);
  border-radius: 19px;
}

/* Panel del cliente */
.dashboard-page {
  min-height: calc(100vh - 76px);
  padding: 3.2rem 1.25rem 5rem;
  background:
    radial-gradient(circle at 8% 4%, rgba(0, 212, 204, 0.08), transparent 26rem),
    radial-gradient(circle at 92% 38%, rgba(70, 104, 255, 0.055), transparent 24rem),
    var(--bg);
}

.dashboard-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.tf-account-overview {
  display: grid;
  grid-template-columns: 180px 250px minmax(0, 1fr);
  gap: 1rem;
  margin: -1rem 0 2.8rem;
}

.tf-overview-stat,
.tf-daily-phrase {
  position: relative;
  min-width: 0;
  min-height: 166px;
  overflow: hidden;
  border: 1px solid var(--tf-card-border);
  border-radius: 21px;
  background: var(--bg-card);
  box-shadow: var(--tf-shadow-sm);
}

.tf-overview-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.35rem;
}

.tf-overview-stat::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -55px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(0, 212, 204, 0.08);
  filter: blur(2px);
}

.tf-overview-services {
  color: #f4fffe;
  border-color: rgba(0, 212, 204, 0.22);
  background: linear-gradient(145deg, #0a2328, #071317);
}

.tf-overview-services::after {
  background: rgba(0, 212, 204, 0.18);
}

.tf-overview-eyebrow {
  position: relative;
  z-index: 1;
  margin-bottom: 0.55rem;
  color: var(--text-2);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.tf-overview-services .tf-overview-eyebrow {
  color: #92babb;
}

.tf-overview-value,
.tf-overview-date {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 0.45rem;
  color: var(--text);
  font-weight: 850;
  letter-spacing: -0.055em;
}

.tf-overview-value {
  color: var(--tf-aqua-bright);
  font-size: 2.7rem;
  line-height: 0.95;
}

.tf-overview-date {
  font-size: 1.12rem;
  line-height: 1.2;
  text-transform: capitalize;
}

.tf-overview-caption {
  position: relative;
  z-index: 1;
  color: var(--text-3);
  font-size: 0.7rem;
  line-height: 1.45;
}

.tf-overview-services .tf-overview-caption {
  color: #82a4a6;
}

.tf-daily-phrase {
  display: flex;
  flex-direction: column;
  padding: 1.2rem 1.25rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 212, 204, 0.1), transparent 16rem),
    linear-gradient(135deg, rgba(0, 212, 204, 0.045), transparent 58%),
    var(--bg-card);
}

.tf-daily-phrase::after {
  content: "";
  position: absolute;
  inset: auto 18% 0;
  height: 2px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.62;
}

.tf-phrase-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.tf-phrase-label {
  color: var(--primary-dark);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

[data-theme="dark"] .tf-phrase-label {
  color: var(--tf-aqua-bright);
}

.tf-phrase-hide,
.tf-phrase-show {
  min-height: 30px;
  padding: 0.35rem 0.65rem;
  color: var(--text-3);
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-family: inherit;
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.tf-phrase-hide:hover,
.tf-phrase-show:hover {
  color: var(--primary-dark);
  border-color: rgba(0, 212, 204, 0.18);
  background: rgba(0, 212, 204, 0.07);
}

.tf-phrase-main {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tf-phrase-intro {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.85rem;
}

.tf-phrase-spark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--primary-dark);
  border: 1px solid rgba(0, 212, 204, 0.15);
  border-radius: 14px;
  background: rgba(0, 212, 204, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 1.05rem;
}

[data-theme="dark"] .tf-phrase-spark {
  color: var(--tf-aqua-bright);
}

.tf-phrase-prompt,
.tf-phrase-text {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}

.tf-phrase-prompt {
  font-size: 0.83rem;
  font-weight: 650;
}

.tf-phrase-text {
  font-size: 0.83rem;
  font-weight: 600;
  text-wrap: pretty;
}

.tf-phrase-reveal {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0.58rem 0.9rem;
  color: #001817;
  border: 1px solid rgba(0, 212, 204, 0.3);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--tf-aqua-bright), var(--tf-aqua));
  box-shadow: 0 8px 18px rgba(0, 212, 204, 0.16);
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 850;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.tf-phrase-reveal:hover {
  box-shadow: 0 12px 24px rgba(0, 212, 204, 0.26);
  transform: translateY(-2px);
}

.tf-phrase-hidden-state {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-3);
  font-size: 0.76rem;
}

.tf-phrase-hidden-state[hidden],
.tf-phrase-main[hidden],
.tf-phrase-text[hidden],
.tf-phrase-prompt[hidden],
.tf-phrase-reveal[hidden],
.tf-phrase-hide[hidden] {
  display: none !important;
}

.tf-daily-phrase[data-tf-phrase-state="revealed"] .tf-phrase-spark {
  animation: tfPhraseSpark 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes tfPhraseSpark {
  0% { opacity: 0; transform: rotate(-20deg) scale(0.65); }
  100% { opacity: 1; transform: rotate(0) scale(1); }
}

.dashboard-loading {
  width: fit-content;
  margin: 4rem auto;
  padding: 1rem 1.4rem;
  border: 1px solid var(--tf-card-border);
  border-radius: 999px;
  background: var(--bg-card);
  box-shadow: var(--tf-shadow-sm);
  font-size: 0.85rem;
  font-weight: 650;
}

.dashboard-welcome {
  position: relative;
  isolation: isolate;
  align-items: center;
  margin-bottom: 2.8rem;
  padding: 2rem 2.15rem;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 204, 0.2);
  border-radius: 26px;
  color: #f4fffe;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 10% 20%, rgba(0, 212, 204, 0.2), transparent 25rem),
    linear-gradient(135deg, #061216, #0b2228 58%, #071116);
  background-size: 34px 34px, 34px 34px, auto, auto;
  box-shadow: 0 24px 65px rgba(4, 19, 24, 0.2);
}

.dashboard-welcome::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -110px;
  right: -75px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(0, 212, 204, 0.1);
  filter: blur(45px);
}

.dashboard-greeting {
  margin-bottom: 0.55rem;
  color: #f5fffe;
  font-size: clamp(1.65rem, 3.6vw, 2.35rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.level-badge {
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.065em;
  backdrop-filter: blur(10px);
}

.level-normal {
  color: #70fff1;
  border-color: rgba(86, 248, 233, 0.28);
  background: rgba(0, 212, 204, 0.1);
}

.dashboard-logout {
  min-height: 42px;
  padding: 0.62rem 1rem;
  color: #ffaca0;
  border: 1px solid rgba(255, 105, 85, 0.25);
  border-radius: 13px;
  background: rgba(255, 85, 51, 0.08);
  backdrop-filter: blur(10px);
  font-size: 0.76rem;
  font-weight: 750;
}

.dashboard-logout:hover {
  color: #fff;
  border-color: rgba(255, 85, 51, 0.5);
  background: rgba(255, 85, 51, 0.72);
  transform: translateY(-1px);
}

.dashboard-section {
  margin-bottom: 2.6rem;
}

.dashboard-section-title {
  margin: 0 0 1.25rem;
  padding: 0 0 0 0.85rem;
  border: 0;
  border-left: 3px solid var(--primary);
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.dashboard-section-header {
  margin-bottom: 1.15rem;
  padding: 0;
  border: 0;
}

.dashboard-section-header .dashboard-section-title {
  padding-left: 0.85rem !important;
  border-left: 3px solid var(--primary) !important;
}

.section-terms-btn {
  min-height: 34px;
  padding: 0.4rem 0.8rem;
  color: var(--primary-dark);
  border-color: rgba(0, 212, 204, 0.18);
  background: rgba(0, 212, 204, 0.07);
  font-size: 0.7rem;
  font-weight: 750;
}

[data-theme="dark"] .section-terms-btn {
  color: var(--tf-aqua-bright);
}

.section-terms-btn:hover {
  color: #001817;
  border-color: var(--primary);
  background: var(--tf-aqua-bright);
  transform: translateY(-1px);
}

.dashboard-sales-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.subscription-card {
  position: relative;
  min-width: 0;
  padding: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--tf-card-border);
  border-radius: 21px;
  background: linear-gradient(180deg, var(--tf-soft), transparent 42%), var(--bg-card);
  box-shadow: var(--tf-shadow-sm);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.subscription-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--tf-aqua-bright), var(--tf-aqua), transparent);
}

.subscription-card:hover {
  border-color: rgba(0, 212, 204, 0.34);
  box-shadow: var(--tf-shadow-md);
  transform: translateY(-5px);
}

.subscription-card.subscription-expired {
  opacity: 0.76;
  filter: saturate(0.72);
}

.subscription-card.subscription-expired::before {
  background: linear-gradient(180deg, var(--error), rgba(255, 68, 68, 0.1));
}

.subscription-header {
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.subscription-service {
  min-width: 0;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.subscription-status {
  flex: 0 0 auto;
  padding: 0.3rem 0.62rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.055em;
}

.subscription-status.active {
  color: #008a3a;
  border-color: rgba(0, 200, 81, 0.18);
  background: rgba(0, 200, 81, 0.1);
}

[data-theme="dark"] .subscription-status.active {
  color: #67eb9d;
}

.subscription-details {
  margin-bottom: 0.85rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg-input) 62%, transparent);
}

.subscription-row {
  padding: 0.36rem 0;
  font-size: 0.78rem;
}

.subscription-row + .subscription-row {
  border-top: 1px dashed color-mix(in srgb, var(--border) 72%, transparent);
}

.subscription-label {
  font-weight: 600;
}

.subscription-expiry {
  padding: 0.48rem 0.65rem;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 750;
}

.subscription-renew-btn {
  min-height: 42px;
  margin-top: 0.8rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(0, 200, 81, 0.24);
  border-radius: 13px;
  color: #002d14;
  background: linear-gradient(135deg, #6cf6a7, #18d36a);
  box-shadow: 0 9px 20px rgba(0, 200, 81, 0.15);
  font-size: 0.78rem;
  font-weight: 800;
}

.subscription-renew-btn:hover {
  background: linear-gradient(135deg, #91ffbd, #39e881);
  box-shadow: 0 12px 24px rgba(0, 200, 81, 0.24);
  transform: translateY(-2px);
}

.show-more-btn {
  min-height: 44px;
  margin-top: 1.15rem;
  border-color: var(--tf-card-border);
  border-radius: 14px;
  background: var(--bg-card);
  box-shadow: var(--tf-shadow-sm);
  font-size: 0.78rem;
  font-weight: 750;
}

.dashboard-empty,
.empty-state {
  padding: 3rem 1.5rem;
  border: 1px dashed rgba(0, 212, 204, 0.28);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(0, 212, 204, 0.055), transparent), var(--bg-card);
  box-shadow: var(--tf-shadow-sm);
  line-height: 1.65;
}

.payment-history-card,
.birthday-card,
.referral-card {
  border: 1px solid var(--tf-card-border);
  border-radius: 21px;
  background: linear-gradient(180deg, rgba(0, 212, 204, 0.035), transparent 48%), var(--bg-card);
  box-shadow: var(--tf-shadow-sm);
}

.payment-history-card {
  padding: 1rem 1.25rem 1.15rem;
}

.payment-months {
  gap: 0;
}

.payment-month-item {
  min-height: 48px;
  padding: 0.65rem 0.3rem;
  border-bottom-color: color-mix(in srgb, var(--border) 72%, transparent);
}

.payment-dot {
  font-size: 0.84rem;
}

.payment-month-label {
  font-size: 0.82rem;
  font-weight: 650;
}

.payment-status-text {
  padding: 0.3rem 0.65rem;
  font-size: 0.67rem;
  font-weight: 750;
}

.payment-hint {
  margin-top: 0.9rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: var(--bg-input);
  font-size: 0.73rem;
  line-height: 1.55;
}

.birthday-card {
  position: relative;
  padding: 2.1rem 1.5rem;
  overflow: hidden;
}

.birthday-card::before {
  content: "";
  position: absolute;
  top: -70px;
  left: 50%;
  width: 210px;
  height: 150px;
  border-radius: 50%;
  background: rgba(245, 166, 35, 0.1);
  filter: blur(45px);
  transform: translateX(-50%);
}

.birthday-icon {
  position: relative;
  font-size: 2.25rem;
}

.birthday-days {
  color: var(--primary-dark);
  font-size: 2.75rem;
  letter-spacing: -0.06em;
}

[data-theme="dark"] .birthday-days {
  color: var(--tf-aqua-bright);
}

.birthday-text {
  max-width: 520px;
  margin-inline: auto;
  line-height: 1.6;
}

.birthday-btn {
  min-height: 43px;
  padding: 0.65rem 1.25rem;
  border-radius: 13px;
  font-size: 0.78rem;
  font-weight: 750;
}

.referral-card {
  margin-bottom: 0;
  padding: 1.35rem;
}

.tf-dashboard-section-hidden {
  display: none !important;
}

.tf-referral-overview {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--tf-card-border);
}

.tf-referral-copy-block {
  max-width: 760px;
}

.tf-referral-eyebrow {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--primary-dark);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

[data-theme="dark"] .tf-referral-eyebrow {
  color: var(--tf-aqua-bright);
}

.tf-referral-copy-block h3 {
  margin: 0 0 0.55rem;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.tf-referral-copy-block p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.8rem;
  line-height: 1.65;
}

.tf-referral-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.1rem;
  border-top: 1px solid var(--tf-card-border);
  border-bottom: 1px solid var(--tf-card-border);
}

.tf-referral-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
}

.tf-referral-stat + .tf-referral-stat {
  border-left: 1px solid var(--tf-card-border);
}

.tf-referral-stat strong {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
}

.tf-referral-stat span {
  color: var(--text-2);
  font-size: 0.7rem;
  font-weight: 650;
}

.tf-referral-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.tf-referral-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.58rem 0.95rem;
  border: 1px solid rgba(0, 212, 204, 0.32);
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 750;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.tf-referral-copy {
  color: var(--primary-dark);
  background: transparent;
}

.tf-referral-whatsapp {
  color: #001817;
  background: var(--primary);
}

.tf-referral-action:hover {
  border-color: var(--primary);
  background: rgba(0, 212, 204, 0.12);
  transform: none;
}

.tf-referral-whatsapp:hover {
  color: #001817;
  background: var(--tf-aqua-bright);
}

.referral-label {
  margin-bottom: 0.65rem;
  font-size: 0.76rem;
  font-weight: 650;
}

.referral-code-box {
  gap: 0.75rem;
  min-height: 58px;
  padding: 0.65rem 0.75rem 0.65rem 1rem;
  border-color: rgba(0, 212, 204, 0.18);
  border-radius: 15px;
  background: color-mix(in srgb, var(--bg-input) 74%, transparent);
}

.referral-code {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary-dark);
  font-size: 1.08rem;
  font-weight: 850;
  letter-spacing: 0.13em;
}

[data-theme="dark"] .referral-code {
  color: var(--tf-aqua-bright);
}

.referral-copy-btn {
  min-height: 40px;
  padding: 0.55rem 0.9rem;
  border-radius: 11px;
  color: #001817;
  background: linear-gradient(135deg, var(--tf-aqua-bright), var(--tf-aqua));
  font-size: 0.72rem;
  font-weight: 800;
}

.referral-item {
  min-height: 45px;
  padding: 0.6rem 0.25rem;
  border-bottom-color: color-mix(in srgb, var(--border) 72%, transparent);
}

.referral-total {
  margin-top: 0.2rem;
  padding-top: 0.9rem;
}

.referral-empty {
  padding: 0.85rem;
  border-radius: 12px;
  background: var(--bg-input);
  line-height: 1.6;
}

.dashboard-actions {
  gap: 0.8rem;
  margin-top: 2.8rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--tf-card-border);
}

.dashboard-action-btn {
  min-height: 50px;
  padding: 0.82rem 1.2rem;
  border-radius: 15px;
  font-size: 0.82rem;
  font-weight: 800;
}

.dashboard-shop-btn {
  color: #001817;
  background: linear-gradient(135deg, var(--tf-aqua-bright), var(--tf-aqua));
  box-shadow: 0 10px 24px rgba(0, 212, 204, 0.18);
}

.dashboard-shop-btn:hover {
  background: linear-gradient(135deg, #82fff5, var(--tf-aqua-bright));
  box-shadow: 0 14px 28px rgba(0, 212, 204, 0.26);
  transform: translateY(-2px);
}

.dashboard-support-btn {
  color: #049846;
  border-color: rgba(0, 200, 81, 0.25);
  background: rgba(0, 200, 81, 0.055);
}

[data-theme="dark"] .dashboard-support-btn {
  color: #64e99b;
}

.dashboard-support-btn:hover {
  background: rgba(0, 200, 81, 0.11);
  transform: translateY(-2px);
}

/* Componentes de panel presentes en vistas auxiliares */
.stats-grid {
  gap: 1rem;
}

.stat-card,
.order-card {
  border-color: var(--tf-card-border);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--tf-soft), transparent 48%), var(--bg-card);
  box-shadow: var(--tf-shadow-sm);
}

.stat-card:hover,
.order-card:hover {
  border-color: rgba(0, 212, 204, 0.32);
  box-shadow: var(--tf-shadow-md);
  transform: translateY(-4px) !important;
}

.stat-icon,
.order-logo {
  border: 1px solid var(--tf-card-border);
  border-radius: 13px;
}

.history-table-wrap {
  border: 1px solid var(--tf-card-border);
  border-radius: 18px;
  background: var(--bg-card);
  box-shadow: var(--tf-shadow-sm);
}

.history-table th {
  background: var(--bg-input);
}

/* Modales del panel */
.modal-overlay {
  background: rgba(2, 10, 13, 0.76);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-content {
  padding: 2rem;
  border-color: var(--tf-card-border);
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

.modal-close {
  top: 0.8rem;
  right: 0.8rem;
  width: 36px;
  height: 36px;
  border: 1px solid var(--tf-card-border);
  border-radius: 50%;
  background: var(--bg-input);
  font-size: 1.15rem;
}

/* Acceso de clientes */
.auth-page {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 76px);
  padding: 4.5rem 1.25rem;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    radial-gradient(circle at 16% 24%, rgba(0, 212, 204, 0.22), transparent 28rem),
    radial-gradient(circle at 86% 78%, rgba(74, 102, 255, 0.15), transparent 25rem),
    linear-gradient(145deg, #061216 0%, #0a1d23 52%, #071116 100%);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
}

.auth-page::before,
.auth-page::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 310px;
  height: 310px;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.auth-page::before {
  top: -120px;
  left: -80px;
  background: rgba(0, 212, 204, 0.16);
}

.auth-page::after {
  right: -100px;
  bottom: -140px;
  background: rgba(70, 104, 255, 0.12);
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 470px;
  padding: 2.65rem 2.4rem 2.25rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--border-mid) 68%, rgba(0, 212, 204, 0.3));
  border-radius: 28px;
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0 16% auto;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, transparent, var(--tf-aqua), var(--tf-aqua-bright), transparent);
  box-shadow: 0 3px 20px rgba(0, 212, 204, 0.34);
}

.auth-header {
  margin-bottom: 2rem;
  text-align: left;
}

.auth-header::before {
  content: "Acceso seguro";
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 1rem;
  padding: 0.3rem 0.7rem;
  color: var(--primary-dark);
  border: 1px solid rgba(0, 212, 204, 0.18);
  border-radius: 999px;
  background: rgba(0, 212, 204, 0.08);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

[data-theme="dark"] .auth-header::before {
  color: var(--tf-aqua-bright);
}

.auth-title {
  margin: 0 0 0.55rem;
  color: var(--text);
  font-size: clamp(1.85rem, 4vw, 2.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.055em;
  text-align: left;
}

.auth-subtitle {
  margin: 0;
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: left;
}

.auth-form {
  gap: 0;
}

.auth-field {
  margin-bottom: 1.05rem;
}

.auth-label {
  margin-bottom: 0.5rem;
  color: var(--text-2);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.015em;
}

.auth-input {
  min-height: 56px;
  padding: 0.9rem 1rem;
  border: 1px solid color-mix(in srgb, var(--border-mid) 82%, transparent);
  border-radius: 15px;
  background: color-mix(in srgb, var(--bg-input) 86%, transparent);
  box-shadow: inset 0 1px 2px rgba(3, 18, 22, 0.035);
  font-size: 0.92rem;
  transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.auth-input:hover {
  border-color: color-mix(in srgb, var(--border-light) 80%, var(--primary) 20%);
}

.auth-input:focus {
  border-color: rgba(0, 212, 204, 0.72);
  background: var(--bg-card);
  box-shadow: 0 0 0 4px rgba(0, 212, 204, 0.11), 0 10px 24px rgba(0, 212, 204, 0.06);
}

.auth-input::placeholder {
  color: color-mix(in srgb, var(--text-3) 82%, transparent);
}

.password-field .auth-input {
  padding-right: 3.5rem;
}

.password-toggle {
  right: 0.55rem;
  width: 40px;
  height: 40px;
  padding: 0;
  justify-content: center;
  color: var(--text-3);
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease;
}

.password-toggle:hover {
  color: var(--primary-dark);
  background: rgba(0, 212, 204, 0.08);
}

.auth-btn-primary {
  min-height: 54px;
  margin-top: 0.35rem;
  padding: 0.85rem 1.2rem;
  border: 1px solid rgba(0, 212, 204, 0.34);
  border-radius: 15px;
  color: #001817;
  background: linear-gradient(135deg, var(--tf-aqua-bright), var(--tf-aqua));
  box-shadow: 0 12px 26px rgba(0, 212, 204, 0.2);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.auth-btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #8afff5, var(--tf-aqua-bright));
  box-shadow: 0 17px 32px rgba(0, 212, 204, 0.3);
  transform: translateY(-2px);
}

.auth-btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.auth-link-btn {
  margin-top: 0.45rem;
  padding: 0.75rem 0.5rem;
  color: var(--text-2);
  font-size: 0.78rem;
  font-weight: 650;
}

.auth-link-btn:hover {
  color: var(--primary-dark);
}

.auth-divider {
  margin: 0.8rem 0 1.1rem;
  background: linear-gradient(90deg, transparent, var(--border-mid), transparent);
}

.auth-switch {
  color: var(--text-2);
  font-size: 0.82rem;
}

.auth-link {
  color: var(--primary-dark);
  font-weight: 800;
}

[data-theme="dark"] .auth-link,
[data-theme="dark"] .auth-link-btn:hover,
[data-theme="dark"] .password-toggle:hover {
  color: var(--tf-aqua-bright);
}

.auth-back-link {
  width: fit-content;
  margin: 1.4rem auto 0;
  padding: 0.35rem 0.6rem;
  color: var(--text-3);
  font-size: 0.76rem;
  font-weight: 650;
}

.auth-back-link:hover {
  color: var(--primary-dark);
}

.auth-message {
  margin-bottom: 1.15rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: left;
}

/* Footer */
.footer {
  padding-top: 4.5rem;
  border-top-color: var(--tf-card-border);
  background: radial-gradient(circle at 12% 0%, rgba(0, 212, 204, 0.055), transparent 23rem), var(--bg-elevated);
}

.footer-logo {
  font-size: 1.2rem;
  letter-spacing: -0.045em;
}

.footer-col h4 {
  font-size: 0.74rem;
  letter-spacing: 0.09em;
}

.footer-social-btn {
  width: 44px;
  height: 44px;
  color: var(--primary);
  border: 1px solid rgba(0, 212, 204, 0.18);
  background: rgba(0, 212, 204, 0.1);
}

.footer-social-btn:hover {
  color: #001817;
  background: var(--tf-aqua-bright);
}

.whatsapp-float {
  width: 58px;
  height: 58px;
  border: 4px solid color-mix(in srgb, var(--bg) 90%, transparent);
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.34);
}

/* Responsive */
@media (max-width: 1100px) {
  .navbar-inner { height: 70px; }
  .navbar-links { gap: 0.75rem; padding: 0; }
  .navbar-link { padding-inline: 0.1rem; font-size: 0.76rem; }
  .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-sales-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tf-account-overview { grid-template-columns: 160px 220px minmax(0, 1fr); }
}

@media (max-width: 820px) {
  .container,
  .navbar-inner { padding-inline: 1.15rem; }

  .navbar-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
    line-height: 1;
  }

  .navbar-login-btn svg {
    display: block;
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    margin: 0;
  }

  .navbar-mobile {
    padding: 0.9rem 1.15rem 1.2rem;
    border-bottom-color: var(--tf-card-border);
    box-shadow: var(--tf-shadow-md);
  }

  .navbar-mobile-link {
    padding: 0.7rem 0.35rem;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  }

  .hero { padding: 3.8rem 1rem; }
  .hero-title { font-size: clamp(2.25rem, 8vw, 3.55rem); }

  #productos-section + .container > .filters {
    width: calc(100% - 0.75rem);
    max-width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-top: -2.8rem;
    padding: 0.58rem;
    border-radius: 18px;
    scrollbar-width: none;
  }

  #productos-section + .container > .filters::-webkit-scrollbar { display: none; }
  .filter-btn { flex: 0 0 auto; }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .stats-counter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefits-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .auth-page { min-height: calc(100vh - 70px); padding-block: 3.5rem; }
  .dashboard-page { min-height: calc(100vh - 70px); padding: 2.4rem 1.15rem 4rem; }
  .dashboard-welcome { padding: 1.65rem; }
  .tf-account-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tf-daily-phrase { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .navbar-logo { gap: 0.55rem; font-size: 1rem; }
  .navbar-login-btn { width: 38px; min-width: 38px; height: 38px; min-height: 38px; }
  .hero { padding: 3.1rem 0.9rem 3.5rem; }
  .hero-badge { margin-bottom: 1.1rem; padding: 0.48rem 0.82rem; font-size: 0.7rem; }
  .hero-title { font-size: clamp(2.05rem, 10vw, 2.75rem); line-height: 1.04; }
  .hero-sub { margin-bottom: 1.45rem; font-size: 0.9rem; line-height: 1.62; }
  .search-input { height: 54px; font-size: 0.88rem; }
  .search-btn { width: 40px; height: 40px; }
  .search-pill { font-size: 0.7rem; }
  #productos-section + .container { padding-top: 1.2rem; }
  #productos-section + .container > .filters { width: 100%; margin-bottom: 1.6rem; }
  .filter-btn { min-height: 36px; padding: 0.48rem 0.8rem; font-size: 0.72rem; }

  .products-grid,
  .bestsellers-grid {
    grid-template-columns: 1fr;
    max-width: 430px;
    margin-inline: auto;
    gap: 1rem;
  }

  .product-card { min-height: 0; border-radius: 22px; }
  .card-title-bar { min-height: 70px; padding-top: 1rem; }
  .product-info { padding: 0 1.05rem 1.05rem; }
  .product-desc { min-height: 0; font-size: 0.78rem; -webkit-line-clamp: 2; }
  .product-price { font-size: 1.45rem; }

  .bestsellers-section,
  .stats-counter-section,
  .testimonials-section,
  .benefits-section { padding-block: 3.8rem; }

  .bestsellers-section { margin-top: 3rem; }
  .stats-counter-grid { gap: 0.7rem; }
  .stats-counter-card { padding: 1.35rem 0.65rem; border-radius: 17px; }
  .stats-counter-icon { width: 46px; height: 46px; }
  .counter-label { font-size: 0.72rem; }
  .testimonial-card { flex-basis: 285px; padding: 1.3rem; }
  .benefit-card { padding: 1.8rem 1.35rem; }
  .dashboard-page { padding: 1.35rem 0.85rem 3.5rem; }
  .dashboard-welcome { align-items: flex-start; margin-bottom: 2rem; padding: 1.4rem; border-radius: 21px; }
  .dashboard-greeting { font-size: 1.55rem; }
  .tf-account-overview { grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: -1rem 0 2.2rem; }
  .tf-overview-stat { min-height: 142px; padding: 1rem; border-radius: 18px; }
  .tf-overview-value { font-size: 2.25rem; }
  .tf-overview-date { font-size: 0.94rem; }
  .tf-overview-caption { font-size: 0.63rem; }
  .tf-daily-phrase { grid-column: 1 / -1; min-height: 0; padding: 1rem; border-radius: 18px; }
  .tf-phrase-main { align-items: stretch; flex-direction: column; }
  .tf-phrase-intro { align-items: flex-start; }
  .tf-phrase-reveal { width: 100%; }
  .tf-phrase-text { font-size: 0.79rem; }
  .dashboard-logout { min-height: 38px; padding: 0.52rem 0.75rem; font-size: 0.68rem; }
  .dashboard-section { margin-bottom: 2.2rem; }
  .dashboard-section-title { font-size: 1rem; }
  .dashboard-section-header { align-items: center; gap: 0.75rem; }
  .dashboard-sales-grid { grid-template-columns: 1fr; gap: 0.85rem; }
  .subscription-card { padding: 1.1rem; border-radius: 18px; }
  .payment-history-card,
  .referral-card { padding: 1rem; border-radius: 18px; }
  .tf-referral-stats { grid-template-columns: 1fr; }
  .tf-referral-stat + .tf-referral-stat { border-top: 1px solid var(--tf-card-border); border-left: 0; }
  .tf-referral-actions { flex-direction: column; }
  .tf-referral-action { width: 100%; }
  .birthday-card { padding: 1.75rem 1rem; border-radius: 18px; }
  .referral-code-box { align-items: stretch; flex-direction: column; padding: 0.85rem; }
  .referral-code { text-align: center; }
  .referral-copy-btn { width: 100%; }
  .dashboard-actions { flex-direction: column; margin-top: 2.2rem; }
  .dashboard-action-btn { width: 100%; min-width: 0; }
  .modal-content { padding: 1.5rem 1.15rem; border-radius: 20px; }
  .auth-page { padding: 2.25rem 0.9rem; align-items: flex-start; }
  .auth-card { max-width: 430px; padding: 2rem 1.25rem 1.55rem; border-radius: 23px; }
  .auth-header { margin-bottom: 1.6rem; }
  .auth-header::before { margin-bottom: 0.85rem; }
  .auth-title { font-size: 1.8rem; }
  .auth-subtitle { font-size: 0.83rem; }
  .auth-input { min-height: 53px; }
  .auth-btn-primary { min-height: 52px; }
  .whatsapp-float { right: 15px; bottom: 15px; width: 54px; height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@supports not (background: color-mix(in srgb, white, black)) {
  .navbar,
  #productos-section + .container > .filters { background: var(--bg-elevated); }
}
