@font-face {
  font-family: Barlow;
  src: url('assets/barlow-condensed-semibold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url('assets/manrope-variable.ttf') format('truetype');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg-black: #0a0a0b;
  --bg-carbon: #0a0a0b;
  --bg-card: #121215;
  --border-dark: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.16);
  --red: #dc2626;
  --red-hover: #b91c1c;
  --wa: #16a34a;
  --wa-hover: #15803d;
  --text-white: #fafafa;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.65);
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: Manrope, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-white);
  background-color: var(--bg-carbon);
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

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

ul, ol, li {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  color: var(--text-white);
  background: var(--bg-carbon);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  cursor: pointer;
  border: 0;
  background: transparent;
}

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

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

/* NAVBAR SUPERIOR MINIMALISTA FIJO (#0A0A0B UNIFICADO) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 11, 0.92) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
}

.site-logo-nav {
  display: inline-flex;
  align-items: center;
  width: auto;
  background: transparent;
  padding: 0;
  border: 0;
}

.site-logo-nav img {
  height: 44px;
  width: auto;
  object-fit: contain;
  background: transparent;
  display: block;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fafafa !important;
  padding: 7px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: var(--transition);
}

.nav-wa-btn .wa-icon-sm {
  width: 15px;
  height: 15px;
  color: #22c55e;
  flex-shrink: 0;
}

.nav-wa-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(34, 197, 94, 0.55);
  transform: translateY(-1px);
}

.admin-lock-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04) !important;
  color: #fafafa !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  padding: 8px 13px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
}

.admin-lock-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  color: #fafafa !important;
}

.admin-lock-btn.is-logged {
  background: rgba(16, 185, 129, 0.16) !important;
  color: #34d399 !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
}

.btn-logout-header {
  font-size: 10.5px;
  font-weight: 700;
  color: #f87171;
  padding: 7px 10px;
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-logout-header:hover {
  background: #dc2626;
  color: #fafafa;
}

/* HERO SLIDER INMERSIVO DE ALTA GAMA (INSPIRADO EN CALDO & SANTI) */
.hero-slider-section {
  position: relative;
  width: 100%;
  height: 72vh;
  min-height: 480px;
  max-height: 760px;
  overflow: hidden;
  background: #0a0a0b;
}

.hero-slides-track {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 2;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform 8s ease-out;
}

.hero-slide.is-active img {
  transform: scale(1.07);
}

.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(180deg, rgba(10, 10, 11, 0.55) 0%, rgba(10, 10, 11, 0.35) 45%, #0a0a0b 100%);
  pointer-events: none;
}

.hero-center-content {
  position: relative;
  z-index: 4;
  height: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-brand-logo {
  width: 360px;
  max-width: 86vw;
  height: auto;
  display: block;
  margin: 0 auto;
  background: transparent;
}

.hero-slogan-text {
  margin: 16px 0 26px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #e4e4e7;
  max-width: 680px;
  line-height: 1.5;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 9999px;
  color: #fafafa;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: var(--transition);
}

.hero-cta-btn:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #fafafa;
  transform: translateY(-2px);
}

.hero-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(10, 10, 11, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  opacity: 0.65;
  transition: var(--transition);
}

.hero-arrow-btn:hover {
  opacity: 1;
  background: rgba(10, 10, 11, 0.8);
  border-color: rgba(255, 255, 255, 0.3);
}

.hero-arrow-btn.prev { left: 20px; }
.hero-arrow-btn.next { right: 20px; }

.hero-dots-nav {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.3);
  padding: 0;
  transition: all 0.3s ease;
}

.hero-dot.is-active {
  width: 24px;
  background: #fafafa;
}

/* CONTENEDOR DE FILTROS Y CONTADOR (#0A0A0B) */
.brand-hero-section {
  background: #0a0a0b;
  padding: 20px 0 6px;
}

.hero-inner-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  background: transparent;
}

/* BLOQUE DE FILTROS INTEGRADO BOUTIQUE (#121215) */
.filters-card-dark {
  background: #121215;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.filters-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-search-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  background: #0a0a0b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  transition: var(--transition);
}

.filter-search-wrap:focus-within {
  border-color: rgba(220, 38, 38, 0.7);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15);
  background: #0f0f12;
}

.search-svg {
  width: 17px;
  height: 17px;
  color: #dc2626;
  margin-right: 10px;
  flex-shrink: 0;
}

.filter-search-wrap input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 11px 0;
  font-size: 13px;
  color: #fafafa;
  outline: none;
}

.filter-search-wrap input::placeholder {
  color: #71717a;
}

.btn-toggle-filters {
  display: none;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  color: #fafafa !important;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-toggle-filters:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  color: #fafafa !important;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-group label {
  font-size: 9.5px;
  font-weight: 700;
  color: #a1a1aa;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter-group select {
  background: #0a0a0b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 9px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #fafafa;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.filter-group select:focus {
  border-color: rgba(220, 38, 38, 0.7);
}

.filter-group select option {
  background: #121215;
  color: #fafafa;
}

.btn-reset-filters {
  width: 100%;
  padding: 9px 8px;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  color: #fafafa !important;
  cursor: pointer;
  transition: var(--transition);
}

.btn-reset-filters:hover {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  color: #fafafa !important;
}

/* BARRA INDICADORA DE STOCK (CON CONTADOR EN NEGRITA) */
.stock-bar-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  background: #121215;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
}

.stock-indicator-left {
  display: flex;
  align-items: center;
  gap: 9px;
}

.status-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #dc2626;
  animation: pulseDot 2.2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.stock-section-title {
  font-size: 11px;
  font-weight: 700;
  color: #a1a1aa;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stock-indicator-right {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.count-number-glow {
  font-family: Barlow, sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #dc2626;
  line-height: 1;
}

.count-text-bold {
  font-size: 11px;
  font-weight: 700;
  color: #fafafa;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* SECCIÓN STOCK Y GRILLA */
.stock-section {
  padding: 20px 0 56px;
  background: var(--bg-carbon);
}

.section-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.stock-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* TARJETAS DE VEHÍCULOS (BOUTIQUE AUTOMOTIVE) */
.vehicle-card-item {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.vehicle-card-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-light);
}

.card-media-box {
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
  background: #0a0a0b;
  overflow: hidden;
}

.card-media-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.vehicle-card-item:hover .card-media-box img {
  transform: scale(1.04);
}

.card-media-box.is-sold img {
  filter: grayscale(55%) contrast(92%);
  opacity: 0.8;
}

.ribbon-sold {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #dc2626;
  color: #fafafa;
  font-family: Barlow, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  z-index: 10;
  text-transform: uppercase;
}

.badge-amber {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: Barlow, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 11px;
  border-radius: 6px;
  z-index: 10;
  text-transform: uppercase;
}

.badge-new,
.badge-green {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #fafafa;
  color: #0a0a0b;
  border: 1px solid rgba(255, 255, 255, 0.9);
  font-family: Barlow, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 11px;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  z-index: 10;
  text-transform: uppercase;
}

.badge-available {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.38);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: Barlow, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 11px;
  border-radius: 6px;
  z-index: 10;
  text-transform: uppercase;
}

.card-type-tag {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(10, 10, 11, 0.8);
  color: #e4e4e7;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: 6px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-content-box {
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title-h3 {
  font-family: Barlow, sans-serif;
  font-size: 22px;
  font-weight: 600;
  text-transform: uppercase;
  color: #fafafa;
  line-height: 1.15;
  margin: 0 0 5px 0;
  letter-spacing: -0.01em;
}

.card-title-h3 a:hover {
  color: #dc2626;
}

.card-condition-line {
  font-size: 10.5px;
  font-weight: 600;
  color: #a1a1aa;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.card-price-value {
  font-family: Barlow, sans-serif;
  font-size: 29px;
  font-weight: 600;
  color: #fafafa;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.card-specs-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 0;
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 600;
  color: #a1a1aa;
}

.spec-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.spec-col:last-child {
  border-right: 0;
}

.spec-col svg {
  width: 14px;
  height: 14px;
  color: #dc2626;
}

.spec-col span {
  font-size: 11px;
  font-weight: 600;
  color: #e4e4e7;
}

.card-actions-row {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.btn-card-detail {
  flex: 1;
  background: #18181b !important;
  color: #fafafa !important;
  border: 1px solid #27272a !important;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 12px;
  text-align: center;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
}

.btn-card-detail:hover {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #fafafa !important;
}

.btn-card-whatsapp {
  flex: 1;
  background: #141816 !important;
  color: #e4e4e7 !important;
  border: 1px solid rgba(34, 197, 94, 0.35) !important;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
}

.btn-card-whatsapp .wa-icon-sm {
  width: 14px;
  height: 14px;
  color: #22c55e;
  flex-shrink: 0;
}

.btn-card-whatsapp:hover {
  border-color: #22c55e !important;
  background: rgba(34, 197, 94, 0.08) !important;
  color: #fafafa !important;
}

.btn-card-whatsapp.is-sold-btn {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #a1a1aa !important;
}

.btn-card-whatsapp.is-sold-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #fafafa !important;
}

/* SECCIÓN UBICACIÓN Y CONTACTO */
.location-section {
  padding: 50px 0 70px;
  background: #0a0a0b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.location-card-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  background: #121215;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.map-wrapper {
  min-height: 420px;
  width: 100%;
  background: #000000;
}

.contact-info-panel {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-badge {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #dc2626;
  margin-bottom: 6px;
}

.contact-info-panel h2 {
  font-family: Barlow, sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 6px 0;
  letter-spacing: -0.01em;
}

.contact-subtitle {
  font-size: 12px;
  color: #94a3b8;
  margin: 0 0 24px 0;
}

.contact-data-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 28px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-data-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.icon-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1a1b24;
  border: 1px solid #2d3040;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dc2626;
  flex-shrink: 0;
}

.icon-circle svg {
  width: 16px;
  height: 16px;
}

.contact-data-list strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.contact-data-list span, .contact-data-list a {
  font-size: 12px;
  color: #94a3b8;
}

.btn-contact-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #141816;
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #fafafa !important;
  font-size: 13px;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-contact-wa:hover {
  background: rgba(34, 197, 94, 0.12);
  border-color: #22c55e;
}

/* FOOTER */
.site-footer {
  background: #0a0a0b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 32px 0;
  color: #a1a1aa;
  font-size: 12px;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand strong {
  font-family: Barlow, sans-serif;
  font-size: 18px;
  color: #ffffff;
  letter-spacing: 0.04em;
  display: block;
}

.footer-brand p {
  margin: 4px 0 0;
  font-size: 11px;
  color: #64748b;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 11.5px;
  font-weight: 600;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #181920 !important;
  border: 1px solid #2d3040 !important;
  color: #ffffff !important;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
  transition: var(--transition);
}

.footer-admin-link:hover {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  color: #ffffff !important;
}

.footer-copy small {
  font-size: 10.5px;
  color: #64748b;
}

/* MODALES */
dialog {
  display: none;
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
}

dialog[open], dialog.is-open {
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  background: rgba(0, 0, 0, 0.88) !important;
  backdrop-filter: blur(6px) !important;
  z-index: 99999 !important;
  padding: 20px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

dialog:not([open]):not(.is-open) {
  display: none !important;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1f212d;
  border: 1px solid #36394d;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 20;
}

.modal-close-btn:hover {
  background: #dc2626;
  border-color: #dc2626;
}

/* MODAL DE FICHA COMPLETA */
.detail-dialog {
  width: min(960px, 94vw);
}

.detail-modal-box {
  background: #14151d;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  color: #ffffff;
}

.modal-grid-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  padding: 28px;
}

.modal-gallery-wrap {
  position: sticky;
  top: 0;
}

.modal-main-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #090a0e;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

.modal-thumbs-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.modal-thumb-btn {
  width: 72px;
  height: 52px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  flex-shrink: 0;
  padding: 0;
  background: #000;
}

.modal-thumb-btn.active {
  border-color: #dc2626;
}

.modal-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-info-col h2 {
  font-family: Barlow, sans-serif;
  font-size: 32px;
  font-weight: 600;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 4px 0;
  line-height: 1.1;
}

.modal-condition-tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  display: block;
}

.modal-price-val {
  font-family: Barlow, sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: #dc2626;
  margin-bottom: 16px;
}

.modal-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
  margin-bottom: 20px;
}

.modal-specs-table tr {
  border-bottom: 1px solid #20222f;
}

.modal-specs-table td {
  padding: 8px 6px;
}

.modal-specs-table td:first-child {
  font-weight: 700;
  color: #94a3b8;
  width: 40%;
}

.modal-specs-table td:last-child {
  font-weight: 600;
  color: #ffffff;
}

.modal-features-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.modal-chip {
  background: #1b1d28;
  border: 1px solid #2e3144;
  font-size: 10px;
  font-weight: 600;
  color: #cbd5e1;
  padding: 4px 8px;
  border-radius: 2px;
}

.modal-desc-box {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.6;
  background: #101117;
  border: 1px solid #232533;
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.btn-modal-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #141816;
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #fafafa !important;
  font-size: 13px;
  font-weight: 600;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-modal-wa:hover {
  background: rgba(34, 197, 94, 0.12);
  border-color: #22c55e;
}

/* MODAL LOGIN */
.login-dialog {
  width: min(440px, 92vw);
}

.login-modal-box {
  background: #14151d;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  box-shadow: var(--shadow-lg);
  color: #ffffff;
}

.login-header {
  text-align: center;
  margin-bottom: 22px;
}

.login-logo-img {
  width: 130px;
  height: auto;
  margin: 0 auto 12px;
  background: #000000;
}

.login-header h2 {
  font-family: Barlow, sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px;
  letter-spacing: 0.02em;
}

.login-header p {
  font-size: 11.5px;
  color: #94a3b8;
  margin: 0;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-field label {
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
}

.form-field input {
  padding: 10px 12px;
  border: 1px solid #2d3042;
  border-radius: var(--radius-sm);
  font-size: 13px;
  outline: none;
  background: #1b1d28;
  color: #ffffff;
}

.form-field input:focus {
  border-color: #dc2626;
}

.btn-autofill-demo {
  background: #1c1d28;
  color: #93c5fd;
  border: 1px dashed #3b82f6;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  transition: var(--transition);
}

.btn-autofill-demo:hover {
  background: #252838;
}

.btn-submit-login {
  background: #dc2626;
  color: #ffffff;
  padding: 12px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-submit-login:hover {
  background: #b91c1c;
}

.login-error-msg {
  font-size: 11.5px;
  color: #f87171;
  text-align: center;
  margin: 4px 0 0;
}

/* MODAL PANEL DE ADMINISTRACIÓN */
.admin-panel-dialog {
  width: min(1200px, 96vw);
}

.admin-panel-box {
  background: #14151d;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  color: #ffffff;
}

.admin-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #20222f;
  padding-bottom: 18px;
  margin-bottom: 20px;
}

.admin-badge {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 800;
  color: #34d399;
  letter-spacing: 0.1em;
  background: #064e3b;
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 4px;
}

.admin-panel-header h2 {
  font-family: Barlow, sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-admin-logout {
  background: #2a1518;
  color: #f87171;
  border: 1px solid #7f1d1d;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
}

.btn-admin-logout:hover {
  background: #dc2626;
  color: #ffffff;
}

.admin-stats-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.stat-item-box {
  background: #1b1d28;
  border: 1px solid #2d3042;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
}

.stat-item-box span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
}

.stat-item-box strong {
  font-family: Barlow, sans-serif;
  font-size: 26px;
  color: #ffffff;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid #2d3042;
  border-radius: var(--radius-sm);
}

.admin-inventory-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
  min-width: 760px;
}

.admin-inventory-table th {
  background: #1b1d28;
  padding: 10px 12px;
  text-align: left;
  font-size: 9.5px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #2d3042;
}

.admin-inventory-table td {
  padding: 12px;
  border-bottom: 1px solid #202230;
  vertical-align: middle;
}

.admin-thumb-img {
  width: 60px;
  height: 44px;
  object-fit: cover;
  border-radius: 2px;
  background: #090a0e;
}

.quick-status-wrap {
  display: inline-flex;
  background: #101117;
  border: 1px solid #2d3042;
  border-radius: 3px;
  padding: 2px;
  gap: 2px;
}

.btn-quick-st {
  border: 0;
  background: transparent;
  padding: 5px 9px;
  font-size: 9.5px;
  font-weight: 700;
  color: #94a3b8;
  border-radius: 2px;
  transition: var(--transition);
}

.btn-quick-st:hover {
  background: #252838;
  color: #ffffff;
}

.btn-quick-st.active.st-disp {
  background: #059669;
  color: #ffffff;
}

.btn-quick-st.active.st-res {
  background: #d97706;
  color: #ffffff;
}

.btn-quick-st.active.st-sold {
  background: #dc2626;
  color: #ffffff;
}

.btn-edit-action {
  background: #1f212d;
  color: #ffffff;
  padding: 6px 10px;
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 4px;
  border: 1px solid #333648;
  transition: var(--transition);
}

.btn-edit-action:hover {
  background: #2b2e3e;
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-delete-action {
  background: rgba(220, 38, 38, 0.12);
  color: #f87171;
  padding: 6px 10px;
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 4px;
  border: 1px solid rgba(220, 38, 38, 0.3);
  transition: var(--transition);
}

.btn-delete-action:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
}

/* ADMIN CMS TABS, TOOLBAR & FORMULARIO COMPLETO */
.admin-cms-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.admin-tabs-bar {
  display: inline-flex;
  background: #0a0a0b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 4px;
  gap: 4px;
}

.admin-tab-btn {
  padding: 8px 14px;
  font-size: 11.5px;
  font-weight: 600;
  color: #a1a1aa;
  border-radius: 6px;
  transition: var(--transition);
}

.admin-tab-btn:hover {
  color: #fafafa;
}

.admin-tab-btn.is-active {
  background: #1f212d;
  color: #fafafa;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-admin-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #dc2626;
  color: #fafafa;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-admin-primary:hover {
  background: #b91c1c;
}

.btn-admin-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1f212d;
  color: #fafafa;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-admin-secondary:hover {
  background: #2b2e3e;
}

.admin-form-card {
  background: #101116;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 22px;
}

.admin-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-form-header h3 {
  font-family: Barlow, sans-serif;
  font-size: 22px;
  margin: 0;
  color: #fafafa;
  text-transform: uppercase;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.admin-form-grid .span-2 {
  grid-column: span 2;
}

.admin-form-grid .span-3 {
  grid-column: 1 / -1;
}

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-field label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a1a1aa;
}

.admin-field input,
.admin-field select,
.admin-field textarea {
  background: #0a0a0b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 12.5px;
  color: #fafafa;
  outline: none;
  transition: var(--transition);
}

.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus {
  border-color: #dc2626;
}

.admin-field-hint {
  font-size: 11px;
  color: #34d399;
  font-weight: 600;
}

.photo-upload-box {
  background: #0a0a0b;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.photo-upload-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.photo-manager-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.photo-thumb-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #121215;
  aspect-ratio: 16 / 10;
}

.photo-thumb-card.is-cover {
  border: 2px solid #dc2626;
}

.photo-thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-cover-btn {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: rgba(10, 10, 11, 0.85);
  color: #fafafa;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.photo-thumb-card.is-cover .photo-cover-btn {
  background: #dc2626;
  border-color: #dc2626;
}

.photo-remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(10, 10, 11, 0.85);
  color: #fafafa;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.photo-remove-btn:hover {
  background: #dc2626;
  border-color: #dc2626;
}

.admin-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-status-select {
  background: #0a0a0b;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fafafa;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

/* TOAST */
.toast-box {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 40px);
  background: #12131a;
  color: #ffffff;
  border: 1px solid #36394c;
  padding: 12px 20px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 200000;
}

.toast-box.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .stock-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filters-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .location-card-layout {
    grid-template-columns: 1fr;
  }
  .map-wrapper {
    min-height: 320px;
  }
  .modal-grid-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding: 0 16px;
    height: 58px;
  }
  .site-logo-nav img {
    height: 36px;
  }
  .nav-wa-btn {
    padding: 6px 12px;
    font-size: 11.5px;
  }
  .admin-lock-btn {
    padding: 6px 10px;
    font-size: 11px;
  }
  .hero-slider-section {
    height: 62vh;
    min-height: 480px;
  }
  .hero-brand-logo {
    width: 260px;
  }
  .hero-slogan-text {
    font-size: 10px;
    letter-spacing: 0.14em;
    margin: 12px 0 20px;
  }
  .hero-cta-btn {
    padding: 10px 20px;
    font-size: 11.5px;
  }
  .hero-arrow-btn {
    width: 32px;
    height: 32px;
  }
  .hero-arrow-btn.prev { left: 10px; }
  .hero-arrow-btn.next { right: 10px; }
  .admin-form-grid {
    grid-template-columns: 1fr;
  }
  .admin-form-grid .span-2 {
    grid-column: span 1;
  }
  .brand-hero-section {
    padding: 14px 0 6px;
  }
  .hero-inner-container {
    padding: 0 16px;
  }
  .filters-card-dark {
    padding: 12px 14px;
    margin-bottom: 12px;
  }
  .btn-toggle-filters {
    display: inline-flex;
    padding: 9px 12px;
    font-size: 11.5px;
  }
  .filters-grid {
    display: none;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .filters-grid.is-open {
    display: grid;
  }
  .stock-bar-indicator {
    padding: 10px 14px;
  }
  .count-number-glow {
    font-size: 22px;
  }
  .count-text-bold {
    font-size: 10.5px;
  }
  .section-container {
    padding: 0 16px;
  }
  .stock-section {
    padding: 14px 0 36px;
  }
  .stock-cards-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .card-media-box {
    aspect-ratio: 16 / 10;
  }
  .admin-stats-summary {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
}