/* =========================================================
   AUTOS CHAGUARAMOS - SISTEMA DE ESTILOS DE LUJO (REVISADO Y CORREGIDO)
   Colores: Negro (#0a0a0c), Gris Pizarra (#14161f, #202330), Rojo Crimson (#e50914, #ff2a3a)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,400;1,600&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --bg-dark: #0a0a0c;
  --bg-card: #13141b;
  --bg-card-hover: #1b1d28;
  --bg-input: #1a1c26;
  --border-color: #272a38;
  --border-active: #e50914;
  
  --text-main: #f5f5f7;
  --text-muted: #9e9ea7;
  --text-accent: #ff3b4b;

  --red-primary: #e50914;
  --red-hover: #c00611;
  --red-glow: rgba(229, 9, 20, 0.4);
  
  --whatsapp-green: #25d366;
  --whatsapp-hover: #1ebd58;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------------------------------------------------------
   PROTECCIÓN UX & OCULTAMIENTO DE BARRAS DE DESPLAZAMIENTO
   --------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

html, body, .modal-content, .admin-table-container, .gallery-thumbs-strip {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.modal-content::-webkit-scrollbar,
.admin-table-container::-webkit-scrollbar,
.gallery-thumbs-strip::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  overflow-x: hidden;
  line-height: 1.6;
  width: 100%;
  font-size: 16px;
}

/* MARGEN DE SCROLL PARA CENTRAR SECCIONES PERFECTAMENTE BAJO EL HEADER */
section, .finance-section, .brands-section, .catalog-section, .location-section {
  scroll-margin-top: 100px;
}

/* ---------------------------------------------------------
   ESTILOS DE CASILLAS / INPUTS DE LUJO (CORRECCIÓN VISUAL)
   --------------------------------------------------------- */
input[type="text"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
select,
textarea,
.filter-input {
  background-color: #1a1c26 !important;
  color: #ffffff !important;
  border: 1px solid #2d3142 !important;
  border-radius: var(--radius-md) !important;
  padding: 12px 16px !important;
  font-size: 0.92rem !important;
  font-family: var(--font-sans) !important;
  outline: none !important;
  transition: var(--transition) !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4) !important;
  width: 100%;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus,
.filter-input:focus {
  border-color: var(--red-primary) !important;
  box-shadow: 0 0 12px var(--red-glow), inset 0 2px 4px rgba(0, 0, 0, 0.4) !important;
  background-color: #202330 !important;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #1a1c26 inset !important;
  -webkit-text-fill-color: #ffffff !important;
  transition: background-color 5000s ease-in-out 0s !important;
}

/* Typography elements */
h1, h2, h3, .serif-font {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.5px;
}

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

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: var(--font-sans);
}

/* ---------------------------------------------------------
   HEADER & NAVBAR
   --------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  background: rgba(10, 10, 12, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-main);
}

.logo-text span {
  color: var(--red-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--red-primary);
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

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

.btn-social {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}

.btn-social:hover {
  background: var(--red-primary);
  border-color: var(--red-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--red-glow);
}

/* ---------------------------------------------------------
   HERO CAROUSEL
   --------------------------------------------------------- */
.hero-carousel-container {
  margin-top: 76px;
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
  background: #000;
  scroll-margin-top: 76px;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  background-size: cover;
  background-position: center;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.3) 0%, rgba(10, 10, 12, 0.9) 100%),
              radial-gradient(circle at right center, rgba(229, 9, 20, 0.15) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 8% 50px 8%;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 8px;
}

.hero-price {
  font-size: 2.2rem;
  color: var(--text-main);
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-price span {
  color: var(--red-primary);
  font-size: 1.4rem;
}

.carousel-controls {
  position: absolute;
  bottom: 25px;
  right: 8%;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active {
  width: 32px;
  border-radius: 10px;
  background: var(--red-primary);
  box-shadow: 0 0 10px var(--red-glow);
}

/* ---------------------------------------------------------
   SECCIÓN PRESUPUESTO & FINANCIAMIENTO
   --------------------------------------------------------- */
.finance-section {
  padding: 60px 5%;
  display: flex;
  justify-content: center;
  scroll-margin-top: 100px;
}

.finance-card {
  width: 100%;
  max-width: 680px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.finance-tabs {
  display: inline-flex;
  background: #0d0e14;
  border: 1px solid var(--border-color);
  padding: 4px;
  border-radius: 40px;
  margin-bottom: 30px;
}

.finance-tab {
  padding: 10px 28px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  transition: var(--transition);
}

.finance-tab.active {
  background: var(--red-primary);
  color: #ffffff;
  box-shadow: 0 4px 15px var(--red-glow);
}

.finance-content-pane {
  display: none;
  animation: fadeIn 0.4s ease;
}

.finance-content-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.budget-subtitle {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.budget-display-amount {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.slider-container {
  width: 100%;
  margin-bottom: 30px;
}

.custom-range {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #252836;
  outline: none;
}

.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--red-primary);
  border: 3px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 0 12px var(--red-glow);
  transition: var(--transition);
}

.custom-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.btn-primary-action {
  width: 100%;
  padding: 16px;
  border-radius: 40px;
  background: var(--red-primary);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition);
  box-shadow: 0 8px 25px var(--red-glow);
}

.btn-primary-action:hover {
  background: var(--red-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(229, 9, 20, 0.6);
}

.finance-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 14px;
}

.financing-headline {
  font-size: 2rem;
  margin-bottom: 16px;
  color: #fff;
  line-height: 1.3;
}

.financing-headline em {
  font-style: italic;
  color: var(--text-accent);
}

.btn-whatsapp-action {
  width: 100%;
  padding: 16px;
  border-radius: 40px;
  background: var(--whatsapp-green);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  margin-top: 24px;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-action:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

/* ---------------------------------------------------------
   SECCIÓN MARCAS DISPONIBLES Y FILTROS ELEGANTES PERSONALIZADOS
   --------------------------------------------------------- */
.brands-section {
  padding: 40px 5%;
  text-align: center;
  scroll-margin-top: 100px;
}

.section-heading {
  font-size: 2.8rem;
  margin-bottom: 30px;
  color: #fff;
}

.section-heading em {
  font-style: italic;
  color: var(--text-accent);
}

.brands-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto 35px auto;
}

.brand-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  min-width: 130px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.brand-card:hover, .brand-card.active {
  background: var(--bg-card-hover);
  border-color: var(--red-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.brand-card.active {
  border-width: 2px;
  background: linear-gradient(180deg, #1d1f2b 0%, #14151e 100%);
}

.brand-name {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.brand-count {
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.filter-bar-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 700px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.custom-dropdown-container {
  position: relative;
  min-width: 200px;
  flex: 1;
}

.custom-dropdown-trigger {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: #ffffff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.custom-dropdown-trigger:hover, .custom-dropdown-container.open .custom-dropdown-trigger {
  border-color: var(--red-primary);
  background: var(--bg-card-hover);
  box-shadow: 0 0 15px var(--red-glow);
}

.custom-dropdown-trigger i {
  color: var(--text-muted);
  transition: transform 0.3s ease;
  font-size: 0.8rem;
}

.custom-dropdown-container.open .custom-dropdown-trigger i {
  transform: rotate(180deg);
  color: var(--red-primary);
}

.custom-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #141620;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.9), 0 0 20px rgba(229, 9, 20, 0.2);
  z-index: 500;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  max-height: 260px;
  overflow-y: auto;
}

.custom-dropdown-container.open .custom-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-dropdown-option {
  padding: 12px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.custom-dropdown-option:hover, .custom-dropdown-option.selected {
  background: rgba(229, 9, 20, 0.15);
  color: #ffffff;
}

.custom-dropdown-option.selected::after {
  content: '✓';
  color: var(--red-primary);
  font-weight: 700;
}

.btn-filter-submit {
  background: var(--red-primary);
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition);
  box-shadow: 0 4px 15px var(--red-glow);
}

.btn-filter-submit:hover {
  background: var(--red-hover);
  box-shadow: 0 6px 20px var(--red-glow);
  transform: translateY(-2px);
}

/* ---------------------------------------------------------
   CATÁLOGO DE VEHÍCULOS
   --------------------------------------------------------- */
.catalog-section {
  padding: 40px 5% 80px 5%;
  scroll-margin-top: 100px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1280px;
  margin: 0 auto;
}

.vehicle-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.vehicle-card:hover {
  transform: translateY(-6px);
  border-color: var(--red-primary);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 20px rgba(229, 9, 20, 0.2);
}

.vehicle-img-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #0d0e14;
}

.vehicle-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.vehicle-card:hover .vehicle-img {
  transform: scale(1.08);
}

.photo-count-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(10, 10, 12, 0.8);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-featured {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--red-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.vehicle-details {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.vehicle-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.vehicle-specs-row {
  display: flex;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.vehicle-price {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  margin-top: auto;
}

.vehicle-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.btn-card-details {
  background: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
}

.vehicle-card:hover .btn-card-details {
  background: var(--red-primary);
  border-color: var(--red-primary);
  color: #fff;
}

.btn-card-whatsapp {
  background: var(--whatsapp-green);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-card-whatsapp:hover {
  background: var(--whatsapp-hover);
  transform: scale(1.05);
}

/* ---------------------------------------------------------
   GALERÍA DE FOTOS EN MODAL DE DETALLE
   --------------------------------------------------------- */
.modal-gallery-main {
  width: 100%;
  height: 320px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: #000;
  margin-bottom: 14px;
}

.modal-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.gallery-thumbs-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 20px;
}

.gallery-thumb {
  width: 80px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.5;
  border: 2px solid transparent;
  transition: var(--transition);
  flex-shrink: 0;
}

.gallery-thumb:hover, .gallery-thumb.active {
  opacity: 1;
  border-color: var(--red-primary);
}

/* ---------------------------------------------------------
   SECCIÓN MAPA & CÓMO LLEGAR
   --------------------------------------------------------- */
.location-section {
  padding: 60px 5%;
  max-width: 1200px;
  margin: 0 auto;
  scroll-margin-top: 100px;
}

.location-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.map-wrapper {
  width: 100%;
  height: 100%;
  min-height: 380px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.location-info {
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.location-heading {
  font-size: 2.6rem;
  color: #fff;
  margin-bottom: 20px;
}

.location-address {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 340px;
  line-height: 1.5;
}

.schedule-list {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 24px;
}

.schedule-row {
  margin-bottom: 8px;
}

/* ---------------------------------------------------------
   MODALES (Pop-up y Detalle)
   --------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.95), 0 0 30px var(--red-glow);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.btn-close-modal {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.4rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}

.btn-close-modal:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.modal-badge {
  color: var(--red-primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.modal-title {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.2;
}

.modal-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ---------------------------------------------------------
   CONTENEDOR UPLOAD DE GALERÍA (ADMIN)
   --------------------------------------------------------- */
.file-upload-box {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  background: var(--bg-input);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.file-upload-box:hover {
  border-color: var(--red-primary);
  background: rgba(229, 9, 20, 0.05);
}

.file-upload-box input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.upload-icon {
  font-size: 2.2rem;
  color: var(--red-primary);
  margin-bottom: 8px;
}

.upload-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.preview-thumb-container {
  position: relative;
  height: 70px;
  border-radius: 6px;
  overflow: hidden;
}

.preview-thumb-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-remove-thumb {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(0, 0, 0, 0.8);
  color: #ff3344;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ---------------------------------------------------------
   BOTÓN FLOTANTE WHATSAPP
   --------------------------------------------------------- */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
  z-index: 999;
  transition: var(--transition);
  animation: pulseWa 2s infinite;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  background: var(--whatsapp-hover);
}

@keyframes pulseWa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */
.footer {
  background: #070709;
  border-top: 1px solid var(--border-color);
  padding: 50px 5% 30px 5%;
  text-align: center;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------------------------------------------------------
   ESTILOS PANEL ADMINISTRATIVO
   --------------------------------------------------------- */
.admin-header {
  height: 70px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
}

.btn-admin {
  background: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  font-size: 0.88rem;
  font-family: var(--font-sans);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  outline: none;
}

.btn-admin:hover {
  background: var(--red-primary);
  color: #ffffff;
  border-color: var(--red-primary);
  box-shadow: 0 4px 15px var(--red-glow);
}

.admin-body {
  padding: 30px 5%;
  max-width: 1300px;
  margin: 0 auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 35px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.stat-card.highlight {
  border-color: var(--red-primary);
  background: linear-gradient(135deg, #1b1d28 0%, #12131b 100%);
  box-shadow: 0 8px 25px rgba(229, 9, 20, 0.15);
}

.stat-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(229, 9, 20, 0.15);
  color: var(--red-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.stat-info h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}

.admin-table-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th, .admin-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.admin-table th {
  background: #0f1016;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
}

.admin-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.table-thumb {
  width: 54px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
}

.btn-action-icon {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  transition: var(--transition);
}

.btn-action-icon:hover {
  border-color: var(--red-primary);
  color: var(--red-primary);
}

.btn-action-icon.delete:hover {
  background: #ff3344;
  color: #fff;
  border-color: #ff3344;
}

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
  .location-card {
    grid-template-columns: 1fr;
  }
  .map-wrapper {
    height: 280px;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-price {
    font-size: 1.6rem;
  }
  .stat-card.highlight {
    grid-column: span 1;
  }
}

@media (max-width: 650px) {
  .navbar {
    padding: 0 4%;
    height: 66px;
  }
  .hero-carousel-container {
    margin-top: 66px;
    height: 48vh;
    min-height: 330px;
  }
  .logo-text {
    font-size: 1.4rem;
  }
  .nav-links {
    display: none;
  }
  
  /* AJUSTE FINANCIAMIENTO & PRESUPUESTO PARA iPHONE / MÓVIL */
  .finance-section {
    padding: 24px 3%;
  }
  .finance-card {
    padding: 20px 14px;
  }
  .finance-tabs {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
  }
  .finance-tab {
    flex: 1;
    padding: 10px 8px;
    font-size: 0.76rem;
    letter-spacing: 0.5px;
    text-align: center;
    white-space: nowrap;
  }
  .budget-subtitle {
    font-size: 0.78rem;
    letter-spacing: 1px;
    margin-bottom: 4px;
  }
  .budget-display-amount {
    font-size: 2.3rem;
    margin-bottom: 16px;
  }
  .slider-container {
    margin-bottom: 20px;
  }
  .financing-headline {
    font-size: 1.35rem;
    line-height: 1.35;
    margin-bottom: 12px;
  }
  .btn-whatsapp-action {
    padding: 14px 18px;
    font-size: 0.88rem;
    margin-top: 16px;
  }

  .brands-grid {
    gap: 8px;
  }
  .brand-card {
    padding: 12px 14px;
    min-width: 95px;
    flex: 1 1 calc(33% - 8px);
  }
  .filter-bar-row {
    flex-direction: column;
    width: 100%;
  }
  .custom-dropdown-container {
    width: 100%;
  }
  .btn-filter-submit {
    width: 100%;
  }
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  .vehicle-img-wrapper {
    height: 210px;
  }
  .modal-content {
    padding: 24px 16px;
  }
  /* OPTIMIZACIÓN COMPLETA DE PANEL ADMIN EN MÓVIL */
  .admin-header {
    height: auto;
    min-height: 60px;
    padding: 10px 4%;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
  }
  .admin-header .logo-text {
    font-size: 1.15rem;
  }
  .admin-header .header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .admin-header .btn-admin {
    padding: 6px 12px;
    font-size: 0.78rem;
    white-space: nowrap;
  }
  .admin-body {
    padding: 16px 3%;
  }
  .admin-body h2 {
    font-size: 1.5rem !important;
  }
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
  .stat-card {
    padding: 16px;
    gap: 14px;
  }
  .stat-card.highlight {
    grid-column: span 1 !important;
  }
  .stat-icon {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }
  .stat-value {
    font-size: 1.4rem;
  }
  .admin-table-container {
    border-radius: var(--radius-md);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .admin-table th, .admin-table td {
    padding: 10px 12px;
    font-size: 0.8rem;
    white-space: nowrap;
  }
  #vehicle-crud-form {
    grid-template-columns: 1fr !important;
  }
  #vehicle-crud-form .form-group-item {
    grid-column: span 1 !important;
  }
  .floating-whatsapp {
    width: 52px;
    height: 52px;
    font-size: 1.7rem;
    bottom: max(20px, env(safe-area-inset-bottom) + 15px);
    right: 20px;
  }
}
