/* ============================================================
   BUSCADORDECOCHES.NET — CSS PRINCIPAL
   Versión 1.0 · Mayo 2026
   
   ÍNDICE:
   1.  Variables y reset
   2.  Tipografía base
   3.  Layout y contenedor
   4.  Header y navegación
   5.  Hero y buscador
   6.  Stats bar
   7.  Secciones genéricas
   8.  Categorías
   9.  Tarjetas de coche
   10. Slots publicitarios
   11. Marcas
   12. Noticias
   13. Trust bar
   14. Provincias
   15. Footer
   16. Botones y utilidades
   17. Responsive móvil
   18. Animaciones y preferencia de movimiento reducido
============================================================ */


/* ============================================================
   1. VARIABLES Y RESET
============================================================ */

:root {
  /* Paleta */
  --red:        #F5821F;
  --red-dark:   #d96a10;
  --red-light:  rgba(245, 130, 31, 0.07);
  --black:      #111111;
  --white:      #ffffff;

  /* Grises */
  --g50:  #f7f8fa;
  --g100: #f0f1f4;
  --g200: #e2e4ea;
  --g300: #c8cad4;
  --g400: #9499aa;
  --g500: #6e7385;
  --g600: #555b70;

  /* Semánticos */
  --green:  #0a7c3e;
  --blue:   #1155cc;
  --amber:  #b87800;

  /* Tipografía */
  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size:   15px;
  --line-height: 1.55;

  /* Espaciado */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 64px;

  /* Bordes */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   14px;
  --radius-pill: 999px;

  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.05);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.06);

  /* Layout */
  --container:    1080px;
  --header-h:     60px;
}

/* Reset moderno */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  line-height: var(--line-height);
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Focus visible para accesibilidad */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-radius: 2px;
}


/* ============================================================
   2. TIPOGRAFÍA BASE
============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.2;
  color: var(--black);
}

p {
  color: var(--g600);
}


/* ============================================================
   3. LAYOUT Y CONTENEDOR
============================================================ */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-xl) 0;
}

.section--gray {
  background: var(--g50);
}

.section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.section__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--black);
}

.section__more {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--red);
  white-space: nowrap;
  flex-shrink: 0;
}

.section__more:hover {
  text-decoration: underline;
}


/* ============================================================
   4. HEADER Y NAVEGACIÓN
============================================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--g200);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  height: var(--header-h);
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--black);
  flex-shrink: 0;
  text-decoration: none;
}

.nav__logo:hover {
  opacity: 0.9;
}

.nav__logo-mark {
  width: 30px;
  height: 30px;
  background: var(--red);
  border-radius: 7px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.nav__logo-text strong {
  color: var(--red);
}

/* Links de navegación */
.nav__links {
  display: flex;
  gap: 2px;
  flex: 1;
}

.nav__link {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--g600);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.nav__link:hover {
  background: var(--g100);
  color: var(--black);
}

/* Acciones */
.nav__actions {
  display: flex;
  gap: var(--space-sm);
  margin-left: auto;
  flex-shrink: 0;
}

/* Botones de nav */
.nav__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
  white-space: nowrap;
  border: 1.5px solid transparent;
  text-decoration: none;
}

.nav__btn--ghost {
  border-color: var(--g200);
  color: var(--g600);
  background: transparent;
}

.nav__btn--ghost:hover {
  border-color: var(--g300);
  color: var(--black);
}

.nav__btn--primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.nav__btn--primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-1px);
}

/* Toggle móvil */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  padding: 7px;
  cursor: pointer;
  margin-left: auto;
}

.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Menú móvil */
.nav__mobile {
  display: none;
  flex-direction: column;
  gap: var(--space-md);
  background: var(--white);
  border-top: 1px solid var(--g100);
  padding: var(--space-lg);
}

.nav__mobile ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.nav__mobile ul a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--g600);
}

.nav__mobile ul a:hover {
  background: var(--g50);
  color: var(--black);
}

.nav__mobile-actions {
  display: flex;
  gap: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid var(--g100);
}

.nav__mobile-actions .nav__btn {
  flex: 1;
  justify-content: center;
}

/* Estado abierto del menú móvil */
.nav__mobile.is-open {
  display: flex;
}


/* ============================================================
   5. HERO Y BUSCADOR
============================================================ */

.hero {
  background: var(--white);
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--g200);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* Copy del hero */
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--red-light);
  border: 1px solid rgba(245, 130, 31, 0.18);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 18px;
}

.hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

.hero__title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--black);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}

.hero__title em {
  font-style: normal;
  color: var(--red);
}

.hero__sub {
  font-size: 1rem;
  color: var(--g500);
  line-height: 1.6;
  max-width: 420px;
}

/* Buscador */
.search-box {
  background: var(--white);
  border: 1.5px solid var(--g200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.search-box__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--g50);
  border-bottom: 1px solid var(--g200);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--g500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-box__header svg {
  color: var(--red);
  flex-shrink: 0;
}

.search-box__form {
  padding: 16px 18px;
}

.search-box__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

/* Campos del buscador */
.search-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.search-field__label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--g500);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.search-field__input {
  height: 40px;
  border: 1.5px solid var(--g200);
  border-radius: var(--radius-sm);
  padding: 0 10px;
  font-size: 0.875rem;
  color: var(--black);
  background: var(--g50);
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%239499aa' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 10px) center;
  background-size: 12px;
  padding-right: 28px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-field__input:focus {
  border-color: var(--red);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(245, 130, 31, 0.08);
}

/* Filtros extra colapsables */
.search-box__extra {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.search-box__extra.is-open {
  max-height: 200px;
  opacity: 1;
  margin-bottom: 10px;
}

/* Footer del buscador */
.search-box__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--g100);
}

.search-box__more {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--g500);
  background: none;
  border: none;
  padding: 0;
  transition: color 0.15s;
}

.search-box__more:hover {
  color: var(--red);
}

.search-box__more svg {
  transition: transform 0.2s;
}

.search-box__more.is-open svg {
  transform: rotate(180deg);
}

.search-box__submit {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 24px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: background 0.15s, transform 0.1s;
}

.search-box__submit:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.search-box__submit:active {
  transform: translateY(0);
}


/* ============================================================
   6. STATS BAR
============================================================ */

.stats {
  background: var(--black);
  padding: 0;
}

.stats__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px var(--space-md);
  border-right: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

.stats__item:last-child {
  border-right: none;
}

.stats__num {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 3px;
}

.stats__num em {
  font-style: normal;
  color: var(--red);
}

.stats__label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 600;
}


/* ============================================================
   7. CATEGORÍAS
============================================================ */

.categories__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-md);
}

.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  background: var(--white);
  border: 1.5px solid var(--g200);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.15s;
  text-decoration: none;
}

.cat-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.cat-card--highlight {
  border-color: rgba(245, 130, 31, 0.3);
  background: var(--red-light);
}

.cat-card__icon {
  font-size: 1.75rem;
  line-height: 1;
}

.cat-card__label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--black);
}

.cat-card__count {
  font-size: 0.7rem;
  color: var(--g400);
  font-weight: 500;
}


/* ============================================================
   9. TARJETAS DE COCHE
============================================================ */

.car-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: var(--space-xl);
}

.car-card {
  background: var(--white);
  border: 1px solid var(--g200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.18s, border-color 0.18s;
}

.car-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--g300);
}

.car-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Thumbnail del coche */
.car-card__thumb {
  position: relative;
  height: 160px;
  overflow: hidden;
}

.car-card__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--g100), var(--g200));
}

.car-card__img-placeholder--blue  { background: linear-gradient(135deg, #e8ecff, #ccd0ff); }
.car-card__img-placeholder--green { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); }
.car-card__img-placeholder--amber { background: linear-gradient(135deg, #fff3e0, #ffe0b0); }
.car-card__img-placeholder--dark  { background: linear-gradient(135deg, #1a1a2e, #2a2a50); }

/* Imagen real (cuando exista) */
.car-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.car-card:hover .car-card__thumb img {
  transform: scale(1.04);
}

/* Badges sobre la imagen */
.car-card__badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.car-card__badge--premium {
  background: #f5a500;
  color: var(--white);
}

.car-card__badge--eco {
  background: var(--green);
  color: var(--white);
}

.car-card__badge--km0 {
  background: var(--black);
  color: var(--white);
}

/* Botón favorito */
.car-card__fav {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--g200);
  display: grid;
  place-items: center;
  color: var(--g400);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  backdrop-filter: blur(4px);
}

.car-card__fav:hover,
.car-card__fav.is-saved {
  border-color: var(--red);
  color: var(--red);
}

.car-card__fav.is-saved svg {
  fill: var(--red);
}

/* Contenido de la tarjeta */
.car-card__body {
  padding: 12px 14px 14px;
}

.car-card__make {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.car-card__model {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.car-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 10px;
}

.car-card__specs li {
  font-size: 0.75rem;
  color: var(--g500);
  padding-right: 7px;
  margin-right: 7px;
  border-right: 1px solid var(--g200);
}

.car-card__specs li:last-child {
  border-right: none;
  padding-right: 0;
  margin-right: 0;
}

.car-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  padding-top: 9px;
  border-top: 1px solid var(--g100);
}

.car-card__price {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--black);
  line-height: 1;
}

.car-card__dealer {
  font-size: 0.7rem;
  color: var(--g400);
  text-align: right;
  line-height: 1.3;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* CTA inferior del listado */
.listings__tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.listings__tab {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--g200);
  background: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--g600);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.listings__tab:hover,
.listings__tab--active {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-light);
}

.listings__cta {
  text-align: center;
}


/* ============================================================
   10. SLOTS PUBLICITARIOS
============================================================ */

.ad-strip {
  background: var(--g100);
  border-top: 1px solid var(--g200);
  border-bottom: 1px solid var(--g200);
  padding: 12px 0;
}

.ad-slot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-slot--leaderboard {
  height: 90px;
  max-width: 728px;
  margin: 0 auto;
  background: rgba(240,192,64,0.06);
  border: 1.5px dashed rgba(240,192,64,0.5);
  border-radius: var(--radius-sm);
}

.ad-slot__label {
  position: absolute;
  top: -1px;
  left: 10px;
  background: #f5a500;
  color: var(--white);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 0 0 4px 4px;
  line-height: 1.6;
}

.ad-slot__placeholder {
  font-size: 0.75rem;
  color: rgba(184, 120, 0, 0.6);
  font-weight: 600;
}

/* En producción los placeholders se ocultan cuando hay un anuncio real */
.ad-slot--has-ad .ad-slot__placeholder,
.ad-slot--has-ad .ad-slot__label {
  display: none;
}


/* ============================================================
   11. MARCAS
============================================================ */

.brands__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--g200);
  background: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--g600);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  text-decoration: none;
}

.brand-pill:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-light);
}

.brand-pill--highlight {
  border-color: rgba(17, 85, 204, 0.25);
  color: var(--blue);
  background: rgba(17, 85, 204, 0.05);
}

.brand-pill--highlight:hover {
  border-color: var(--blue);
  background: rgba(17, 85, 204, 0.1);
  color: var(--blue);
}


/* ============================================================
   12. NOTICIAS
============================================================ */

.news__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
}

.news-card {
  background: var(--white);
  border: 1px solid var(--g200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.18s, transform 0.15s;
}

.news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.news-card--featured {
  grid-row: span 2;
}

.news-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* Imagen de la noticia */
.news-card__img {
  height: 180px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  background: linear-gradient(135deg, #1a1a2e, #2a2a50);
}

.news-card--featured .news-card__img {
  height: 280px;
}

.news-card__img--dark  { background: linear-gradient(135deg, #1a1a2e, #2a2a50); }
.news-card__img--blue  { background: linear-gradient(135deg, #1a1a40, #1a2a6e); }
.news-card__img--red   { background: linear-gradient(135deg, #2a1010, #5a1010); }
.news-card__img--green { background: linear-gradient(135deg, #0a1a10, #0a3a20); }

/* Imagen real (cuando exista) */
.news-card__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-card__img img {
  transform: scale(1.03);
}

.news-card__tag {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-pill);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.3px;
}

/* Contenido de la noticia */
.news-card__body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.news-card__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.35;
}

.news-card--featured .news-card__title {
  font-size: 1.1rem;
}

.news-card__excerpt {
  font-size: 0.8rem;
  color: var(--g500);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--g400);
  margin-top: auto;
}


/* ============================================================
   13. TRUST BAR
============================================================ */

.trust {
  background: var(--black);
  padding: var(--space-xl) 0;
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.trust__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.trust__icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.trust__title {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 5px;
}

.trust__desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}


/* ============================================================
   14. PROVINCIAS
============================================================ */

.provinces__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.province-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--g200);
  background: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--g600);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  text-decoration: none;
}

.province-pill:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-light);
}

.province-pill--more {
  border-color: rgba(245,130,31,0.25);
  color: var(--red);
  background: var(--red-light);
  font-weight: 700;
}


/* ============================================================
   15. FOOTER
============================================================ */

.footer {
  background: #0d0d0f;
  padding: 40px 0 24px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* Logo del footer */
.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  margin-bottom: 12px;
}

.footer__logo strong {
  color: var(--red);
}

.footer__logo-mark {
  width: 26px;
  height: 26px;
  background: var(--red);
  border-radius: 6px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.footer__desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.65;
  margin-bottom: 18px;
}

/* Redes sociales */
.footer__social {
  display: flex;
  gap: 8px;
}

.footer__social-link {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.45);
  transition: border-color 0.15s, color 0.15s;
}

.footer__social-link:hover {
  border-color: var(--red);
  color: var(--red);
}

/* Columnas de enlaces */
.footer__col-title {
  font-size: 0.7rem;
  font-weight: 800;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 14px;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__link {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.15s;
  line-height: 1.4;
}

.footer__link:hover {
  color: var(--red);
}

/* Línea inferior */
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
}


/* ============================================================
   16. BOTONES Y UTILIDADES
============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--font);
  font-weight: 700;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
  text-decoration: none;
  white-space: nowrap;
}

.btn--sm  { height: 30px; padding: 0 14px; font-size: 0.75rem; }
.btn--md  { height: 38px; padding: 0 18px; font-size: 0.875rem; }
.btn--lg  { height: 46px; padding: 0 28px; font-size: 0.9375rem; }

.btn--primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn--primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--g600);
  border-color: var(--g200);
}

.btn--outline:hover {
  border-color: var(--red);
  color: var(--red);
}

.btn--black {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.btn--black:hover {
  background: var(--g600);
  border-color: var(--g600);
}

/* Visualmente oculto pero accesible para lectores de pantalla */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ============================================================
   17. RESPONSIVE MÓVIL
============================================================ */

/* Tablet: ≤ 900px */
@media (max-width: 900px) {

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__sub {
    max-width: 100%;
  }

  .categories__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .car-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .news-card--featured {
    grid-column: span 2;
    grid-row: span 1;
  }

  .news-card--featured .news-card__img {
    height: 220px;
  }

  .trust__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer__brand {
    grid-column: span 2;
  }

  .stats__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats__item:nth-child(2) {
    border-right: none;
  }

  .stats__item:nth-child(3),
  .stats__item:nth-child(4) {
    border-top: 1px solid rgba(255,255,255,0.08);
  }
}

/* Móvil: ≤ 640px */
@media (max-width: 640px) {

  :root {
    --font-size: 14px;
  }

  .container {
    padding: 0 var(--space-md);
  }

  /* Ocultar links y acciones de nav en móvil */
  .nav__links,
  .nav__actions {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .hero {
    padding: 28px 0 24px;
  }

  .hero__title {
    font-size: 1.65rem;
  }

  .search-box__grid {
    grid-template-columns: 1fr;
  }

  .categories__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .car-grid {
    grid-template-columns: 1fr;
  }

  .news__grid {
    grid-template-columns: 1fr;
  }

  .news-card--featured {
    grid-column: span 1;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer__brand {
    grid-column: span 1;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: 4px;
  }

  .stats__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .ad-slot--leaderboard {
    max-width: 100%;
    height: 60px;
  }
}


/* ============================================================
   18. ANIMACIONES Y PREFERENCIA DE MOVIMIENTO REDUCIDO
============================================================ */

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

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

/* Respetar preferencia del usuario de reducir movimiento */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero__eyebrow-dot {
    animation: none;
  }
}
