/* ══ BOTONES ══════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--duration-base) var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.btn--primary {
  background-color: var(--brand-green);
  color: #fff;
}

.btn--primary:hover {
  background-color: var(--brand-green-dark);
  transform: translateY(-1px);
}

.btn--ghost {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--surface-border);
}

.btn--ghost:hover {
  background-color: var(--surface-hover);
  border-color: var(--text-tertiary);
}

.btn--lg {
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-md);
  border-radius: var(--radius-lg);
  width: 100%;
}

.btn--sm {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  border-radius: var(--radius-sm);
}

@media (min-width: 768px) {
  .btn--lg {
    width: auto;
  }
}

/* ══ CHIPS / BADGES ═══════════════════════════════════════════════ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 500;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.chip--green {
  background-color: rgba(29, 158, 117, 0.15);
  color: var(--brand-green);
  border: 1px solid rgba(29, 158, 117, 0.3);
}

.chip--coral {
  background-color: rgba(216, 90, 48, 0.12);
  color: var(--coral);
  border: 1px solid rgba(216, 90, 48, 0.25);
}

.chip--dark {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--surface-border);
}

/* ══ PRODUCT CARDS ════════════════════════════════════════════════ */
.product-card {
  flex-shrink: 0;
  width: 140px;
  padding: var(--space-4);
  background-color: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
  text-align: center;
}

.product-card:hover {
  background-color: var(--surface-hover);
  transform: translateY(-2px);
}

.product-card--active {
  border-color: var(--brand-green);
  background-color: rgba(29, 158, 117, 0.08);
}

.product-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--surface-elevated);
  border-radius: var(--radius-sm);
  font-size: 20px;
}

.product-card--active .product-card__icon {
  background-color: rgba(29, 158, 117, 0.15);
}

.product-card__name {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.product-card__desc {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-bottom: var(--space-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__price {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--brand-green);
  font-weight: 500;
}

.product-card__eta {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: var(--space-1);
}

/* ══ NAVBAR ═══════════════════════════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(17, 17, 16, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--surface-border);
  transition: background var(--duration-base) var(--ease-out);
}

body.light-mode .navbar {
  background: rgba(255, 255, 255, 0.85);
}

.navbar__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__banner {
  background: linear-gradient(90deg, var(--brand-green), #2a9d8f);
  color: #fff;
  text-align: center;
  padding: .3rem var(--space-4);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .02em;
  animation: bannerPulse 3s ease-in-out infinite;
}

.navbar__banner-text {
  opacity: .95;
}

@keyframes bannerPulse {
  0%, 100% { opacity: .85; }
  50% { opacity: 1; }
}

.navbar__logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.navbar__logo-icon {
  width: 28px;
  height: 28px;
  background-color: var(--brand-green);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar__logo-icon svg {
  stroke: #fff;
}

.navbar__logo-accent {
  color: var(--brand-green);
}

.navbar__links {
  display: none;
  gap: var(--space-6);
}

.navbar__links a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--duration-fast);
}

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

.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.navbar__user-name-mobile {
  display: none;
}

.navbar__logout-form {
  display: none;
}

@media (max-width: 600px) {
  .navbar__user-name-full {
    display: none;
  }
  .navbar__user-name-mobile {
    display: inline;
  }
  .navbar__logout-form {
    display: none;
  }
}

@media (min-width: 768px) {
  .navbar__links {
    display: flex;
  }
  .navbar__logout-form {
    display: inline;
  }
}

/* ══ FOOTER ═══════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--surface-border);
  padding: var(--space-5) 0 var(--space-4);
}

.footer__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.footer__col-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.footer__col a {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding: var(--space-1) 0;
  transition: color var(--duration-fast);
}

.footer__col a:hover {
  color: var(--brand-green);
}

.footer__bottom {
  border-top: 1px solid var(--surface-border);
  padding-top: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: center;
}

.footer__hidden-link,
.footer__hidden-link:hover,
.footer__hidden-link:focus,
.footer__hidden-link:active,
.footer__hidden-link:visited {
  color: var(--text-tertiary) !important;
  text-decoration: none !important;
  cursor: default !important;
  outline: none !important;
  background: transparent !important;
  filter: none !important;
  opacity: 1 !important;
  transition: none !important;
}

.footer__copy {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ══ MOBILE NAV (bottom) ══════════════════════════════════════════ */
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(17, 17, 16, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--surface-border);
  padding: var(--space-2) 0;
}

body.light-mode .mobile-nav {
  background: rgba(255, 255, 255, 0.85);
}

.mobile-nav__inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.mobile-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--space-2);
  font-size: 10px;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color var(--duration-fast);
}

.mobile-nav__item--active {
  color: var(--brand-green);
}

.mobile-nav__icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .mobile-nav {
    display: none;
  }
}

/* ── Liquid Glass Logo Toggle ─────────────────────────────────── */
.logo-toggle {
  display: inline-flex;
  align-items: center;
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 3px;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

body.light-mode .logo-toggle {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(0, 0, 0, 0.04),
    0 2px 8px rgba(0, 0, 0, 0.08);
}

.logo-toggle:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 4px 16px rgba(0, 0, 0, 0.2);
}

body.light-mode .logo-toggle:hover {
  box-shadow:
    inset 0 1px 0 rgba(0, 0, 0, 0.08),
    0 4px 16px rgba(0, 0, 0, 0.12);
}

.logo-toggle__pill {
  position: absolute;
  top: 3px;
  height: calc(100% - 6px);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  transition: left 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), width 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, border-color 0.3s ease;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  will-change: left, width;
  z-index: 0;
}

body.light-mode .logo-toggle__pill {
  background: rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.06);
}

.logo-toggle__link {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 3px 12px;
  border-radius: 999px;
  transition: color 0.3s ease, opacity 0.3s ease;
  white-space: nowrap;
  user-select: none;
  text-decoration: none;
}

.logo-toggle__link--active {
  color: #fff;
  opacity: 1;
}

body.light-mode .logo-toggle__link--active {
  color: #1F2937;
}

.logo-toggle__link--inactive {
  color: rgba(255, 255, 255, 0.45);
  opacity: 0.45;
}

body.light-mode .logo-toggle__link--inactive {
  color: rgba(0, 0, 0, 0.35);
  opacity: 0.55;
}

.logo-toggle:hover .logo-toggle__link--inactive {
  opacity: 0.7;
  color: rgba(255, 255, 255, 0.7);
}

body.light-mode .logo-toggle:hover .logo-toggle__link--inactive {
  opacity: 0.85;
  color: rgba(0, 0, 0, 0.6);
}

/* Shine effect on the pill */
.logo-toggle::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 100%);
  border-radius: 999px 999px 0 0;
  pointer-events: none;
  transition: background 0.3s ease;
}

body.light-mode .logo-toggle::after {
  background: linear-gradient(180deg, rgba(0,0,0,0.04) 0%, transparent 100%);
}

/* ── Page Transition Overlay (kept but inactive) ────────────── */
.page-transition-overlay {
  display: none;
}
