/* ============================================================
   TCL INCENTIVOS WEB - Sistema de Diseño Global
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --tcl-red: #D32F27;
  --tcl-red-dark: #B71C1C;
  --tcl-red-soft: #FDECEA;
  --green: #2E7D32;
  --green-soft: #E8F5E9;
  --green-bright: #388E3C;
  --orange: #E65100;
  --orange-soft: #FFF3E0;
  --blue: #1565C0;
  --blue-soft: #E3F2FD;
  --black: #0D0D0D;
  --gray-dark: #424242;
  --gray: #9E9E9E;
  --gray-light: #F5F5F5;
  --white: #FFFFFF;
  --sidebar-w: 260px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, .1);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, .14);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: all .2s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: #F7F7F8;
  color: var(--black);
  min-height: 100vh;
}

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

button {
  cursor: pointer;
  font-family: inherit;
}

img {
  max-width: 100%;
}

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

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--white);
  border-right: 1px solid rgba(0, 0, 0, .06);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 200;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.sidebar-header {
  padding: 28px 24px 20px;
  border-bottom: 1px solid var(--gray-light);
}

.sidebar-logo {
  height: 40px;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--gray-light);
}

.sidebar-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gray-light);
}

.sidebar-user-info p {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
}

.sidebar-user-info span {
  font-size: 11px;
  color: var(--gray);
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
}

.sidebar-section-title {
  font-size: 10px;
  font-weight: 800;
  color: var(--gray);
  letter-spacing: 0.8px;
  padding: 12px 24px 6px;
  text-transform: uppercase;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-dark);
  border-radius: 0;
  margin: 0 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.sidebar-link:hover {
  background: var(--gray-light);
  color: var(--black);
}

.sidebar-link.active {
  background: var(--tcl-red-soft);
  color: var(--tcl-red);
  font-weight: 700;
}

.sidebar-link svg,
.sidebar-link i {
  width: 18px;
  flex-shrink: 0;
}

.sidebar-divider {
  height: 1px;
  background: var(--gray-light);
  margin: 12px 24px;
}

.sidebar-whatsapp {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 12px 12px;
  padding: 12px 16px;
  background: #E8F5E9;
  color: #2E7D32;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.sidebar-whatsapp:hover {
  background: #C8E6C9;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  background: var(--white);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  padding: 0 28px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-title {
  font-size: 20px;
  font-weight: 800;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  color: var(--black);
  font-size: 22px;
}

.topbar-icon-btn {
  position: relative;
  background: var(--gray-light);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-dark);
  font-size: 16px;
  transition: var(--transition);
}

.topbar-icon-btn:hover {
  background: var(--tcl-red-soft);
  color: var(--tcl-red);
}

.badge-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--tcl-red);
  border-radius: 50%;
  border: 2px solid var(--white);
}

.badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  background: var(--tcl-red);
  color: white;
  font-size: 10px;
  font-weight: 800;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
  padding: 0 3px;
}

/* ============================================================
   PAGE BODY
   ============================================================ */
.page-body {
  padding: 28px;
  flex: 1;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

.card-sm {
  padding: 16px;
}

.card-xl {
  padding: 32px;
}

/* ============================================================
   SALDO CARD
   ============================================================ */
.balance-card {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.balance-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(211, 47, 39, .25);
}

.balance-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  opacity: .7;
  text-transform: uppercase;
}

.balance-amount {
  font-size: 52px;
  font-weight: 900;
  color: #4CAF50;
  line-height: 1.1;
  margin: 8px 0;
}

.balance-amount span {
  font-size: 20px;
  font-weight: 600;
  color: rgba(255, 255, 255, .6);
  margin-left: 6px;
}

.balance-meta {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.balance-meta-item label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
  opacity: .6;
  text-transform: uppercase;
  display: block;
}

.balance-meta-item p {
  font-size: 18px;
  font-weight: 800;
  margin-top: 2px;
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  border: none;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--tcl-red);
  color: white;
}

.btn-primary:hover {
  background: var(--tcl-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(211, 47, 39, .4);
}

.btn-success {
  background: var(--green);
  color: white;
}

.btn-success:hover {
  background: #1B5E20;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--black);
  border: 2px solid var(--gray-light);
}

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

.btn-ghost {
  background: var(--gray-light);
  color: var(--gray-dark);
}

.btn-ghost:hover {
  background: #e0e0e0;
}

.btn-danger {
  background: #FFEBEE;
  color: var(--tcl-red);
}

.btn-danger:hover {
  background: var(--tcl-red);
  color: white;
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 16px 28px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none !important;
}

/* ============================================================
   FORMULARIOS
   ============================================================ */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-dark);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  color: var(--black);
  background: var(--gray-light);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--tcl-red);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(211, 47, 39, .1);
}

.form-control::placeholder {
  color: var(--gray);
}

.form-control:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.input-icon-wrapper {
  position: relative;
}

.input-icon-wrapper .form-control {
  padding-left: 44px;
}

.input-icon-wrapper .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  font-size: 16px;
}

/* ============================================================
   FILTROS / CHIPS
   ============================================================ */
.filter-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: var(--gray-light);
  color: var(--gray);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.chip:hover {
  background: #e0e0e0;
  color: var(--black);
}

.chip.active {
  background: var(--tcl-red);
  color: white;
}

/* ============================================================
   TABLA / LISTA
   ============================================================ */
.list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}

.list-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.list-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

/* ============================================================
   BADGES DE ESTATUS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.badge-green {
  background: var(--green-soft);
  color: var(--green);
}

.badge-red {
  background: var(--tcl-red-soft);
  color: var(--tcl-red);
}

.badge-orange {
  background: var(--orange-soft);
  color: var(--orange);
}

.badge-blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.badge-gray {
  background: var(--gray-light);
  color: var(--gray-dark);
}

/* ============================================================
   GRID
   ============================================================ */
.grid {
  display: grid;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* ============================================================
   STATS CARDS
   ============================================================ */
.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.stat-value {
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: 4px;
}

/* ============================================================
   PREMIO / PRODUCTO CARD
   ============================================================ */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-img-wrap {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.product-img-wrap img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.product-body {
  padding: 16px;
}

.product-cat {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--gray);
}

.product-name {
  font-size: 15px;
  font-weight: 800;
  margin: 4px 0 8px;
  line-height: 1.3;
}

.product-pts {
  font-size: 14px;
  font-weight: 900;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================================
   BANNER CARD (Actividades)
   ============================================================ */
.banner-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 180px;
  cursor: pointer;
  flex-shrink: 0;
}

.banner-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.banner-card:hover img {
  transform: scale(1.05);
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .85) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
}

.banner-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, .8);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 6px;
}

.banner-title {
  color: white;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform .25s ease;
  box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.modal-title {
  font-size: 20px;
  font-weight: 800;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--gray-light);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--tcl-red-soft);
  color: var(--tcl-red);
}

/* ============================================================
   ALERT / TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--black);
  color: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(100px);
  opacity: 0;
  transition: all .35s cubic-bezier(.34, 1.56, .64, 1);
  max-width: 360px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.toast-success {
  background: var(--green);
}

.toast.toast-error {
  background: var(--tcl-red);
}

.toast.toast-warning {
  background: var(--orange);
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.auth-wrapper {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
  padding: 20px;
  margin-left: 0 !important;
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.auth-logo {
  text-align: center;
  margin-bottom: 12px;
}

.auth-logo img {
  height: 50px;
}

.auth-title {
  text-align: center;
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 4px;
}

.auth-subtitle {
  text-align: center;
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 32px;
}

/* ============================================================
   HORIZONTAL SCROLLER
   ============================================================ */
.h-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.h-scroll::-webkit-scrollbar {
  height: 4px;
}

.h-scroll::-webkit-scrollbar-track {
  background: var(--gray-light);
  border-radius: 2px;
}

.h-scroll::-webkit-scrollbar-thumb {
  background: var(--gray);
  border-radius: 2px;
}

/* ============================================================
   LOADING SPINNER
   ============================================================ */
.spinner {
  width: 36px;
  height: 36px;
  border: 4px solid var(--gray-light);
  border-top-color: var(--tcl-red);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 40px auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, .85);
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray);
}

.empty-state-icon {
  font-size: 56px;
  margin-bottom: 16px;
  opacity: .35;
}

.empty-state p {
  font-size: 15px;
  font-weight: 600;
}

/* ============================================================
   CARRITO FOOTER
   ============================================================ */
.cart-footer {
  position: fixed;
  bottom: 24px;
  left: calc(var(--sidebar-w) + 24px);
  right: 24px;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 16px 28px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  max-width: 680px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .cart-footer {
    left: 24px;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root {
    --sidebar-w: 0px;
  }

  .sidebar {
    transform: translateX(-100%);
    width: 260px;
  }

  .sidebar.open {
    transform: translateX(0);
    width: 260px;
  }

  .main-content {
    margin-left: 0;
  }

  .hamburger {
    display: flex;
  }

  .page-body {
    padding: 16px;
  }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    z-index: 199;
    display: none;
  }

  .sidebar-overlay.active {
    display: block;
  }
}

@media (max-width: 768px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .balance-amount {
    font-size: 38px;
  }

  .topbar {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .auth-card {
    padding: 28px 20px;
  }

  .cart-footer {
    flex-direction: column;
  }
}

/* ============================================================
   ANIMACIONES
   ============================================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn .4s ease forwards;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in {
  animation: slideInLeft .35s ease forwards;
}
/* ============================================================
   BALANCE CARD (NUEVA VERSIÓN PREMIUM)
   ============================================================ */
.balance-card-white {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  margin-bottom: 28px;
}

.balance-card-white .date-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.balance-card-white .status-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--green-bright);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  float: right;
}

.balance-card-white .main-balance {
  text-align: center;
  margin: 20px 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}

.balance-card-white .balance-value {
  font-size: 52px;
  font-weight: 900;
  color: var(--green-bright);
  line-height: 1;
}

.balance-card-white .balance-unit {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray);
}

.balance-card-white .footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-light);
}

.balance-card-white .label-small {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: var(--gray);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.balance-card-white .value-medium {
  font-size: 18px;
  font-weight: 900;
  color: var(--black);
}

.btn-black-pill {
  background: var(--black);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-black-pill:hover {
  background: #333;
  transform: scale(1.02);
}

/* ============================================================
   BOTTOM NAV
   ============================================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--white);
  display: none; /* Activo en mobile */
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, .05);
  z-index: 1000;
  padding: 0 10px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #BDBDBD;
  text-decoration: none;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  flex: 1;
  transition: var(--transition);
}

.nav-item i {
  font-size: 22px;
}

.nav-item.active {
  color: var(--tcl-red);
}

.nav-item-center {
  position: relative;
  top: -25px;
  background: #FF3D00; /* Color más vibrante para el centro */
  color: white !important;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  box-shadow: 0 8px 16px rgba(255, 61, 0, .4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}

.nav-item-center i {
  font-size: 30px;
}

/* ============================================================
   SUCURSAL CHIP
   ============================================================ */
.sucursal-chip {
  background: var(--green-soft);
  color: var(--green-bright);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 999px;
  display: inline-block;
  margin-top: 4px;
}

/* ============================================================
   EXPLORAR GRID
   ============================================================ */
.explorar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.explorar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.explorar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.explorar-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

@media (max-width: 1024px) {
  .bottom-nav {
    display: flex;
  }
  .main-content {
    margin-left: 0;
    padding-bottom: 100px;
  }
  .topbar {
    left: 0;
  }
}

/* ============================================================
   ESTILOS PREMIUM ADICIONALES
   ============================================================ */
.section-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--gray);
  text-transform: uppercase;
}

.link-red {
  font-size: 14px;
  font-weight: 700;
  color: var(--tcl-red);
  text-decoration: none;
}

.card-premium {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}

.card-premium:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-premium .icon-box {
  width: 65px;
  height: 65px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-premium .icon-box img {
    max-width: 55px;
    max-height: 55px;
    object-fit: contain;
}

.card-premium .content {
  flex: 1;
  min-width: 0;
}

.card-premium .category {
  font-size: 9px;
  font-weight: 800;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.card-premium .title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-premium .subtitle {
  font-size: 12px;
  color: var(--blue);
  font-weight: 600;
}

/* Ajustes para scroll horizontal */
.h-scroll {
  padding-bottom: 12px;
}

.banner-card {
  box-shadow: var(--shadow-sm);
}
