/* ==============================================
   AutoMarket - Estilos Principales
   ============================================== */

:root {
  --primary:       #1a1a2e;
  --primary-light: #16213e;
  --accent:        #e94560;
  --accent-hover:  #c73652;
  --gold:          #f5a623;
  --success:       #28a745;
  --text-dark:     #1a1a2e;
  --text-muted:    #6c757d;
  --bg-light:      #f8f9fa;
  --bg-card:       #ffffff;
  --border:        #e9ecef;
  --shadow-sm:     0 2px 8px rgba(0,0,0,.08);
  --shadow-md:     0 4px 20px rgba(0,0,0,.12);
  --shadow-lg:     0 8px 40px rgba(0,0,0,.18);
  --radius:        12px;
  --radius-sm:     8px;
  --transition:    all .25s ease;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-light);
}

a { text-decoration: none; color: inherit; }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; }

/* ==============================================
   NAVBAR
   ============================================== */
.navbar-main {
  background: var(--primary);
  padding: 12px 0;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-main .navbar-brand {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff !important;
  letter-spacing: -0.5px;
}

.navbar-main .navbar-brand span {
  color: var(--accent);
}

.navbar-main .nav-link {
  color: rgba(255,255,255,.85) !important;
  font-weight: 500;
  padding: 8px 16px !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,.1);
}

.navbar-main .btn-nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 20px !important;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}

.navbar-main .btn-nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(233,69,96,.4);
}

/* ==============================================
   HERO SECTION
   ============================================== */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #0f3460 100%);
  color: #fff;
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(233,69,96,.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245,166,35,.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.hero-title .highlight {
  color: var(--accent);
  position: relative;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 2.5rem;
}

.hero-stat-item {
  text-align: center;
}

.hero-stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  display: block;
}

.hero-stat-label {
  font-size: .8rem;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==============================================
   SEARCH BOX
   ============================================== */
.search-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
  margin-top: -40px;
}

.search-box .form-control,
.search-box .form-select {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: .95rem;
  transition: var(--transition);
  background: var(--bg-light);
}

.search-box .form-control:focus,
.search-box .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(233,69,96,.12);
  background: #fff;
}

.btn-search {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  width: 100%;
  transition: var(--transition);
  cursor: pointer;
}

.btn-search:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233,69,96,.4);
  color: #fff;
}

/* ==============================================
   VEHICLE CARDS
   ============================================== */
.vehicle-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.vehicle-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(233,69,96,.2);
}

.vehicle-card-img {
  position: relative;
  overflow: hidden;
  height: 200px;
  background: var(--bg-light);
}

.vehicle-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.vehicle-card:hover .vehicle-card-img img {
  transform: scale(1.05);
}

.vehicle-badge-status {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.badge-ocasion    { background: #17a2b8; color: #fff; }
.badge-nuevo      { background: var(--success); color: #fff; }
.badge-km0        { background: var(--gold); color: #fff; }
.badge-gerencia   { background: var(--primary); color: #fff; }

.vehicle-badge-sold {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vehicle-badge-sold span {
  background: var(--accent);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  padding: 8px 24px;
  border-radius: 50px;
  transform: rotate(-15deg);
  letter-spacing: 2px;
}

.vehicle-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.vehicle-card-brand {
  font-size: .78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.vehicle-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}

.vehicle-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.vehicle-spec-tag {
  background: var(--bg-light);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .75rem;
  padding: 3px 8px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.vehicle-card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vehicle-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
}

.vehicle-price-financed {
  font-size: .78rem;
  color: var(--text-muted);
}

.env-label {
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
  font-size: .62rem;
  font-weight: 800;
  color: #fff;
  vertical-align: middle;
  margin-left: 4px;
}

/* ==============================================
   DEALER CARDS
   ============================================== */
.dealer-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
  text-align: center;
  padding: 24px;
}

.dealer-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.dealer-card-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  margin: 0 auto 12px;
  display: block;
}

.dealer-card-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.dealer-card-city {
  font-size: .83rem;
  color: var(--text-muted);
}

.dealer-card-count {
  margin-top: 12px;
  background: var(--bg-light);
  border-radius: 50px;
  padding: 4px 12px;
  font-size: .78rem;
  color: var(--accent);
  font-weight: 600;
  display: inline-block;
}

/* ==============================================
   SECCIÓN TITLES
   ============================================== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  background: rgba(233,69,96,.1);
  color: var(--accent);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 4px 16px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-title span {
  color: var(--accent);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ==============================================
   BUTTONS
   ============================================== */
.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff !important;
  border: none;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233,69,96,.4);
}

.btn-outline-accent {
  background: transparent;
  color: var(--accent) !important;
  border: 2px solid var(--accent);
  padding: 8px 22px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline-accent:hover {
  background: var(--accent);
  color: #fff !important;
}

.btn-whatsapp {
  background: #25D366;
  color: #fff !important;
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.btn-whatsapp:hover {
  background: #1eba57;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,.4);
}

.btn-phone {
  background: var(--primary);
  color: #fff !important;
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.btn-phone:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

/* ==============================================
   FICHA DE VEHÍCULO
   ============================================== */
.vehicle-gallery {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery-main {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.gallery-thumb {
  width: 100%;
  height: 70px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  opacity: .7;
  transition: var(--transition);
  border: 2px solid transparent;
}

.gallery-thumb:hover,
.gallery-thumb.active {
  opacity: 1;
  border-color: var(--accent);
}

.vehicle-info-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.vehicle-main-price {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.vehicle-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.spec-item {
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.spec-item i {
  width: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

.spec-label {
  font-size: .75rem;
  color: var(--text-muted);
  display: block;
}

.spec-value {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-dark);
  display: block;
}

.feature-tag {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: .83rem;
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.feature-tag i { color: var(--success); font-size: .85rem; }

/* ==============================================
   DEALER PROFILE PAGE
   ============================================== */
.dealer-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: 60px 0;
  position: relative;
}

.dealer-cover {
  width: 100%;
  height: 280px;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: .3;
}

.dealer-profile-logo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: var(--shadow-md);
}

/* ==============================================
   DASHBOARD PANEL
   ============================================== */
.dashboard-sidebar {
  background: var(--primary);
  min-height: 100vh;
  width: 260px;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 200;
  transition: transform .3s ease;
  overflow-y: auto;
}

.dashboard-sidebar::-webkit-scrollbar { width: 4px; }
.dashboard-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 2px; }

.sidebar-brand {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.sidebar-brand .logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}

.sidebar-brand .logo-text span { color: var(--accent); }

.sidebar-menu {
  padding: 16px 0;
  list-style: none;
}

.sidebar-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  font-weight: 500;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.sidebar-menu li a i {
  width: 18px;
  font-size: 1rem;
  flex-shrink: 0;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-left-color: var(--accent);
}

.sidebar-menu li.separator {
  height: 1px;
  background: rgba(255,255,255,.1);
  margin: 8px 16px;
}

.dashboard-content {
  margin-left: 260px;
  min-height: 100vh;
  background: var(--bg-light);
  transition: margin-left .3s ease;
}

.dashboard-topbar {
  background: #fff;
  padding: 16px 28px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.dashboard-topbar .page-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.dashboard-main {
  padding: 28px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 18px;
  transition: var(--transition);
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.stat-icon-primary { background: rgba(26,26,46,.1); color: var(--primary); }
.stat-icon-accent   { background: rgba(233,69,96,.1); color: var(--accent); }
.stat-icon-success  { background: rgba(40,167,69,.1); color: var(--success); }
.stat-icon-warning  { background: rgba(245,166,35,.1); color: var(--gold); }
.stat-icon-info     { background: rgba(23,162,184,.1); color: #17a2b8; }

.stat-value {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: .82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==============================================
   SUBSCRIPTION BANNER
   ============================================== */
.subscription-banner {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.subscription-banner.trial {
  background: linear-gradient(135deg, var(--gold), #e8971f);
}

.subscription-banner.expired {
  background: linear-gradient(135deg, #6c757d, #495057);
}

/* ==============================================
   FORMS
   ============================================== */
.form-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.form-label {
  font-weight: 600;
  font-size: .88rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-control, .form-select {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: .93rem;
  transition: var(--transition);
  background: #fff;
}

.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(233,69,96,.1);
}

.form-control.is-invalid { border-color: #dc3545; }
.form-control.is-valid   { border-color: var(--success); }

/* ==============================================
   TABLAS
   ============================================== */
.table-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.table-card .table {
  margin: 0;
}

.table th {
  background: var(--bg-light);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
  padding: 12px 16px;
  white-space: nowrap;
}

.table td {
  padding: 14px 16px;
  vertical-align: middle;
  border-color: var(--border);
  font-size: .9rem;
}

.table tbody tr:hover { background: rgba(233,69,96,.02); }

/* ==============================================
   STATUS BADGES
   ============================================== */
.badge-status {
  padding: 5px 12px;
  border-radius: 50px;
  font-size: .73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.badge-trial      { background: rgba(245,166,35,.15); color: #c8880a; }
.badge-active     { background: rgba(40,167,69,.15);  color: #1a7a35; }
.badge-expired    { background: rgba(220,53,69,.15);  color: #b02030; }
.badge-suspended  { background: rgba(108,117,125,.15); color: #495057; }

/* ==============================================
   DRAG & DROP UPLOAD
   ============================================== */
.dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-light);
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--accent);
  background: rgba(233,69,96,.04);
}

.dropzone i {
  font-size: 2.5rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: block;
}

.dropzone.dragover i { color: var(--accent); }

.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.preview-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-light);
  border: 2px solid transparent;
  cursor: grab;
}

.preview-item.main-image {
  border-color: var(--gold);
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: .7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s;
}

.preview-item:hover .preview-remove { opacity: 1; }

.preview-main-badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: var(--gold);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

/* ==============================================
   SKELETON LOADERS
   ============================================== */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* ==============================================
   TOAST NOTIFICATIONS
   ============================================== */
.toast-container-custom {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
}

.toast-custom {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: toast-in .3s ease;
  border-left: 4px solid;
}

.toast-custom.success { border-left-color: var(--success); }
.toast-custom.error   { border-left-color: var(--accent); }
.toast-custom.warning { border-left-color: var(--gold); }
.toast-custom.info    { border-left-color: #17a2b8; }

@keyframes toast-in {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

.toast-custom.removing {
  animation: toast-out .3s ease forwards;
}

@keyframes toast-out {
  to { transform: translateX(110%); opacity: 0; }
}

/* ==============================================
   BREADCRUMBS
   ============================================== */
.breadcrumb-wrap {
  background: #fff;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  margin: 0;
  padding: 0;
}

.breadcrumb-item a {
  color: var(--accent);
  font-size: .88rem;
}

.breadcrumb-item.active {
  color: var(--text-muted);
  font-size: .88rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: '›';
  font-size: 1rem;
  line-height: 1;
}

/* ==============================================
   PAGINATION
   ============================================== */
.pagination-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.page-item .page-link {
  border: 2px solid var(--border);
  color: var(--text-dark);
  padding: 8px 16px;
  border-radius: var(--radius-sm) !important;
  margin: 0 3px;
  font-weight: 600;
  font-size: .88rem;
  transition: var(--transition);
}

.page-item .page-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.page-item.active .page-link {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ==============================================
   EMPTY STATES
   ============================================== */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 3.5rem;
  margin-bottom: 16px;
  display: block;
  opacity: .4;
}

.empty-state h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.empty-state p { max-width: 360px; margin: 0 auto 20px; }

/* ==============================================
   FOOTER
   ============================================== */
.footer-main {
  background: var(--primary);
  color: rgba(255,255,255,.8);
  padding: 60px 0 30px;
}

.footer-brand .logo-text {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
}

.footer-brand .logo-text span { color: var(--accent); }

.footer-desc {
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  margin-top: 12px;
  max-width: 280px;
}

.footer-heading {
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  transition: color .2s;
}

.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 40px;
  padding-top: 24px;
  text-align: center;
  color: rgba(255,255,255,.4);
  font-size: .83rem;
}

/* ==============================================
   AUTH PAGES
   ============================================== */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 60%, #0f3460 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
}

.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo .logo-text {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.auth-logo .logo-text span { color: var(--accent); }

.auth-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.auth-subtitle {
  color: var(--text-muted);
  font-size: .92rem;
  margin-bottom: 28px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: .83rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Password strength */
.password-strength { margin-top: 6px; }
.strength-bar { height: 4px; border-radius: 2px; background: var(--border); overflow: hidden; }
.strength-fill { height: 100%; transition: width .3s, background .3s; }

/* ==============================================
   SUPERADMIN PANEL
   ============================================== */
.admin-sidebar {
  background: #0d0d1a;
  min-height: 100vh;
  width: 260px;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 200;
  overflow-y: auto;
}

.admin-sidebar .sidebar-brand { border-bottom-color: rgba(255,255,255,.08); }

.admin-sidebar .sidebar-menu li a:hover,
.admin-sidebar .sidebar-menu li a.active {
  background: rgba(233,69,96,.15);
  color: #fff;
  border-left-color: var(--accent);
}

.admin-content {
  margin-left: 260px;
  min-height: 100vh;
  background: #f0f2f5;
}

/* ==============================================
   STRIPE / CHECKOUT
   ============================================== */
.pricing-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 2px solid transparent;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.pricing-card.featured {
  border-color: var(--accent);
}

.pricing-card.featured::before {
  content: 'MÁS POPULAR';
  position: absolute;
  top: 16px;
  right: -28px;
  background: var(--accent);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 40px;
  transform: rotate(45deg);
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
}

.pricing-price sup {
  font-size: 1.2rem;
  vertical-align: top;
  margin-top: 10px;
  display: inline-block;
}

.pricing-price sub {
  font-size: .9rem;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  text-align: left;
}

.pricing-features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
}

.pricing-features li i { color: var(--success); }

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 991px) {
  .dashboard-sidebar,
  .admin-sidebar {
    transform: translateX(-100%);
  }

  .dashboard-sidebar.open,
  .admin-sidebar.open {
    transform: translateX(0);
  }

  .dashboard-content,
  .admin-content {
    margin-left: 0;
  }

  .gallery-main { height: 280px; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 767px) {
  .hero-section { padding: 50px 0 80px; }
  .hero-stats   { gap: 20px; flex-wrap: wrap; }
  .search-box   { margin-top: -20px; padding: 16px; }
  .vehicle-specs-grid { grid-template-columns: 1fr; }
  .gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
  .gallery-main { height: 220px; }
  .auth-card { padding: 24px 20px; }
  .form-card { padding: 20px; }
  .dashboard-main { padding: 16px; }
}

/* Mobile sidebar overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 199;
}

.sidebar-overlay.active { display: block; }

/* ==============================================
   UTILIDADES
   ============================================== */
.text-accent   { color: var(--accent) !important; }
.text-gold     { color: var(--gold) !important; }
.bg-accent     { background: var(--accent) !important; }
.bg-primary-custom { background: var(--primary) !important; }

.rounded-custom { border-radius: var(--radius) !important; }
.shadow-custom  { box-shadow: var(--shadow-md) !important; }

.transition-all { transition: var(--transition); }

.fw-800 { font-weight: 800 !important; }
.fw-700 { font-weight: 700 !important; }

.cursor-pointer { cursor: pointer; }

.gap-6 { gap: 6px !important; }
.gap-8 { gap: 8px !important; }

/* Lightbox */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay.active { display: flex; }

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  transition: color .2s;
}

.lightbox-close:hover { color: var(--accent); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: rgba(255,255,255,.1);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-nav:hover { background: var(--accent); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
