/* ---------- 1. RESET BÁSICO ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
button { cursor: pointer; border: none; background: none; }

/* Solución para modales ocultos */
[hidden] { display: none !important; }

/* ---------- 2. VARIABLES PREMIUM CLARAS ---------- */
:root {
  --bg-primary: #f8f9fa;
  --bg-secondary: #ffffff;
  --bg-elevated: #ffffff;
  --border-subtle: rgba(0, 0, 0, 0.05);
  --border-strong: rgba(0, 0, 0, 0.1);

  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;

  --accent: #d4af37;
  --accent-dim: #b5952f;
  --accent-soft: rgba(212, 175, 55, 0.1);

  --success: #10b981;
  --success-soft: rgba(16, 185, 129, 0.1);
  --warning: #f59e0b;
  --warning-soft: rgba(245, 158, 11, 0.1);
  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.1);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container-max: 1200px;
  --section-pad: 5rem;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- 3. BASE ---------- */
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.1; color: var(--text-primary); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.2; }
h3 { font-size: 1.2rem; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- 4. UTILIDADES ---------- */
.section-inner { max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem; }
.section-heading { max-width: 620px; margin-bottom: 3rem; }
.section-heading h2 { margin-bottom: 0.75rem; }
.section-heading p { color: var(--text-secondary); font-size: 1.1rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.9rem 1.75rem; border-radius: 100px;
  font-weight: 600; font-size: 0.95rem;
  transition: all 0.3s var(--ease); white-space: nowrap;
}
.btn--gold { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5); }
.btn--outline { border: 2px solid var(--border-strong); color: var(--text-primary); background: transparent; }
.btn--outline:hover { border-color: var(--text-primary); transform: translateY(-2px); }
.btn--ghost { border: 1px solid var(--accent-dim); color: var(--accent-dim); }
.btn--ghost:hover { background: var(--accent-soft); color: var(--accent); }
.btn--text { color: var(--text-secondary); padding: 0.5rem 0.75rem; }
.btn--text:hover { color: var(--text-primary); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--block { width: 100%; }

/* ---------- 5. HEADER Y ACCIONES ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.site-header::before {
  content: ''; position: absolute; inset: 0;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  z-index: -1; pointer-events: none;
}

.header-inner {
  max-width: var(--container-max); margin: 0 auto; padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.logo-mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: var(--accent); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 1.2rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}
.logo-text { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--text-primary); }
.logo-text em { font-style: normal; color: var(--accent); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.header-cta-desktop { display: none; } 

.header-icon-btn {
  position: relative; font-size: 1.4rem; color: var(--text-primary);
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 50%; transition: all 0.2s var(--ease); background: var(--bg-primary);
  border: 1px solid var(--border-subtle); flex-shrink: 0;
}
.header-icon-btn:hover { color: var(--danger); transform: scale(1.05); background: var(--bg-elevated); }
.header-icon-btn .badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--danger); color: #fff;
  font-size: 0.75rem; font-weight: 800;
  width: 22px; height: 22px; display: grid; place-items: center;
  border-radius: 50%; border: 2px solid var(--bg-secondary);
}

.hamburger {
  width: 48px; height: 48px; gap: 6px; 
  display: flex; flex-direction: column; align-items: center; justify-content: center; 
  background: var(--bg-primary); border-radius: 50%; border: 1px solid var(--border-subtle);
  flex-shrink: 0; transition: all 0.3s var(--ease);
}
.hamburger:hover { background: var(--bg-elevated); transform: scale(1.05); }
.hamburger span { width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: all 0.3s var(--ease); }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.main-nav {
  position: fixed; top: 70px; left: 0; 
  width: 100%; height: 100vh; 
  background: var(--bg-secondary); padding: 2rem 1.5rem 8rem; gap: 0.5rem;
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.4s var(--ease); overflow-y: auto;
}
.main-nav.is-open { transform: translateX(0); }
.nav-link {
  padding: 1.25rem 0.5rem; border-bottom: 1px solid var(--border-subtle);
  font-weight: 600; font-size: 1.2rem; transition: color 0.2s var(--ease);
}
.nav-link:hover { color: var(--accent); }
.nav-link--muted { color: var(--text-muted); font-size: 1rem; border: none; margin-top: 1rem; }

/* ---------- 6. HERO ---------- */
.hero { padding: 4rem 0 5rem; }
.hero-inner {
  max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem;
  display: flex; flex-direction: column; gap: 3.5rem;
}
.hero-kicker { color: var(--accent); font-weight: 700; font-size: 0.95rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.hero-text { color: var(--text-secondary); margin: 1.5rem 0 2.5rem; max-width: 50ch; font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-stats {
  display: flex; gap: 2rem; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--border-subtle); flex-wrap: wrap;
}
.hero-stats li { display: flex; flex-direction: column; gap: 0.2rem; }
.stat-number { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--text-primary); }
.stat-label { font-size: 0.9rem; color: var(--text-secondary); font-weight: 500; }

.hero-visual { position: relative; }
.hero-image {
  border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  box-shadow: var(--shadow-lg);
}
.hero-badge {
  position: absolute; left: -1.5rem; bottom: 2rem;
  background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
  border-radius: var(--radius-md); padding: 1rem 1.25rem;
  box-shadow: var(--shadow-md); display: flex; flex-direction: column; gap: 0.25rem; max-width: calc(100% - 2rem);
}
.hero-badge-label { font-size: 0.8rem; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.hero-badge-value { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); }

/* ---------- 7. CATÁLOGO Y FAVORITOS ---------- */
.catalog { padding: var(--section-pad) 0; background: var(--bg-secondary); }
.catalog-controls { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }

.search-bar {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--bg-primary); border: 1px solid transparent; border-radius: var(--radius-md); padding: 1rem 1.25rem;
  transition: all 0.3s var(--ease);
}
.search-bar:focus-within { background: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search-bar i { color: var(--text-muted); font-size: 1.2rem; }
.search-bar input { background: none; border: none; outline: none; width: 100%; color: var(--text-primary); font-size: 1rem; }

.filters { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
.filters select {
  background: var(--bg-primary); border: 1px solid transparent; border-radius: var(--radius-sm); padding: 0.9rem 1rem;
  color: var(--text-primary); font-weight: 500; cursor: pointer; transition: all 0.2s;
  text-overflow: ellipsis; overflow: hidden; white-space: nowrap;
}
.filters select:hover, .filters select:focus { background: #fff; border-color: var(--border-strong); }
#resetFilters { grid-column: 1 / -1; justify-self: start; }
.results-count { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; font-weight: 500; }

.car-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }

.car-card {
  background: var(--bg-elevated); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; cursor: pointer; position: relative;
  box-shadow: var(--shadow-md); transition: all 0.4s var(--ease);
  animation: card-in 0.5s var(--ease) both;
}
.car-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: transparent; }

@keyframes card-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.car-card-image-wrap { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-primary); }
.car-card-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.car-card:hover .car-card-image-wrap img { transform: scale(1.08); }

.car-card-status {
  position: absolute; top: 1rem; left: 1rem; font-size: 0.75rem; font-weight: 700;
  padding: 0.4rem 0.8rem; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.05em;
  backdrop-filter: blur(4px); box-shadow: var(--shadow-sm); z-index: 5;
}
.status-disponible { background: rgba(16, 185, 129, 0.9); color: #fff; }
.status-reservado { background: rgba(245, 158, 11, 0.9); color: #fff; }
.status-vendido { background: rgba(239, 68, 68, 0.9); color: #fff; }

.car-card-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; flex: 1; }
.car-card-title { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.car-card-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; color: var(--text-secondary); font-size: 0.85rem; font-weight: 500; }
.car-card-meta span { display: flex; align-items: center; gap: 0.4rem; background: var(--bg-primary); padding: 0.3rem 0.6rem; border-radius: 6px; }
.car-card-price { font-family: var(--font-display); color: var(--text-primary); font-weight: 800; font-size: 1.4rem; margin-top: auto; padding-top: 1rem; }

/* Corazón dentro del catálogo */
.car-card-fav-btn {
  position: absolute; top: 1rem; right: 1rem; z-index: 10;
  width: 40px; height: 40px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.95); border-radius: 50%;
  color: var(--text-muted); font-size: 1.25rem;
  box-shadow: var(--shadow-md); transition: all 0.2s;
}
.car-card-fav-btn:hover { transform: scale(1.15); color: var(--danger); }
.car-card-fav-btn.is-fav { color: var(--danger); }
.car-card-fav-btn.is-fav i { font-weight: 900; }

/* ---------- 8. MODAL Y LISTA DE FAVORITOS ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(17, 24, 39, 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: flex-end; justify-content: center; padding: 0;
  animation: overlay-in 0.3s var(--ease);
}
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }

.modal-box {
  background: var(--bg-secondary); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%; max-height: 90vh; overflow-y: auto; padding: 2.5rem 1.5rem;
  position: relative; box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
  animation: sheet-in 0.4s var(--ease);
}
@keyframes sheet-in { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-close {
  position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px;
  display: grid; place-items: center; background: var(--bg-primary); border-radius: 50%;
  font-size: 1.1rem; z-index: 2; transition: all 0.2s; cursor: pointer; color: var(--text-secondary);
}
.modal-close:hover { background: var(--border-subtle); color: var(--text-primary); transform: scale(1.1); }

.car-detail-gallery { border-radius: var(--radius-md); overflow: hidden; margin-bottom: 1.5rem; aspect-ratio: 16/9; }
.car-detail-gallery img { width: 100%; height: 100%; object-fit: cover; }
.car-detail-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.car-detail-title { font-size: 1.8rem; }
.car-detail-price { color: var(--text-primary); font-size: 1.6rem; font-weight: 800; }
.car-detail-desc { color: var(--text-secondary); font-size: 1.05rem; margin-bottom: 2rem; line-height: 1.7; }

.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 2rem; }
.spec-item { display: flex; flex-direction: column; gap: 0.3rem; padding: 1rem; background: var(--bg-primary); border-radius: var(--radius-md); }
.spec-item span:first-child { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; font-weight: 600; }
.spec-item span:last-child { font-weight: 700; font-size: 1.05rem; color: var(--text-primary); }

.feature-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2rem; }
.feature-tags span { background: #fff; border: 1px solid var(--border-strong); color: var(--text-secondary); font-size: 0.85rem; font-weight: 500; padding: 0.5rem 1rem; border-radius: 100px; box-shadow: var(--shadow-sm); }

/* Diseño de la lista de favoritos */
.fav-list { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1rem; }
.fav-item { display: flex; gap: 1rem; align-items: center; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border-subtle); }
.fav-item img { width: 90px; height: 65px; object-fit: cover; border-radius: var(--radius-sm); }
.fav-item-info { flex: 1; display: flex; flex-direction: column; gap: 0.2rem; }
.fav-item-title { font-weight: 700; font-size: 1.05rem; }
.fav-item-price { color: var(--text-primary); font-weight: 800; }
.fav-item-remove { color: var(--text-muted); font-size: 1.25rem; padding: 0.5rem; transition: color 0.2s; }
.fav-item-remove:hover { color: var(--danger); }
.fav-empty { color: var(--text-muted); text-align: center; padding: 3rem 1rem; font-size: 1.05rem; }


/* ---------- 9. CONTACTO / FORMULARIO ---------- */
.contact { padding: var(--section-pad) 0; background: var(--bg-secondary); }
.contact-inner { display: flex; flex-direction: column; gap: 3rem; }
.contact-info p { color: var(--text-secondary); margin: 1rem 0 1.5rem; max-width: 42ch; font-size: 1.1rem; }
.contact-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.contact-list li { display: flex; align-items: center; gap: 0.75rem; color: var(--text-secondary); font-size: 1rem; font-weight: 500; }
.contact-list i { color: var(--accent); width: 1.2rem; text-align: center; font-size: 1.1rem; }

.social-links { display: flex; gap: 0.75rem; }
.social-links a {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--border-strong); border-radius: 50%;
  transition: all 0.3s var(--ease); color: var(--text-secondary);
}
.social-links a:hover { border-color: var(--accent); color: #fff; background: var(--accent); transform: translateY(-2px); }

.contact-form { 
  background: var(--bg-elevated); padding: 2.5rem; border-radius: var(--radius-lg); 
  box-shadow: var(--shadow-lg); border: 1px solid var(--border-subtle); display: flex; flex-direction: column; gap: 1.5rem; 
}
.form-field { display: flex; flex-direction: column; gap: 0.5rem; }
.form-field label { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.form-field input, .form-field select, .form-field textarea {
  background: var(--bg-primary); border: 2px solid transparent; border-radius: var(--radius-sm);
  padding: 1rem 1.25rem; color: var(--text-primary); font-size: 1rem; outline: none; transition: all 0.3s var(--ease); width: 100%; resize: vertical;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { background: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.form-field.has-error input, .form-field.has-error select, .form-field.has-error textarea { border-color: var(--danger); background: var(--danger-soft); }
.field-error { font-size: 0.85rem; color: var(--danger); font-weight: 500; min-height: 1em; margin-top: -0.25rem; }

/* ---------- 10. FOOTER ---------- */
.site-footer { padding: var(--section-pad) 0 1.5rem; }
.footer-inner { display: flex; flex-direction: column; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border-subtle); }
.footer-brand p { color: var(--text-secondary); margin-top: 0.75rem; max-width: 38ch; font-size: 0.9rem; }
.footer-map iframe { width: 100%; height: 220px; border: 0; border-radius: var(--radius-md); filter: grayscale(0.4) invert(0.92) contrast(0.9); }
.footer-bottom { text-align: center; color: var(--text-muted); font-size: 0.8rem; margin-top: 1.5rem; }

/* ---------- 11. ADMIN ---------- */
.admin-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1.25rem; background: var(--bg-primary); }
.admin-login-box { width: 100%; max-width: 400px; background: var(--bg-secondary); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 2rem 1.5rem; box-shadow: var(--shadow-lg); }
.admin-login-logo { margin-bottom: 1.75rem; }
.admin-login-box h1 { font-size: 1.5rem; margin-bottom: 0.35rem; }
.admin-login-sub { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1.5rem; }
.login-hint { font-size: 0.78rem; color: var(--text-muted); margin: -0.25rem 0 0.5rem; }
#loginForm { display: flex; flex-direction: column; gap: 1rem; }

.admin-shell { display: flex; min-height: 100vh; background: var(--bg-primary); }
.admin-sidebar-toggle { position: fixed; top: 1rem; left: 1rem; z-index: 60; width: 42px; height: 42px; background: var(--bg-elevated); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); display: grid; place-items: center; }
.admin-sidebar { position: fixed; top: 0; left: 0; bottom: 0; z-index: 55; width: 250px; background: var(--bg-secondary); border-right: 1px solid var(--border-subtle); padding: 1.5rem 1.1rem; display: flex; flex-direction: column; gap: 2rem; transform: translateX(-100%); transition: transform 0.28s var(--ease); overflow-y: auto; }
.admin-sidebar.is-open { transform: translateX(0); }
.admin-nav { display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }
.admin-nav-link { display: flex; align-items: center; gap: 0.7rem; padding: 0.75rem 0.8rem; border-radius: var(--radius-sm); color: var(--text-secondary); font-weight: 500; font-size: 0.92rem; text-align: left; width: 100%; transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.admin-nav-link i { width: 1.1rem; text-align: center; }
.admin-nav-link:hover { background: var(--bg-primary); color: var(--text-primary); }
.admin-nav-link.is-active { background: var(--accent-soft); color: var(--accent); }
.admin-sidebar-footer { display: flex; flex-direction: column; gap: 0.25rem; border-top: 1px solid var(--border-subtle); padding-top: 1rem; }

.admin-content { flex: 1; padding: 4.5rem 1.25rem 3rem; min-width: 0; }
.admin-view-header { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.75rem; }
.admin-view-header h1 { font-size: 1.6rem; margin-bottom: 0.25rem; }
.stat-cards { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: var(--bg-secondary); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 1.25rem; display: flex; align-items: center; gap: 1rem; }
.stat-card-icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: var(--radius-sm); display: grid; place-items: center; font-size: 1.1rem; }
.stat-card-icon--gold { background: var(--accent-soft); color: var(--accent); }
.stat-card-icon--success { background: var(--success-soft); color: var(--success); }
.stat-card-icon--danger { background: var(--danger-soft); color: var(--danger); }
.stat-card-value { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.admin-panel { background: var(--bg-secondary); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 1.25rem; }
.admin-table-toolbar { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.25rem; }
.admin-table-wrapper { display: flex; flex-direction: column; gap: 0.9rem; }
.admin-table { width: 100%; border-collapse: collapse; display: none; }
.car-row-card { background: var(--bg-primary); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 1rem; display: flex; gap: 0.9rem; }
.car-row-card img { width: 84px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.car-row-main { flex: 1; min-width: 0; }
.car-row-title { font-weight: 600; margin-bottom: 0.2rem; }
.car-row-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; color: var(--text-secondary); font-size: 0.8rem; margin-bottom: 0.5rem; }
.car-row-bottom { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--bg-secondary); border: 1px solid var(--border-subtle); transition: all 0.2s; }
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.status-pill { font-size: 0.72rem; font-weight: 600; padding: 0.3rem 0.6rem; border-radius: 100px; text-transform: capitalize; }
.no-results-row { text-align: center; color: var(--text-muted); padding: 2rem 1rem; }

/* ---------- 12. TOASTS ---------- */
.toast-container { position: fixed; bottom: 1.25rem; left: 1.25rem; right: 1.25rem; z-index: 200; display: flex; flex-direction: column; gap: 0.6rem; pointer-events: none; }
.toast { background: var(--bg-elevated); border: 1px solid var(--border-strong); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); padding: 1rem; font-size: 0.9rem; display: flex; align-items: center; gap: 0.75rem; box-shadow: var(--shadow-lg); animation: toast-in 0.3s var(--ease); font-weight: 500; }
.toast--success { border-left-color: var(--success); }
.toast--error { border-left-color: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }


/* ---------- 13. RESPONSIVE (TABLET/ESCRITORIO) ---------- */
@media (min-width: 768px) {
  .filters { grid-template-columns: repeat(4, 1fr); align-items: center; }
  #resetFilters { grid-column: auto; }
  .car-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
  
  .modal-overlay { align-items: center; padding: 2rem; }
  .modal-box { border-radius: var(--radius-lg); max-width: 700px; padding: 3rem; }
  .modal-box--small { max-width: 450px; padding: 2rem; }
  .hero-badge { left: -2rem; bottom: -2rem; }
  
  .contact-inner { flex-direction: row; align-items: flex-start; }
  .contact-info, .contact-form { flex: 1; }
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .footer-brand { max-width: 320px; }
  .footer-map { flex: 1; max-width: 420px; }

  .admin-table { display: table; }
  .car-row-card { display: none; }
  .admin-table thead { text-align: left; }
  .admin-table th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); font-weight: 600; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border-subtle); }
  .admin-table td { padding: 0.75rem; border-bottom: 1px solid var(--border-subtle); vertical-align: middle; }
  .admin-table img { width: 64px; height: 46px; object-fit: cover; border-radius: var(--radius-sm); }
}

@media (min-width: 1024px) {
  .header-cta-desktop { display: inline-flex; }
  .hamburger { display: none; }
  
  .main-nav {
    position: static; flex-direction: row; transform: none; padding: 0;
    background: none; gap: 2rem; overflow: visible; width: auto; height: auto;
  }
  .nav-link { border: none; padding: 0.5rem 0; font-size: 0.95rem; }
  .nav-link--muted { margin: 0 0 0 1rem; padding-left: 1.5rem; border-left: 1px solid var(--border-strong); }
  
  .hero-inner { flex-direction: row; align-items: center; gap: 4rem; }
  .hero-copy { flex: 1; } .hero-visual { flex: 1; }
  .car-grid { grid-template-columns: repeat(3, 1fr); }
  .spec-grid { grid-template-columns: repeat(3, 1fr); }

  .admin-sidebar-toggle { display: none; }
  .admin-sidebar { position: sticky; transform: none; top: 0; height: 100vh; }
  .admin-content { padding: 2.5rem 3rem; }
}