/* ============================================================
   CochesMallorca — Main Stylesheet
   Design tokens: wine primary #C12530 / wine dark #8E1019, Sora + Instrument Sans
   ============================================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --wine-primary: #C12530;
  --wine-dark: #8E1019;
}
body {
  margin: 0;
  background: #E7E7E9;
  font-family: 'Instrument Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #17181A;
}
h1, h2, h3, h4, h5 {
  font-family: 'Sora', sans-serif;
  margin: 0;
  letter-spacing: -0.02em;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
ul { list-style: none; padding: 0; margin: 0; }

/* ---- Reusable Loaders ---- */
.app-loader[hidden] {
  display: none;
}
.app-loader--global {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem;
  background: rgba(231, 231, 233, 0.96);
  color: var(--wine-dark);
}
html:not(.loader-js-ready) .app-loader--global {
  animation: app-loader-no-script 6s steps(1, end) forwards;
}
.app-loader--inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 8rem;
  padding: 1.5rem;
  color: var(--wine-dark);
}
.app-loader-spinner {
  width: 2rem;
  height: 2rem;
  border: 0.1875rem solid rgba(142, 16, 25, 0.2);
  border-top-color: var(--wine-primary);
  border-radius: 50%;
  animation: app-loader-spin 0.9s linear infinite;
}
.app-loader-text {
  font-size: 0.9375rem;
  font-weight: 600;
}
@keyframes app-loader-spin {
  to { transform: rotate(360deg); }
}
@keyframes app-loader-no-script {
  0%, 99% { opacity: 1; visibility: visible; pointer-events: auto; }
  100% { opacity: 0; visibility: hidden; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) {
  .app-loader-spinner {
    animation-duration: 0s;
  }
}

/* ---- Hero Animations ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.hero-title {
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}
.hero-search {
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}
.hero-header {
  animation: fadeIn 0.6s ease 0.1s both;
}

/* ---- Micro-interacciones ---- */
.hover-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease !important;
}
.hover-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.08);
}
.hover-card:active {
  transform: translateY(-1px) scale(0.98);
}
.hover-lift {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.hover-lift:hover {
  transform: translateY(-2px);
}
.btn-press:active {
  transform: scale(0.96);
}

/* ---- Category Cards ---- */
.cat-card {
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease !important;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.10);
}
.cat-card:active {
  transform: translateY(-1px) scale(0.97);
}
.cat-card.featured {
  background: linear-gradient(135deg, #E01B27 0%, #B0121F 100%);
  border-color: #E01B27 !important;
  color: #fff;
}
.cat-card.featured .cat-count,
.cat-card.featured .cat-arrow {
  color: rgba(255,255,255,0.75) !important;
}

/* ---- Dealer Cells ---- */
.dealer-cell {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.dealer-cell:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.10);
}
.dealer-carousel {
  position: relative;
}
.dealer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.dealer-cell.is-hidden {
  display: none !important;
}
.dealer-carousel-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.dealer-carousel-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #E4E4E7;
  background: rgba(255,255,255,0.9);
  color: #17181A;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.dealer-carousel-btn:hover {
  background: var(--wine-primary);
  border-color: var(--wine-primary);
  color: #fff;
}
.dealer-carousel-btn:disabled {
  opacity: 0.45;
  cursor: default;
}
.dealer-carousel-btn:disabled:hover {
  background: rgba(255,255,255,0.9);
  border-color: #E4E4E7;
  color: #17181A;
}
.dealer-carousel-status {
  min-width: 58px;
  text-align: center;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #6B6E73;
}

/* ---- Language Switcher ---- */
.language-switcher {
  position: relative;
}
.language-switcher-trigger {
  height: 42px;
  min-width: auto;
  padding: 0 4px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.language-switcher-trigger:hover {
  background: transparent;
  border-color: transparent;
}
.language-switcher-trigger[aria-expanded="true"] {
  background: transparent;
  border-color: transparent;
}
.language-switcher-trigger [data-language-current-flag] {
  display: none;
}
.language-current-code {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.language-chevron {
  opacity: 0.8;
  transition: transform 0.2s ease;
}
.language-switcher-trigger[aria-expanded="true"] .language-chevron {
  transform: rotate(180deg);
}
.language-switcher-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 18px;
  background: rgba(23, 24, 26, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.24);
}
.language-option {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: rgba(255,255,255,0.92);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.language-option:hover {
  background: rgba(255,255,255,0.08);
}
.language-option.is-active {
  background: rgba(224,27,39,0.16);
  color: #fff;
}
.language-flag {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.14);
}
.language-flag-icon {
  font-size: 22px;
  line-height: 1;
}
.language-flag-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.favorites-header-link {
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.favorites-header-link:hover,
.favorites-header-link:focus-visible {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.32);
}
.favorites-header-heart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}
.favorites-header-count {
  position: absolute;
  top: -0.4em;
  right: -0.55em;
  min-width: 0;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 0.6875rem;
  line-height: 1;
  text-align: center;
  pointer-events: none;
}

/* ---- Catalog Sidebar ---- */
.catalog-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.catalog-page {
  padding-top: 8.625rem;
}
.catalog-sidebar {
  position: sticky;
  top: 112px;
}
.catalog-sidebar-card {
  padding: 22px 18px;
  border: 1px solid #ECECEE;
  border-radius: 24px;
  background: #17181A;
  color: #fff;
  box-shadow: 0 20px 40px rgba(0,0,0,0.10);
}
.catalog-sidebar-header h3 {
  font-size: 24px;
  font-weight: 800;
}
.catalog-sidebar-kicker {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.56);
}
.catalog-sidebar-header p {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
}
.catalog-sidebar-groups {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}
.catalog-sidebar-group {
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.catalog-sidebar-group:first-child {
  padding-top: 0;
  border-top: none;
}
.catalog-sidebar-brand {
  display: inline-block;
  margin-bottom: 10px;
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.catalog-sidebar-brand.is-active {
  color: #FFD7DB;
}
.catalog-sidebar-models {
  display: grid;
  gap: 6px;
}
.catalog-sidebar-model {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  line-height: 1.35;
  transition: transform 0.2s ease, color 0.2s ease;
}
.catalog-sidebar-model:hover,
.catalog-sidebar-model.is-active {
  transform: translateX(3px);
  color: #fff;
}
.catalog-sidebar-model-arrow {
  color: rgba(255,255,255,0.38);
  font-size: 18px;
  line-height: 1;
}
.catalog-results {
  min-width: 0;
}
.catalog-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.catalog-active-filter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FFF7F7;
  border: 1px solid #E01B27;
  color: #E01B27;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 100px;
}
.catalog-active-filter.is-static {
  background: #F2F2F3;
  border-color: #E4E4E7;
  color: #52555A;
}

/* ---- Search Bar ---- */
.search-wrap {
  position: relative;
}
.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
  color: #B5B7BB;
}
.search-input {
  width: 100%;
  height: 60px;
  padding: 0 4px 0 50px;
  border: 1px solid rgba(255,255,255,0.25);
  border-right: none;
  border-radius: 16px 0 0 16px;
  font-size: 15px;
  font-family: 'Instrument Sans', sans-serif;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  color: #17181A;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.search-input:focus {
  outline: none;
  background: rgba(255,255,255,0.96);
  border-color: rgba(255,255,255,0.5);
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
}
.search-input::placeholder {
  color: #B5B7BB !important;
  opacity: 0.8 !important;
}
.search-btn {
  height: 60px;
  width: 60px;
  padding: 0;
  border: none;
  border-radius: 0 16px 16px 0;
  background: linear-gradient(180deg, var(--wine-primary) 0%, var(--wine-dark) 100%);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(142,16,25,0.30);
  transition: background 0.2s ease, transform 0.15s ease;
  flex-shrink: 0;
}
.search-btn:hover {
  background: var(--wine-dark);
}
.search-btn:active {
  transform: scale(0.96);
}
.search-btn svg {
  transition: transform 0.2s ease;
}
.search-btn:hover svg {
  transform: translateX(2px);
}

/* ---- Home Filter Dropdown ---- */
/* El panel cuelga del hero-search y debe verse por encima del contenido del hero. */
.hero-search {
  position: relative;
  z-index: 100;
}
.search-filter-btn {
  height: 60px;
  width: 56px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.25);
  border-left-color: rgba(23,24,26,0.08);
  border-radius: 0;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #17181A;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}
.search-filter-btn:hover {
  background: #fff;
  color: var(--wine-primary);
}
.home-filter-panel[hidden] {
  display: none;
}
.home-filter-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 100%;
  max-width: 720px;
  background: #fff;
  border: 1px solid #ECECEE;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
  z-index: 1000;
  display: flex;
  overflow: hidden;
}
.home-filter-menu {
  width: 200px;
  flex-shrink: 0;
  background: #F7F7F8;
  border-right: 1px solid #ECECEE;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.home-filter-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #17181A;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.home-filter-cat:hover,
.home-filter-cat.is-active {
  background: #fff;
  color: #E01B27;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.home-filter-cat::after {
  content: '›';
  color: #B5B7BB;
  font-size: 16px;
}
.home-filter-sub {
  flex: 1;
  min-width: 0;
  max-height: 380px;
  overflow-y: auto;
  padding: 18px 20px;
}
.home-filter-sub-title {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93969B;
  margin-bottom: 12px;
}
.home-filter-sub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 14px;
}
.home-filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: #17181A;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.home-filter-item:hover {
  background: #F6F6F7;
  color: #E01B27;
}
.home-filter-item small {
  font-size: 11px;
  color: #B5B7BB;
  flex-shrink: 0;
}
.home-filter-sub-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.home-filter-model-group {
  margin-bottom: 4px;
}
.home-filter-model-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #17181A;
  padding: 8px 10px;
  border-radius: 8px;
  text-align: left;
  list-style: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.home-filter-model-brand::-webkit-details-marker {
  display: none;
}
.home-filter-model-brand:hover {
  background: #F6F6F7;
  color: #E01B27;
}
.home-filter-model-group[open] .home-filter-model-chevron {
  transform: rotate(180deg);
}
.home-filter-model-chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.home-filter-model-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 2px 0 2px 12px;
}

/* ---- Filter Pills ---- */
.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-pill {
  background: #fff;
  border: 1px solid #E4E4E7;
  color: #52555A;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 100px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.filter-pill:hover {
  border-color: #E01B27;
  color: #E01B27;
}
.filter-pill.active {
  background: #17181A;
  color: #fff;
  border-color: #17181A;
}

/* ---- Car Card ---- */
.car-card {
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.16);
  min-width: 0;
  container: car-card / inline-size;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.car-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0,0,0,0.12);
}
.car-card:active {
  transform: translateY(-1px) scale(0.98);
}
.featured-cars .car-card-img { height: auto; }
.car-card-img {
  position: relative;
  height: auto;
  aspect-ratio: 372 / 264;
  background: #F4F4F5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.car-card-img::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 24%;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.16));
  pointer-events: none;
  z-index: 0;
}
.car-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.car-card-img img.vehicle-image {
  object-fit: cover;
  background: #F4F4F5;
}
.car-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(24,26,27,0.88);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 5px;
  z-index: 1;
}
.car-tags {
  position: absolute;
  top: 0.625rem;
  left: 0.625rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.375rem;
  pointer-events: none;
}
.car-tags .car-tag {
  position: static;
}
.car-tag-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}
.car-tag-star__icon {
  flex: 0 0 auto;
  width: 0.875rem;
  height: 0.875rem;
}
.car-tag-nuevo {
  background: #0F8A43;
}
.car-tag-km0 {
  background: #1B6FD1;
}
.car-tag-ocasion {
  background: rgba(24,26,27,0.88);
}
.car-fav {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wine-primary);
  font-size: 16px;
  line-height: 1;
  font-family: inherit;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  cursor: pointer;
  z-index: 1;
  transition: background 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .car-fav:hover {
    background: #E01B27;
    color: #fff;
  }
}
.car-fav.is-active {
  background: #E01B27;
  color: #fff;
}
.car-fav:focus-visible {
  outline: 3px solid rgba(224,27,39,0.38);
  outline-offset: 2px;
}
.car-card .car-fav {
  top: auto;
  bottom: 12px;
}
.car-card-actions {
  display: grid;
  grid-template-columns: 1fr 3.875rem;
  gap: 0.625rem;
  width: 100%;
  margin-top: 0.75rem;
}
.car-share,
.car-contact {
  width: 100%;
  min-height: 2.875rem;
  margin-top: 0;
  padding: 0.5rem 0.625rem;
  border-radius: 0.4375rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-sizing: border-box;
  font-family: 'Sora', sans-serif;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.car-contact {
  border: 0;
  background: linear-gradient(180deg, var(--wine-primary) 0%, var(--wine-dark) 100%);
  color: #fff;
  font-size: 0.96875rem;
  font-weight: 600;
}
.car-contact:hover {
  background: var(--wine-dark);
}
.car-share {
  border: 0.09375rem solid #C9CFD2;
  background: #fff;
  color: #17181A;
  font-size: 0.8125rem;
  font-weight: 600;
}
.car-share:hover {
  border-color: var(--wine-primary);
  background: #FFF5F6;
}
.car-share > span {
  display: none;
}
.car-share:focus-visible,
.car-contact:focus-visible {
  outline: 0.1875rem solid rgba(193, 37, 48, 0.32);
  outline-offset: 0.125rem;
}
.car-card.is-featured .car-share {
  border: 0.09375rem solid #C9CFD2;
  background: linear-gradient(180deg, var(--wine-primary) 0%, var(--wine-dark) 100%);
  color: #fff;
}
.car-card.is-featured .car-share:hover {
  border-color: transparent;
  background: var(--wine-dark);
}
.car-card.is-featured .car-contact {
  background: #fff;
  color: #181a1b;
}
.car-card.is-featured .car-contact:hover {
  background: #f5f5f5;
}
.car-card-body {
  padding: 16px 18px 18px;
  padding: clamp(10px, 4.6cqw, 16px) clamp(12px, 5.2cqw, 18px) clamp(12px, 5.2cqw, 18px);
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto 1fr;
  column-gap: 0.75rem;
  row-gap: clamp(10px, 4cqw, 14px);
  flex: 1;
}
.car-card-name {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 16px;
  font-size: clamp(16px, 5.6cqw, 19px);
  line-height: 1.37;
  min-height: calc(1.37em * 2);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.car-card-meta {
  display: contents;
}
.car-dealer-logo {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  flex: 0 0 clamp(2rem, 8vw, 2.75rem);
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(2rem, 8vw, 2.75rem);
  aspect-ratio: 1 / 1;
  border: 1px solid #e4e7e9;
  border-radius: 6px;
  background: #fff;
  box-sizing: border-box;
  overflow: hidden;
}
.car-dealer-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.car-card.is-featured .car-dealer-logo {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.94);
}
.car-specs {
  grid-column: 1 / -1;
  grid-row: 2;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  gap: clamp(4px, 1.8cqw, 6px);
  padding-bottom: clamp(10px, 4cqw, 14px);
  border-bottom: 1px solid #eceff1;
}
.car-spec {
  min-width: 0;
  background: #eef1f2;
  color: #41484c;
  font-size: 12px;
  font-size: clamp(12px, 3.9cqw, 13.5px);
  font-weight: 500;
  padding: 4px 10px;
  padding: clamp(3px, 1.4cqw, 5px) clamp(8px, 3.2cqw, 12px);
  border-radius: 5px;
  overflow-wrap: anywhere;
}
.car-price-area {
  grid-column: 1 / -1;
  grid-row: 3;
  min-width: 0;
  margin-top: auto;
}
.car-price {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 20px;
  font-size: clamp(20px, 7.6cqw, 27px);
  line-height: 1.2;
  letter-spacing: -0.4px;
  color: var(--wine-primary);
  white-space: nowrap;
}
.car-price-label {
  margin-left: 0.25rem;
  font-size: 12.5px;
  font-size: clamp(12.5px, 4.2cqw, 13.5px);
  color: #6b7276;
  font-weight: 500;
}
.car-finance {
  font-size: 13px;
  font-size: clamp(11px, 3.9cqw, 13px);
  color: #6B6E73;
  margin-top: 3px;
}
.car-finance strong {
  color: #17181A;
  font-weight: 600;
}

/* ---- Featured card: animated red border (first card) ---- */
.car-card.is-featured {
  position: relative;
  z-index: 0;
  border: 0.125rem solid #ff1744;
  background: linear-gradient(180deg, #C12530 0%, #8E1019 100%);
  box-shadow: 0 0.75rem 1.75rem rgba(82, 8, 15, 0.2);
}
.car-card.is-featured::before {
  content: "";
  position: absolute;
  inset: -200%;
  background: conic-gradient(from 0deg, transparent, #ff1744, transparent 25%);
  animation: rotB 4s linear infinite;
  z-index: -1;
}
.car-card.is-featured::after {
  content: "";
  position: absolute;
  inset: 0.1875rem;
  background: linear-gradient(180deg, #C12530 0%, #8E1019 100%);
  border-radius: 0.6875rem;
  z-index: -1;
}
/* Texto y elementos internos adaptados al fondo rojo */
.car-card.is-featured .car-card-img {
  position: relative;
  z-index: 1;
  background: repeating-linear-gradient(135deg, #A81B26 0 10px, #9A1520 10px 20px);
}
.car-card.is-featured .car-card-name {
  color: #fff;
}
.car-card.is-featured .car-spec {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.car-card.is-featured .car-price {
  color: #fff;
}
.car-card.is-featured .car-price-label {
  color: rgba(255, 255, 255, 0.72);
}
.car-card.is-featured .car-specs {
  border-bottom-color: rgba(255, 255, 255, 0.22);
}
.car-card.is-featured .car-finance {
  color: rgba(255, 255, 255, 0.85);
}
.car-card.is-featured .car-finance strong {
  color: #fff;
}
.car-card.is-featured .car-fav:not(.is-active) {
  background: rgba(255, 255, 255, 0.95);
  color: #C12530;
}
.car-card.is-featured .car-fav.is-active {
  background: #E01B27;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92), 0 2px 8px rgba(0, 0, 0, 0.22);
}
@media (hover: hover) and (pointer: fine) {
  .car-card.is-featured .car-fav:hover {
    background: #E01B27;
    color: #fff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92), 0 2px 8px rgba(0, 0, 0, 0.22);
  }
}
@keyframes rotB {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .car-card.is-featured::before {
    animation: none;
  }
}

/* ---- Quick Access Cards ---- */
.quick-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid #ECECEE;
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.quick-card:hover {
  border-color: #E01B27;
  background: #FFF7F7;
}
.quick-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: #FDECEC;
  color: #E01B27;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}
.quick-card-title {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 16px;
}
.quick-card-sub {
  font-size: 13px;
  color: #6B6E73;
  margin-top: 2px;
}

/* ---- Section Header ---- */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-header h2 {
  font-size: 26px;
  font-weight: 700;
}
.section-link {
  font-size: 14px;
  font-weight: 600;
  color: #E01B27;
  transition: opacity 0.2s ease;
}
.section-link:hover {
  opacity: 0.8;
}

/* ---- Newsletter ---- */
.newsletter-section {
  margin: 52px 10% 0;
  padding: 34px 40px;
  background: linear-gradient(135deg, rgba(255,255,255,0.96) 0%, rgba(248,248,250,0.98) 100%);
  border: 1px solid #ECECEE;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.05);
}
.newsletter-copy {
  max-width: 480px;
}
.newsletter-title {
  font-weight: 800;
  font-size: 26px;
  color: #17181A;
}
.newsletter-text {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.65;
  color: #52555A;
}
.newsletter-note {
  margin-top: 12px;
  font-size: 13px;
  color: #93969B;
}
.newsletter-form {
  min-width: 420px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 1fr);
  gap: 10px;
  align-items: center;
}
.newsletter-input {
  height: 50px;
  padding: 0 16px;
  border: 1.5px solid #E4E4E7;
  border-radius: 14px;
  font-size: 14px;
  font-family: 'Instrument Sans', sans-serif;
  background: #fff;
}
.newsletter-input-interest {
  grid-column: 1 / -1;
}
.newsletter-input-email {
  width: 100%;
}
.newsletter-input:focus {
  outline: none;
  border-color: #E01B27 !important;
  box-shadow: 0 0 0 3px rgba(224,27,39,0.15);
}
.newsletter-btn {
  height: 50px;
  padding: 0 22px;
  background: linear-gradient(180deg, var(--wine-primary) 0%, var(--wine-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}
.newsletter-btn:hover {
  background: var(--wine-dark);
}

/* ---- Contact page ---- */
.contact-page {
  position: relative;
  padding: calc(90px + 4%) 5% 72px;
  background:
    radial-gradient(900px 420px at 50% -120px, rgba(224, 27, 39, 0.10), transparent 70%),
    linear-gradient(180deg, #FAFAFB 0%, #fff 45%);
}
.contact-shell {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}
.contact-hero {
  text-align: center;
  margin-bottom: 28px;
}
.contact-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: #FFF1F1;
  color: #E01B27;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.contact-heading {
  font-family: 'Sora', sans-serif;
  font-size: 38px;
  font-weight: 800;
  line-height: 1.12;
  color: #17181A;
  margin: 16px 0 0;
}
.contact-lead {
  font-size: 15px;
  line-height: 1.65;
  color: #6B6E73;
  max-width: 520px;
  margin: 12px auto 0;
}
.contact-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 18px;
}
.contact-alert svg { flex-shrink: 0; margin-top: 1px; }
.contact-alert p { margin: 0; }
.contact-alert-success {
  background: #E8F5E9;
  color: #1B5E20;
}
.contact-alert-error {
  background: #FDECEA;
  color: #B3261E;
}
.contact-card {
  background: #fff;
  border: 1px solid #ECECEE;
  border-radius: 22px;
  padding: 32px;
  box-shadow: 0 24px 60px -32px rgba(23, 24, 26, 0.35);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.contact-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.contact-field label {
  font-size: 13px;
  font-weight: 600;
  color: #17181A;
}
.contact-input {
  height: 52px;
  width: 100%;
  padding: 0 16px;
  border: 1.5px solid #E8E8EB;
  border-radius: 14px;
  font-size: 14px;
  font-family: 'Instrument Sans', sans-serif;
  color: #17181A;
  background: #FBFBFC;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.contact-input::placeholder { color: #A9ACB1; }
.contact-textarea {
  height: auto;
  min-height: 150px;
  padding: 14px 16px;
  line-height: 1.6;
  resize: vertical;
}
.contact-input:hover { border-color: #DCDCE0; }
.contact-input:focus {
  outline: none;
  background: #fff;
  border-color: #E01B27;
  box-shadow: 0 0 0 4px rgba(224, 27, 39, 0.12);
}
.contact-btn {
  height: 54px;
  width: 100%;
  padding: 0 24px;
  background: linear-gradient(180deg, var(--wine-primary) 0%, var(--wine-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 14px 28px -14px rgba(142, 16, 25, 0.75);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-btn:hover {
  background: var(--wine-dark);
  transform: translateY(-1px);
  box-shadow: 0 18px 32px -14px rgba(142, 16, 25, 0.8);
}
.contact-btn svg { transition: transform 0.2s ease; }
.contact-btn:hover svg { transform: translateX(3px); }
.contact-privacy {
  font-size: 12px;
  color: #93969B;
  text-align: center;
  margin: 0;
}
.sell-photos {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.125rem;
  border: 0.0625rem solid #ECECEE;
  border-radius: 0.875rem;
  background: #FBFBFC;
}
.sell-photos-title {
  margin: 0;
  color: #17181A;
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 700;
}
.sell-photos-help,
.sell-photos-status {
  margin: 0;
  color: #6B6E73;
  font-size: 0.8125rem;
  line-height: 1.5;
}
.sell-photos-control {
  display: flex;
  flex-direction: column;
  gap: 0.4375rem;
}
.sell-photos-control label {
  color: #17181A;
  font-size: 0.8125rem;
  font-weight: 600;
}
.sell-photos-input {
  width: 100%;
  padding: 0.625rem;
  border: 0.09375rem solid #E8E8EB;
  border-radius: 0.75rem;
  box-sizing: border-box;
  color: #52555A;
  background: #fff;
  font: inherit;
  font-size: 0.8125rem;
}
.sell-photos-input::file-selector-button {
  margin-right: 0.625rem;
  padding: 0.5rem 0.75rem;
  border: 0;
  border-radius: 0.5rem;
  color: #fff;
  background: var(--wine-primary);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}
.sell-photos-input:focus-visible {
  outline: 0.1875rem solid rgba(224, 27, 39, 0.3);
  outline-offset: 0.125rem;
}
.sell-photos-status.is-error {
  color: #B3261E;
  font-weight: 600;
}
.sell-photo-previews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr));
  gap: 0.75rem;
  margin: 0.375rem 0 0;
  padding: 0;
  list-style: none;
}
.sell-photo-previews li {
  min-width: 0;
}
.sell-photo-previews figure {
  margin: 0;
  overflow: hidden;
  border: 0.0625rem solid #ECECEE;
  border-radius: 0.75rem;
  background: #fff;
}
.sell-photo-previews img {
  display: block;
  width: 100%;
  height: clamp(7rem, 20vw, 10rem);
  object-fit: cover;
}
.sell-photo-previews figcaption {
  overflow: hidden;
  padding: 0.5rem 0.625rem;
  color: #52555A;
  font-size: 0.75rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contact-channels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.contact-channel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid #ECECEE;
  border-radius: 16px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  min-width: 0;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-channel:hover {
  border-color: #E01B27;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -18px rgba(23, 24, 26, 0.45);
}
.contact-channel-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #FFF1F1;
  color: #E01B27;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-channel-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.contact-channel-label {
  font-size: 12px;
  color: #93969B;
  font-weight: 500;
}
.contact-channel-value {
  font-size: 14px;
  font-weight: 600;
  color: #17181A;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 1024px) {
  .contact-channels { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .contact-page { padding: 100px 5% 52px; }
  .contact-heading { font-size: 28px; }
  .contact-card { padding: 22px; border-radius: 18px; }
  .contact-field-row { grid-template-columns: 1fr; }
}
@media (max-width: 48rem) {
  .sell-photos { padding: 1rem; }
  .sell-photo-previews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Footer ---- */
.footer {
  margin-top: 52px;
  background: #17181A;
  color: rgba(255,255,255,0.72);
  padding: 48px 10% 0;
}
.footer-brands-section,
.footer-features-section {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-features-section:last-of-type {
  margin-bottom: 0;
}
.footer-features-menu {
  padding: 10px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 24px;
}
.footer-features-menu[hidden] {
  display: none !important;
}
.footer-features-group {
  min-width: 0;
}
.footer-features-title {
  margin: 0 0 8px;
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.footer-features-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.footer-features-items .footer-link {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
}
.footer-features-items .footer-link:hover {
  color: #fff;
}
.footer-columns {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 32px;
}
.footer-brand {
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  color: #fff;
  margin-bottom: 12px;
}
.footer-brand strong {
  font-weight: 800;
}
.footer-brand span {
  font-weight: 500;
}
.footer-desc {
  font-size: 13px;
  line-height: 1.7;
  margin: 0 0 16px;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.footer-social-icon:hover {
  background: rgba(255,255,255,0.15);
}
.footer-links {
  display: flex;
  gap: 56px;
  font-size: 14px;
  flex-wrap: wrap;
}
.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links-col span:first-child {
  color: #fff;
  font-weight: 600;
}
.footer-brands {
  position: relative;
}
.footer-brands-trigger {
  padding: 0;
  border: none;
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.footer-brands-trigger svg {
  color: rgba(255,255,255,0.6);
  transition: transform 0.2s ease;
}
.footer-brands-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.footer-brands-menu {
  padding: 10px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 24px;
  max-height: 400px;
  overflow-y: auto;
}
.footer-brands-menu[hidden] {
  display: none !important;
}
.footer-brands-group {
  min-width: 0;
}
.footer-brands-title {
  display: inline-block;
  margin-bottom: 4px;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.footer-brands-models {
  display: grid;
  gap: 2px;
}
.footer-brands-models .footer-link {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
}
.footer-link {
  transition: color 0.2s ease;
}
.footer-link:hover {
  color: #fff;
}
.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  text-align: center;
}

/* ---- Detail Page ---- */
.detail-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
  min-width: 0;
  margin-bottom: 24px;
  font-size: 13px;
  color: #93969B;
}
.detail-breadcrumb-current {
  min-width: 0;
  color: #17181A;
  overflow-wrap: anywhere;
}
.detail-breadcrumb-separator {
  color: #93969B;
}
.detail-main-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: #F4F4F5;
}
.detail-main-image-trigger {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.detail-main-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-main-img.vehicle-image,
.detail-thumb img.vehicle-image,
.rental-card-media img.vehicle-image {
  object-fit: contain;
  background: #F4F4F5;
}
.rental-card-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  background: #F4F4F5;
}
.rental-card-media img {
  width: 100%;
  height: 100%;
}
.detail-gallery {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.detail-thumb {
  flex: 0 0 84px;
  width: 84px;
  aspect-ratio: 4 / 3;
  height: auto;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: #F4F4F5;
  cursor: pointer;
  opacity: 0.6;
  scroll-snap-align: start;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.detail-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-lightbox[hidden] {
  display: none;
}
.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 32px);
}
.photo-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 9, 12, 0.82);
}
.photo-lightbox-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 1200px);
  max-height: calc(100vh - 24px);
  overflow: hidden;
  color: #fff;
  background: #17181A;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}
.photo-lightbox-header,
.photo-lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
  padding: 14px 18px;
}
.photo-lightbox-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.photo-lightbox-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.photo-lightbox-close,
.photo-lightbox-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}
.photo-lightbox-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
}
.photo-lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: min(72vh, 760px);
  min-height: 280px;
  overflow: hidden;
  background: #090A0C;
}
.photo-lightbox-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
}
.photo-lightbox-canvas:active {
  cursor: grabbing;
}
.photo-lightbox-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.photo-lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 32px;
  line-height: 1;
  transform: translateY(-50%);
}
.photo-lightbox-prev { left: 16px; }
.photo-lightbox-next { right: 16px; }
.photo-lightbox-footer {
  color: #C9CBCE;
  font-size: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.photo-lightbox-hint {
  text-align: right;
}
body.photo-lightbox-open {
  overflow: hidden;
}
.detail-thumb:hover,
.detail-thumb.active {
  opacity: 1;
}
.detail-thumb.active,
.detail-thumb[aria-current="true"] {
  border-color: #E01B27;
}
.detail-thumb:focus-visible {
  outline: 3px solid rgba(224,27,39,0.38);
  outline-offset: 2px;
}
.detail-title {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.detail-price-block {
  margin-bottom: 20px;
}
.detail-price {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 32px;
  line-height: 1.15;
  color: #E01B27;
  overflow-wrap: anywhere;
}
.detail-cta {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  font-family: 'Sora', sans-serif;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.detail-cta-primary {
  border: 0;
  background: linear-gradient(180deg, var(--wine-primary) 0%, var(--wine-dark) 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.detail-cta-secondary {
  margin-top: 8px;
  background: #fff;
  border: 1.5px solid #E4E4E7;
  color: #17181A;
  font-size: 14px;
  font-weight: 600;
}
.detail-share-btn {
  margin-top: 8px;
  background: #fff;
  border: 1.5px solid #E4E4E7;
  color: #17181A;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.detail-share-btn:hover {
  border-color: var(--wine-primary);
  color: var(--wine-primary);
}

/* ---- Vehicle Contact Modal ---- */
.vehicle-contact-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2rem);
}
.vehicle-contact-modal[hidden] { display: none; }
.vehicle-contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 16, 18, 0.55);
  backdrop-filter: blur(0.1875rem);
  -webkit-backdrop-filter: blur(0.1875rem);
}
.vehicle-contact-dialog {
  position: relative;
  width: min(100%, 34rem);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 0.0625rem solid #ECECEE;
  border-radius: 1.125rem;
  background: #fff;
  box-shadow: 0 1.875rem 4.375rem rgba(0, 0, 0, 0.28);
  animation: vehicleContactModalIn 0.2s ease;
}
@keyframes vehicleContactModalIn {
  from { opacity: 0; transform: translateY(0.75rem); }
  to { opacity: 1; transform: translateY(0); }
}
.vehicle-contact-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.vehicle-contact-title {
  color: #17181A;
  font-size: 1.1875rem;
  font-weight: 700;
}
.vehicle-contact-vehicle-title {
  margin: 0.375rem 0 0;
  color: #6B6E73;
  font-size: 0.875rem;
  line-height: 1.4;
}
.vehicle-contact-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.125rem;
  height: 2.125rem;
  flex-shrink: 0;
  border: none;
  border-radius: 0.625rem;
  background: #F4F4F5;
  color: #52555A;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.vehicle-contact-close:hover {
  background: #ECECEE;
  color: #17181A;
}
.vehicle-contact-close:focus-visible,
.vehicle-contact-phone-trigger:focus-visible,
.vehicle-contact-send:focus-visible {
  outline: 0.1875rem solid rgba(224, 27, 39, 0.32);
  outline-offset: 0.125rem;
}
.vehicle-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.vehicle-contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.4375rem;
}
.vehicle-contact-field label,
.vehicle-contact-consents legend {
  color: #17181A;
  font-size: 0.8125rem;
  font-weight: 600;
}
.vehicle-contact-field input,
.vehicle-contact-field select {
  width: 100%;
  min-height: 3.25rem;
  padding: 0 1rem;
  border: 0.09375rem solid #E8E8EB;
  border-radius: 0.875rem;
  background: #FBFBFC;
  color: #17181A;
  font: inherit;
  font-size: 0.875rem;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.vehicle-contact-field input:focus,
.vehicle-contact-field select:focus {
  outline: none;
  border-color: #E01B27;
  background: #fff;
  box-shadow: 0 0 0 0.25rem rgba(224, 27, 39, 0.12);
}
.vehicle-contact-consents {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  border: 0;
}
.vehicle-contact-consents legend {
  margin-bottom: 0.125rem;
}
.vehicle-contact-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  color: #52555A;
  font-size: 0.8125rem;
  line-height: 1.45;
  cursor: pointer;
}
.vehicle-contact-checkbox input {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  margin: 0.125rem 0 0;
  accent-color: var(--wine-primary);
}
.vehicle-contact-send {
  width: 100%;
  min-height: 3.375rem;
  padding: 0 1.5rem;
  border: 0;
  border-radius: 0.875rem;
  background: linear-gradient(180deg, var(--wine-primary) 0%, var(--wine-dark) 100%);
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
}
.vehicle-contact-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 0.0625rem solid #ECECEE;
}
.vehicle-contact-phone-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #17181A;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}
.vehicle-contact-whatsapp-icon { color: #25D366; }
.vehicle-contact-phone-number {
  margin: 0;
  color: #17181A;
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 700;
}
body.vehicle-contact-modal-open { overflow: hidden; }

/* ---- Share Modal ---- */
.share-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.share-modal[hidden] { display: none; }
.share-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 16, 18, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.share-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.28);
  animation: shareModalIn 0.2s ease;
}
@keyframes shareModalIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.share-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.share-modal-title {
  font-family: 'Sora', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #17181A;
}
.share-modal-close {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: none;
  border-radius: 10px;
  background: #F4F4F5;
  color: #52555A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.share-modal-close:hover { background: #ECECEE; color: #17181A; }
.share-modal-subtitle {
  margin-top: 4px;
  font-size: 13px;
  color: #93969B;
}
.share-networks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0 22px;
}
.share-network {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 6px;
  border: 1px solid #ECECEE;
  border-radius: 12px;
  background: #fff;
  color: #17181A;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.share-network:hover {
  transform: translateY(-2px);
  border-color: #D9D9DD;
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
}
.share-network[hidden] { display: none; }
.share-network-whatsapp svg { color: #25D366; }
.share-network-facebook svg { color: #1877F2; }
.share-network-x svg { color: #17181A; }
.share-network-telegram svg { color: #229ED9; }
.share-network-email svg { color: #E01B27; }
.share-network-native svg { color: #52555A; }
.share-link-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #6B6E73;
  margin-bottom: 8px;
}
.share-link-row {
  display: flex;
  gap: 8px;
}
.share-link-input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1.5px solid #E4E4E7;
  border-radius: 10px;
  background: #F8F8FA;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 13px;
  color: #52555A;
}
.share-link-copy {
  height: 44px;
  padding: 0 18px;
  border: none;
  border-radius: 10px;
  background: #E01B27;
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}
.share-copy-feedback {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #1B9E4B;
}
.share-copy-feedback[hidden] { display: none; }

.detail-dealer-copy {
  min-width: 0;
}
.detail-dealer-card {
  display: block;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.detail-dealer-card:hover {
  border-color: #D7D7DA !important;
  box-shadow: 0 4px 14px rgba(23,24,26,0.06);
}
.detail-dealer-card:focus-visible {
  outline: 3px solid rgba(224,27,39,0.38);
  outline-offset: 3px;
}
.detail-dealer-name {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 16px;
  overflow-wrap: anywhere;
}
.detail-side p {
  overflow-wrap: anywhere;
}
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.spec-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.spec-label {
  font-size: 12px;
  color: #93969B;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.spec-value {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 15px;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* ---- Header ---- */
.hero-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  color: #fff;
  padding: 0 10% 0.5%;
  height: 106px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--wine-dark);
  background: linear-gradient(
    180deg,
    rgba(193, 37, 48, 0.98) 0%,
    rgba(142, 16, 25, 0.95) 30%,
    rgba(142, 16, 25, 0.85) 55%,
    rgba(142, 16, 25, 0.45) 75%,
    rgba(142, 16, 25, 0.12) 90%,
    rgba(142, 16, 25, 0) 100%
  );
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  isolation: isolate;
  transition: backdrop-filter 0.45s ease, box-shadow 0.45s ease, background-color 0.45s ease;
}
.hero-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--wine-primary) 0%, var(--wine-dark) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}
.hero-header > * {
  position: relative;
  z-index: 1;
}
/* Estado tras hacer scroll: el cristal se activa y separa el header del contenido */
.hero-header.is-scrolled {
  align-items: center;
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
}
.hero-header.is-scrolled::after {
  opacity: 1;
}
.hero-header.is-menu-open {
  background: var(--wine-dark);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.hero-header-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-header-image {
  display: block;
  width: auto;
  height: 32px;
}
.hero-header-tag {
  font-size: 10px;
  opacity: 0.65;
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.hero-header-actions {
  display: flex;
  align-items: center;
  gap: 32px;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}
.header-nav a {
  color: #fff;
  transition: opacity 0.2s;
}
.header-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.header-menu-toggle:hover,
.header-menu-toggle[aria-expanded="true"] {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.32);
}
.header-menu-toggle span,
.header-menu-toggle span::before,
.header-menu-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.header-menu-toggle span { position: relative; }
.header-menu-toggle span::before,
.header-menu-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
}
.header-menu-toggle span::before { top: -7px; }
.header-menu-toggle span::after { top: 7px; }
.header-menu-toggle[aria-expanded="true"] span { background: transparent; }
.header-menu-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.header-menu-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---- Detail Layout ---- */
.detail-layout {
  display: block;
  width: 100%;
}
.detail-main-row > * {
  min-width: 0;
}
.detail-main-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 40px;
  align-items: start;
  min-width: 0;
}
.detail-media {
  min-width: 0;
  grid-column: 1;
  grid-row: 1;
}
@media (min-width: 1025px) {
  .detail-main-frame {
    max-height: calc(100vh - 244px);
  }
}
.detail-info {
  min-width: 0;
  grid-column: 1;
  grid-row: 2;
}
.detail-side {
  position: static;
  min-width: 0;
  grid-column: 2;
  grid-row: 1 / span 2;
}
.detail-similar-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

/* ---- Dealer Detail Layout ---- */
.dealer-detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}
.dealer-detail-side {
  position: relative;
}
.dealer-contact-panel {
  position: relative;
}
.dealer-detail-side .dealer-contact-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.75rem;
  border: 0.0625rem solid #ECECEE;
  border-radius: 0.875rem;
  background: #fff;
}
.dealer-contact-overlay[hidden] {
  display: none;
}
.dealer-contact-reveal {
  min-height: 2.75rem;
  padding: 0.75rem 1.25rem;
  border: 0.0625rem solid var(--wine-primary);
  border-radius: 0.625rem;
  background: var(--wine-primary);
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.dealer-contact-reveal:hover {
  border-color: var(--wine-dark);
  background: var(--wine-dark);
}
.dealer-contact-reveal:focus-visible {
  outline: 0.1875rem solid rgba(224,27,39,0.38);
  outline-offset: 0.125rem;
}
@media (min-width: 64.0625rem) {
  .dealer-detail-side {
    position: sticky;
    top: 6.875rem;
  }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  background: var(--hero-image-desktop) center/cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.08) 100%),
    linear-gradient(180deg, rgba(20,20,22,0.65) 0%, rgba(20,20,22,0.35) 40%, rgba(20,20,22,0.45) 100%);
}
.hero-inner {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 100px 40px 60px;
}
.hero-title-text {
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hero-title-accent {
  color: #fff;
}

/* ---- Utilities ---- */
.px-10 { padding-left: 10%; padding-right: 10%; }
.py-section { padding-top: 44px; padding-bottom: 44px; }
.py-section-lg { padding-top: 52px; padding-bottom: 52px; }
.text-red { color: #E01B27; }
.bg-red { background: #E01B27; }
.text-muted { color: #93969B; }
.text-secondary { color: #6B6E73; }
.font-sora { font-family: 'Sora', sans-serif; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.featured-cars-mobile-controls {
  position: relative;
}
.featured-cars-arrow {
  display: none;
}
.home-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}
.home-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.875rem;
  padding: 0.75rem 1.25rem;
  border: 0.0625rem solid #17181A;
  border-radius: 999px;
  background: #17181A;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0.5rem 1rem rgba(23,24,26,0.16);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.home-more-btn:hover,
.home-more-btn:focus-visible {
  background: var(--wine-primary);
  border-color: var(--wine-primary);
  box-shadow: 0 0.625rem 1.25rem rgba(193,37,48,0.22);
  color: #fff;
  outline: none;
  transform: translateY(-0.125rem);
}

/* ---- Category Carousel ---- */
.cat-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cat-carousel {
  display: flex;
  gap: 16px;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 4px 0;
  flex: 1;
}
.cat-carousel::-webkit-scrollbar { display: none; }
.cat-carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #E4E4E7;
  background: #fff;
  color: #52555A;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.cat-carousel-btn:hover {
  background: var(--wine-primary);
  color: #fff;
  border-color: var(--wine-primary);
}
.cat-carousel-btn:active {
  transform: scale(0.95);
}

/* ---- Responsive ---- */
@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .newsletter-section { margin: 52px 5% 0; flex-direction: column; text-align: center; }
  .newsletter-copy { max-width: 100%; }
  .newsletter-form { min-width: 100%; width: 100%; max-width: 680px; }
  .newsletter-input { width: 100%; }
  .footer { padding: 48px 5% 32px; }
  .dealer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-shell { grid-template-columns: 1fr; }
  .catalog-sidebar { position: static; }
  .footer-features-menu { grid-template-columns: repeat(2, 1fr); }
  .footer-brands-menu { grid-template-columns: repeat(2, 1fr); }
  .dealer-detail-layout { grid-template-columns: 1fr; }
  .dealer-detail-side { position: relative; }
}
@media (max-width: 768px) {
  /* Header → mobile menu */
  .hero-header { padding: 0 5% 3px; height: 78px; }
  .hero-header.is-scrolled {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12), 0 6px 16px -8px rgba(0, 0, 0, 0.25);
  }
  .hero-header-image { height: auto; width: 230px; max-width: 58vw; }
  .hero-header-tag { display: none; }
  .hero-header-actions { gap: 14px; }
  .header-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 5%;
    background: linear-gradient(180deg, rgba(107,0,12,0.98) 0%, rgba(180,0,6,0.98) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.28);
    display: flex;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.24s ease, transform 0.24s ease, visibility 0s linear 0.24s;
  }
  .header-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
  }
  .hero-header.is-menu-open .header-nav {
    background: #8a000d;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .header-nav a {
    padding: 14px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    opacity: 1 !important;
  }
  .header-nav a:last-child { border-bottom: none; }
  .header-menu-toggle { display: inline-flex; }

  /* Grids */
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: 1fr; }
  .featured-cars[data-featured-carousel] {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    overflow-x: auto;
    touch-action: pan-y;
    padding: 4px 0 12px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .featured-cars[data-featured-carousel]::-webkit-scrollbar { display: none; }
  .featured-cars[data-featured-carousel] .car-card {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
  }
  .car-card .car-fav {
    top: 0.5rem;
    right: 0.5rem;
    bottom: auto;
  }
  .featured-cars-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0.0625rem solid rgba(255,255,255,0.85);
    border-radius: 50%;
    background: rgba(23,24,26,0.78);
    color: #fff;
    box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.18);
    cursor: pointer;
    transform: translateY(-50%);
  }
  .featured-cars-arrow:hover,
  .featured-cars-arrow:focus-visible {
    background: var(--wine-primary);
    border-color: var(--wine-primary);
    outline: none;
  }
  .featured-cars-arrow--prev { left: 0.5rem; }
  .featured-cars-arrow--next { right: 0.5rem; }
  .px-10 { padding-left: 5%; padding-right: 5%; }

  /* Hero */
  .hero { background-image: var(--hero-image-mobile); }
  .hero-inner { padding: 90px 20px 36px; }
  .hero-content { display: flex; flex-direction: column; }
  .hero-content .hero-title { margin-bottom: 0.75rem !important; }
  .hero-content .hero-search { order: 2; }
  .hero-content .filter-pills { order: 3; margin-top: 0.75rem !important; margin-bottom: 1rem; }
  .hero-title-text { font-size: 28px !important; }
  .hero-title { font-size: 28px !important; }
  .hero-title-text { text-shadow: none; }
  .hero-title-accent {
    text-shadow:
      0.06em 0.06em 0 var(--wine-dark),
      0.12em 0.12em 0 var(--wine-dark),
      0.18em 0.18em 0 rgba(142,16,25,0.82);
  }

  /* Search bar compact */
  .search-input { height: 52px; padding-left: 46px; }
  .search-btn { height: 52px; width: 52px; }
  .search-icon { left: 14px; }

  /* Home filter dropdown: panel a ancho completo, columnas apiladas */
  .search-filter-btn { height: 52px; width: 52px; }
  .home-filter-panel { left: 0; right: 0; margin: 0 12px; max-width: none; width: auto; flex-direction: column; }
  .home-filter-menu {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    border-right: none;
    border-bottom: 1px solid #ECECEE;
  }

  /* Spec & dealer */
  .spec-grid { grid-template-columns: 1fr; }
  .dealer-grid { grid-template-columns: 1fr; }
  .dealer-carousel-controls { width: 100%; justify-content: space-between; }

  .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* Newsletter */
  .newsletter-section { padding: 28px 22px; }
  .newsletter-form { grid-template-columns: 1fr; }
  .newsletter-title { font-size: 22px; }

  /* Footer */
  .footer { padding: 40px 5% 28px; }
  .footer-features-menu { grid-template-columns: 1fr; }
  .footer-brands-menu { grid-template-columns: 1fr; }
  .footer-columns { flex-direction: column; gap: 28px; }
  .footer-links { gap: 28px; }

  /* Language switcher dentro del menú móvil */
  .language-switcher {
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.12);
    margin-top: 4px;
    padding-top: 4px;
  }
  .language-switcher-trigger {
    width: 100%;
    height: auto;
    padding: 14px 4px;
    justify-content: space-between;
    font-size: 16px;
  }
  .language-switcher-trigger [data-language-current-flag] {
    display: inline-flex;
    margin-right: auto;
  }
  .language-current-code {
    font-size: 15px;
    margin-right: auto;
  }
  .language-switcher-menu {
    position: static;
    width: 100%;
    min-width: 0;
    margin: 0 0 8px;
    padding: 4px;
    border: none;
    border-radius: 12px;
    background: rgba(0,0,0,0.22);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }
  .language-option { height: 44px; }

  /* Share modal */
  .share-modal-dialog { padding: 20px; }
  .share-networks { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Detail page */
  .detail-main-row { width: 100%; grid-template-columns: 1fr; }
  .detail-media,
  .detail-info,
  .detail-side {
    grid-column: 1;
    grid-row: auto;
  }
  .detail-side { position: static; width: 100%; }
  .detail-main-frame { aspect-ratio: 4 / 3; }
  .detail-price { font-size: 28px; }
  .detail-similar-grid .car-card-img { height: auto; }
  .detail-similar-grid .car-card-body { padding: 12px 14px 14px; }

  /* Dealer detail header */
  .dealer-detail-header { flex-direction: row; }

  /* Catalog active filters */
  .catalog-active-filters { gap: 6px; }
}
@media (min-width: 601px) and (max-width: 768px) {
  .detail-main-row {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  }
  .detail-media,
  .detail-info {
    grid-column: 1;
    grid-row: auto;
  }
  .detail-side {
    grid-column: 2;
    grid-row: 1 / span 2;
    position: sticky;
    top: 90px;
    width: auto;
  }
}
@media (max-width: 37.5rem) {
  /* Mobile detail order: media, price card, specifications, dealer. */
  .detail-side {
    display: contents;
  }
  .detail-media { grid-row: 1; }
  .detail-price-card {
    grid-column: 1;
    grid-row: 2;
  }
  .detail-info {
    grid-column: 1;
    grid-row: 3;
  }
  .detail-side > .detail-dealer-card {
    grid-column: 1;
    grid-row: 4;
  }
}
@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .header-nav {
    transform: none;
    transition-duration: 0.01ms;
    transition-delay: 0s;
  }
}
@media (max-width: 480px) {
  .grid-5 { grid-template-columns: minmax(0, 1fr); }
  .hero-title-text { font-size: 24px !important; }
  .hero-title { font-size: 24px !important; }
  .hero-inner { padding: 84px 16px 28px; }
  .px-10 { padding-left: 4%; padding-right: 4%; }
  .newsletter-section { margin: 40px 4% 0; padding: 24px 18px; }
  .footer { padding: 36px 5% 24px; }
  .car-card-img { height: auto; }
  .featured-cars .car-card-img { height: auto; }
}

/* ---- Paginación ---- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 36px;
}
.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #E4E4E7;
  border-radius: 10px;
  background: #fff;
  color: #52555A;
  font-size: 15px;
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.pagination-btn:hover { border-color: #E01B27; color: #E01B27; }
.pagination-btn.is-active {
  background: #17181A;
  border-color: #17181A;
  color: #fff;
  cursor: default;
}
.pagination-btn.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}
.pagination-ellipsis {
  min-width: 24px;
  text-align: center;
  color: #93969B;
}

/* ---- Sección Alquiler de coches (REQ-FRONT-01/05/06/07/10) ---- */
.rental-page { padding-top: 7.5rem; }
.rental-hero { background: linear-gradient(180deg, #17181A 0%, #2A2B2E 100%); color: #fff; }
.rental-title {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 34px;
  line-height: 1.1;
  margin: 0 0 10px;
}
.rental-subtitle { font-size: 16px; color: #C9CBCE; max-width: 640px; margin: 0; }
.rental-filters {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-end;
  background: #F6F7F9;
  border: 1px solid #E4E6EA;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 28px;
}
.rental-filters .filters-group { flex: 1 1 220px; margin-bottom: 0; }
.rental-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #D8DADE;
  border-radius: 8px;
  background: #fff;
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  color: #17181A;
}
.rental-count { font-size: 13px; color: #93969B; margin: 4px 0 0; }
.rental-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #E01B27;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.rental-card { display: flex; flex-direction: column; }
.rental-card .car-card-body { display: flex; flex-direction: column; flex: 1; }
.rental-rating { display: inline-flex; align-items: center; gap: 6px; }
.rental-rating-note { font-size: 12px; font-weight: 600; color: #17181A; }
.price-container { display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; padding-top: 12px; }
.price-column { display: flex; flex-direction: column; }
.rental-price {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #17181A;
  white-space: nowrap;
}
.lista-lugares { font-size: 13px; color: #93969B; line-height: 1.5; }
.rental-desc {
  font-size: 13px;
  color: #6B6E73;
  margin: 8px 0 12px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rental-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 12px;
}
.rental-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 8px;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.rental-btn--primary { background: linear-gradient(180deg, var(--wine-primary) 0%, var(--wine-dark) 100%); color: #fff; border: 1px solid var(--wine-primary); }
.rental-btn--primary:hover { background: var(--wine-dark); border-color: var(--wine-dark); }
.rental-btn--secondary { background: #fff; color: #17181A; border: 1px solid #D8DADE; }
.rental-btn--secondary:hover { border-color: var(--wine-primary); color: var(--wine-primary); }
.stars { display: inline-flex; gap: 2px; color: #F5A623; vertical-align: middle; }
.star { display: block; }
.star--empty { color: #D8DADE; }
.rental-contact {
  margin-top: 40px;
  padding: 24px;
  background: #FFF7F7;
  border: 1px solid #F3D5D7;
  border-radius: 14px;
  text-align: center;
}
.rental-contact h3 { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 18px; margin: 0 0 8px; color: #17181A; }
.rental-contact p { font-size: 14px; color: #6B6E73; margin: 0; }
.rental-contact a { color: #E01B27; font-weight: 600; text-decoration: none; }
.rental-contact a:hover { text-decoration: underline; }
@media (max-width: 768px) {
  .rental-page { padding-top: 5.5rem; }
  .rental-title { font-size: 26px; }
  .rental-filters { padding: 16px; }
}

/* ---- Formulario de filtros (combustible + km) ---- */
.filters-form { display: block; }
.filters-group { margin-bottom: 18px; }
.filters-title {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: none;
  background: transparent;
  text-align: left;
  padding: 0;
  font-family: 'Sora', sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #93969B;
  margin-bottom: 8px;
}
/* En escritorio no se pliega: sin chevron y sin cursor de botón. */
.filters-chevron { display: none; flex-shrink: 0; transition: transform 0.25s ease; }
.filters-title { cursor: default; }
.filters-options { display: flex; flex-direction: column; gap: 2px; }
.filters-check,
.filters-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  transition: background 0.15s ease, color 0.15s ease;
}
.filters-check:hover,
.filters-radio:hover { background: #F6F6F7; }
.filters-check input,
.filters-radio input {
  width: 18px;
  height: 18px;
  accent-color: #E01B27;
  flex-shrink: 0;
  cursor: pointer;
}
.filters-check-name { flex: 1; }
.filters-radio span { flex: 1; }
.filters-count { font-size: 12px; color: #B5B7BB; }
.filters-check.is-checked,
.filters-radio.is-checked { color: #E01B27; font-weight: 600; }
.filters-actions { display: flex; gap: 12px; align-items: center; margin-top: 4px; }
.filters-apply {
  flex: 1;
  height: 46px;
  border: none;
  border-radius: 12px;
  background: #E01B27;
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.filters-apply:hover { background: #B0121F; }
.filters-clear { font-size: 13px; color: #93969B; font-weight: 600; flex-shrink: 0; }
.filters-empty { font-size: 13px; color: #93969B; padding: 4px 10px; }

/* Variante oscura dentro del sidebar de escritorio */
.catalog-sidebar-filters {
  margin: 4px 0 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.catalog-sidebar-filters .filters-title { color: rgba(255,255,255,0.56); }
.catalog-sidebar-filters .filters-check,
.catalog-sidebar-filters .filters-radio { color: rgba(255,255,255,0.85); }
.catalog-sidebar-filters .filters-check:hover,
.catalog-sidebar-filters .filters-radio:hover { background: rgba(255,255,255,0.06); }
.catalog-sidebar-filters .filters-count { color: rgba(255,255,255,0.45); }
.catalog-sidebar-filters .filters-check.is-checked,
.catalog-sidebar-filters .filters-radio.is-checked { color: #FFD7DB; }
.catalog-sidebar-filters .filters-clear { color: rgba(255,255,255,0.6); }

/* ---- Barra búsqueda móvil + toggle filtros + bottom-sheet (ocultos en escritorio) ---- */
.search-mobilebar { display: none; }
.search-filter-toggle { display: none; }
.mobile-filters { display: none; }

@media (max-width: 768px) {
  /* Ocultar hero grande y sidebar de escritorio en /buscar/ */
  .search-hero { display: none; }
  .search-results-desktopbar { display: none !important; }
  .catalog-sidebar { display: none; }

  /* Barra de búsqueda + botón de filtros sticky en la parte superior */
  .search-mobilebar {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px 5%;
    background: #fff;
    border-bottom: 1px solid #ECECEE;
    position: sticky;
    top: 4.875rem;
    margin-top: 4.875rem;
    z-index: 40;
  }
  .catalog-page { padding-top: 2rem; }
  .search-mobilebar-form {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #E4E4E7;
    border-radius: 12px;
    background: #F6F6F7;
    color: #93969B;
  }
  .search-mobilebar-form svg { flex-shrink: 0; }
  .search-mobilebar-form input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    font-size: 15px;
    font-family: 'Instrument Sans', sans-serif;
    color: #17181A;
    outline: none;
  }
  .search-filter-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 46px;
    padding: 0 16px;
    border: none;
    border-radius: 12px;
    background: #E01B27;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Sora', sans-serif;
    cursor: pointer;
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .search-filter-toggle svg { flex-shrink: 0; }
  .search-filter-dot {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 2px #E01B27;
  }

  /* ---- Bottom-sheet de filtros ---- */
  .mobile-filters {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 200;
    visibility: hidden;
  }
  .mobile-filters.is-open { visibility: visible; }
  .mobile-filters-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .mobile-filters.is-open .mobile-filters-backdrop { opacity: 1; }
  .mobile-filters-sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -12px 40px rgba(0,0,0,0.22);
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .mobile-filters.is-open .mobile-filters-sheet { transform: translateY(0); }
  .mobile-filters-handle {
    width: 44px;
    height: 5px;
    border-radius: 100px;
    background: #D8D8DC;
    margin: 10px auto 4px;
    flex-shrink: 0;
  }
  .mobile-filters-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px 12px;
    flex-shrink: 0;
  }
  .mobile-filters-head h3 {
    font-family: 'Sora', sans-serif;
    font-size: 19px;
    font-weight: 800;
    color: #17181A;
  }
  .mobile-filters-x {
    border: none;
    background: #F2F2F3;
    color: #52555A;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
  }
  .mobile-filters-clear {
    display: inline-block;
    margin: 0 20px 8px;
    align-self: flex-start;
    background: #FFF7F7;
    border: 1px solid #E01B27;
    color: #E01B27;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 100px;
    flex-shrink: 0;
  }
  .mobile-filters-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 20px 12px;
    padding: 0 14px;
    height: 48px;
    border: 1px solid #E4E4E7;
    border-radius: 12px;
    background: #F6F6F7;
    color: #93969B;
    flex-shrink: 0;
  }
  .mobile-filters-search input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    font-family: 'Instrument Sans', sans-serif;
    color: #17181A;
    outline: none;
  }
  .mobile-filters-scroll {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 12px calc(20px + env(safe-area-inset-bottom));
  }
  .mobile-filters-block { padding: 0 8px 8px; border-bottom: 1px solid #F0F0F1; margin-bottom: 8px; }
  .mobile-filters-list { margin-top: 4px; }

  /* Secciones de filtro plegables solo en móvil */
  .mobile-filters-block .filters-group { margin-bottom: 4px; border-bottom: 1px solid #F5F5F6; }
  .mobile-filters-block .filters-group:last-of-type { border-bottom: none; }
  .mobile-filters-block .filters-title {
    cursor: pointer;
    padding: 16px 4px;
    margin-bottom: 0;
    font-size: 14px;
    color: #17181A;
  }
  .mobile-filters-block .filters-chevron { display: block; color: #93969B; }
  .mobile-filters-block .filters-group:not(.is-collapsed) .filters-chevron { transform: rotate(180deg); }
  .mobile-filters-block .filters-group.is-collapsed .filters-options { display: none; }
  .mobile-filters-block .filters-options { padding-bottom: 8px; }
  .mobile-filters-search { margin: 4px 8px 14px; }
  .mfilter-brand { border-bottom: 1px solid #F0F0F1; }
  .mfilter-brand-head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 8px;
    border: none;
    background: transparent;
    font-family: 'Sora', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #17181A;
    cursor: pointer;
  }
  .mfilter-brand-head.is-active { color: #E01B27; }
  .mfilter-chevron {
    color: #93969B;
    transition: transform 0.25s ease;
    flex-shrink: 0;
  }
  .mfilter-brand-head[aria-expanded="true"] .mfilter-chevron { transform: rotate(180deg); }
  .mfilter-brand-body {
    display: none;
    padding: 2px 8px 12px;
  }
  .mfilter-brand-head[aria-expanded="true"] + .mfilter-brand-body { display: block; }
  .mfilter-model {
    display: block;
    padding: 12px 12px;
    margin-bottom: 4px;
    border-radius: 10px;
    background: #F6F6F7;
    color: #333;
    font-size: 15px;
  }
  .mfilter-model.is-active {
    background: #17181A;
    color: #fff;
    font-weight: 600;
  }
  .mfilter-model-all {
    background: #FFF2F3;
    color: #E01B27;
    font-weight: 600;
  }
  .mfilter-model-all.is-active { background: #E01B27; color: #fff; }
  .mobile-filters-empty {
    text-align: center;
    color: #93969B;
    font-size: 14px;
    padding: 28px 12px;
  }

  .pagination-btn { min-width: 38px; height: 38px; }
}

/* En móviles muy estrechos el botón de filtros pasa a solo icono */
@media (max-width: 380px) {
  .search-mobilebar { padding: 12px 4%; gap: 8px; }
  .search-filter-toggle { padding: 0 12px; gap: 0; }
  .search-filter-label { display: none; }
  .search-filter-dot { top: 6px; right: 6px; }
}

/* ---- Favorites Page ---- */
.favorites-page {
  padding: 128px 10% 44px;
  min-height: 520px;
}
.favorites-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.favorites-kicker {
  margin: 0 0 8px;
  color: #E01B27;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.favorites-page-header h1 {
  font-size: 34px;
  font-weight: 800;
}
.favorites-page-header p:last-child {
  margin: 10px 0 0;
  color: #6B6E73;
  font-size: 15px;
}
.favorites-grid {
  margin: 0;
  padding: 0;
  list-style: none;
}
.favorite-card-item {
  min-width: 0;
  display: flex;
}
.favorite-card-item > .car-card {
  flex: 1;
}
@media (max-width: 37.5rem) {
  .car-dealer-logo {
    flex-basis: clamp(2rem, 12vw, 2.5rem);
    width: clamp(2rem, 12vw, 2.5rem);
    min-height: clamp(2rem, 12vw, 2.5rem);
  }
  .car-dealer-logo img {
    width: clamp(2rem, 12vw, 2.5rem);
    height: clamp(2rem, 12vw, 2.5rem);
  }
}
.favorites-empty {
  margin: 0;
  padding: 72px 20px;
  border: 1px dashed #D8D8DC;
  border-radius: 18px;
  background: rgba(255,255,255,0.58);
  color: #6B6E73;
  font-size: 16px;
  text-align: center;
}
.favorites-recommendations {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 0.0625rem solid #ECECEE;
}
.favorites-recommendations-header {
  margin-bottom: 1.75rem;
}
.favorites-recommendations-header h2 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
}
.favorites-recommendations-header p:last-child {
  margin: 0.625rem 0 0;
  color: #6B6E73;
  font-size: 0.9375rem;
}
.favorites-recommendations .favorites-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (max-width: 768px) {
  .home-categories-section {
    display: none;
  }

  .favorites-header-link { padding: 0 12px; width: auto; gap: 7px; }
  .favorites-page { padding: 96px 5% 36px; }
  .favorites-page-header { align-items: flex-start; flex-direction: column; }
  .favorites-recommendations .favorites-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .favorites-page { padding-right: 4%; padding-left: 4%; }
}
