/* ===================== Fuentes ===================== */
@font-face { font-family: "Russo One"; src: url(../fonts/russo-one.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Archivo"; src: url(../fonts/archivo-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url(../fonts/archivo-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Archivo"; src: url(../fonts/archivo-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Archivo"; src: url(../fonts/archivo-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

/* ===================== Variables ===================== */
:root {
  --rojo: #e3061b;
  --rojo-claro: #ff2e4c;
  --rojo-oscuro: #3d050b;
  --negro: #000;
  --fondo: #0b0b0b;
  --panel: #151515;
  --panel-2: #1b1b1b;
  --borde: rgba(255, 255, 255, .09);
  --texto: #f2f2f2;
  --texto-2: #b9b9b9;
  --texto-3: #8a8a8a;
  --display: "Russo One", "Arial Black", sans-serif;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1312px;
  --header-h: 100px;
  --radio: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--texto);
  background-color: var(--fondo);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 50% 0%, #161616 0%, #0b0b0b 60%);
  background-attachment: fixed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-h);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }

/* ===================== Tipografía display ===================== */
.display {
  font-family: var(--display);
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: .06em;
  display: inline-block;
  transform: skewX(-8deg);
}
.rojo { color: var(--rojo-claro); }

/* ===================== Header ===================== */
.header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h);
  background: #000; z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
}
.header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; max-width: 1312px; }

.logo { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1; user-select: none; }
.logo img { max-height: 62px; width: auto; }
.logo-main {
  font-family: var(--display); font-style: italic; font-size: 54px; color: var(--rojo);
  transform: skewX(-14deg); letter-spacing: .02em;
  text-shadow: 0 0 1px var(--rojo-claro);
}
.logo-sub {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--sans); font-weight: 700; font-style: italic; font-size: 18px; letter-spacing: .08em;
  color: #fff; border: 2px solid #fff; padding: 1px 8px 0;
  transform: skewX(-14deg); margin-top: -4px; margin-right: -8px;
}
.logo-sub svg { width: 17px; height: 17px; }
.logo.sm .logo-main { font-size: 26px; }
.logo.sm .logo-sub { font-size: 9px; }

.nav { display: flex; gap: 40px; }
.nav a {
  font-size: 15px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase;
  color: #e6e6e6; position: relative; padding: 6px 0; transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--rojo); transform: scaleX(0); transition: transform .25s;
}
.nav a:hover { color: #fff; }
.nav a:hover::after, .nav a.activo::after { transform: scaleX(1); }
.nav a.activo { color: #fff; }

.burger { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after {
  display: block; width: 22px; height: 2px; background: #fff; position: relative; transition: .25s;
}
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -7px; } .burger span::after { top: 7px; }
.burger.abierto span { background: transparent; }
.burger.abierto span::before { top: 0; transform: rotate(45deg); }
.burger.abierto span::after { top: 0; transform: rotate(-45deg); }

/* ===================== Botón WhatsApp flotante ===================== */
.wa-float {
  position: fixed; right: 90px; bottom: 80px; width: 68px; height: 68px; z-index: 60;
  border-radius: 50%; background: #25d366; display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .45); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 40px; height: 40px; fill: #fff; }

/* ===================== Hero slider ===================== */
.hero { position: relative; height: 630px; overflow: hidden; background: #000; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease;
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.hero-slide.activo { opacity: 1; }
.hero-slide::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.hero-content { position: relative; z-index: 1; padding: 0 16px; margin-top: -10px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 16px; margin-bottom: 14px;
  font-family: var(--display); font-style: italic; font-size: 16px; letter-spacing: .3em; color: var(--rojo-claro);
}
.hero-tag::before, .hero-tag::after { content: ""; width: 90px; height: 2px; background: var(--rojo); }
.hero h1, .hero h2 { display: block; font-size: clamp(34px, 4.6vw, 66px); line-height: 1.08; margin-bottom: 22px; }
.hero h1 span, .hero h2 span { display: block; }
.hero p { font-size: 20px; line-height: 1.6; color: #e8e8e8; }
.hero-btns { display: flex; gap: 10px; justify-content: center; margin-top: 30px; }
.hero-dots { position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%); display: flex; gap: 18px; z-index: 2; }
.hero-dots button { width: 40px; height: 6px; background: rgba(255, 255, 255, .25); border-radius: 1px; transition: background .3s; }
.hero-dots button.activo { background: var(--rojo); }

/* ===================== Botones ===================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 62px; padding: 0 62px;
  font-weight: 600; font-size: 18px; transition: background .2s, border-color .2s, transform .2s;
  transform: skewX(-8deg);
}
.btn > span { display: inline-flex; align-items: center; gap: 10px; transform: skewX(8deg); }
.btn-rojo { background: var(--rojo); color: #fff; }
.btn-rojo:hover { background: color-mix(in srgb, var(--rojo) 88%, #fff); }
.btn-borde { border: 1px solid var(--rojo-claro); color: #fff; background: rgba(0, 0, 0, .25); padding: 0 48px; }
.btn-borde:hover { background: color-mix(in srgb, var(--rojo) 20%, transparent); }
.btn .flecha { font-size: 22px; line-height: 1; }

/* ===================== Secciones ===================== */
.seccion { padding: 64px 0 40px; }
.titulo-seccion {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-bottom: 44px;
}
.titulo-seccion::before, .titulo-seccion::after {
  content: ""; width: 76px; height: 2px; background: var(--rojo);
}
.titulo-seccion h1, .titulo-seccion h2 { font-size: clamp(22px, 2.3vw, 33px); font-weight: 400; }
.subtitulo { text-align: center; color: var(--texto-2); font-size: 13px; margin-top: -18px; margin-bottom: 30px; }

/* ===================== Carrusel ===================== */
.carrusel { position: relative; max-width: 1280px; margin: 0 auto; overflow: hidden; }
.carrusel-track { display: flex; gap: 33px; will-change: transform; }
.carrusel-track .card { flex: 0 0 332px; }
.carrusel-nav {
  position: absolute; top: 34%; width: 44px; height: 44px; border-radius: 50%; z-index: 3;
  background: rgba(0, 0, 0, .7); border: 1px solid var(--borde); display: grid; place-items: center;
  opacity: 0; transition: opacity .2s;
}
.carrusel:hover .carrusel-nav { opacity: 1; }
.carrusel-nav.prev { left: 6px; } .carrusel-nav.next { right: 6px; }
.carrusel-nav svg { width: 20px; height: 20px; stroke: #fff; }

/* ===================== Card vehículo ===================== */
.card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 8px;
  background: linear-gradient(180deg, #0f0f0f 0%, color-mix(in srgb, var(--rojo-oscuro) 40%, #0f0f0f) 55%, var(--rojo-oscuro) 100%);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px color-mix(in srgb, var(--rojo) 15%, transparent); }
.card-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #1a1a1a; border-radius: 8px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.04); }
.badge-oferta {
  position: absolute; top: 14px; left: 0; background: var(--rojo); color: #fff;
  font-size: 13px; font-weight: 700; letter-spacing: .05em; padding: 4px 24px 4px 12px;
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
}
.card-body { padding: 20px 15px 18px; display: flex; flex-direction: column; gap: 2px; }
.card-titulo { font-weight: 600; font-size: 20px; line-height: 1.25; margin-bottom: 4px; }
.card-precio { color: var(--rojo-claro); font-size: 19px; font-weight: 500; }
.card-precio s { color: var(--texto-3); font-size: 16px; margin-left: 4px; }
.card-meta { font-size: 16px; color: #ddd; display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.card-meta i { width: 1px; height: 14px; background: var(--rojo); display: inline-block; }
.card-estado { font-size: 14px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #cfcfcf; }
.card-estado.nuevo { color: var(--rojo-claro); }
.card-link { font-size: 16px; font-weight: 600; margin-top: 8px; display: inline-flex; align-items: center; gap: 4px; }
.card-link:hover { color: var(--rojo-claro); }

/* Grilla de cards (usados) */
.grid-autos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-autos .card-body { padding: 20px 15px 18px; }
.grid-autos .card-titulo { font-size: 20px; }

/* ===================== Marcas 0km ===================== */
.grid-marcas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; max-width: 1215px; margin: 0 auto; }
.marca-card {
  border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radio); background: rgba(10, 10, 10, .6);
  padding: 24px 16px 26px; text-align: center; display: flex; flex-direction: column; align-items: center;
  transition: border-color .25s, background .25s, transform .25s; cursor: pointer;
}
.marca-card:hover { border-color: color-mix(in srgb, var(--rojo) 50%, transparent); background: color-mix(in srgb, var(--rojo-oscuro) 50%, transparent); transform: translateY(-3px); }
.marca-logo { height: 132px; display: grid; place-items: center; margin-bottom: 30px; }
.marca-logo img { max-height: 126px; max-width: 170px; object-fit: contain; filter: grayscale(1) brightness(2); }
.marca-iniciales {
  width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center;
  border: 3px solid #d9d9d9; color: #eee; font-family: var(--display); font-size: 40px; letter-spacing: .02em;
  background: radial-gradient(circle at 30% 30%, #2a2a2a, #0d0d0d);
}
.marca-nombre { font-size: 26px; }
.marca-modelos { font-size: 11px; letter-spacing: .16em; color: var(--texto-3); text-transform: uppercase; margin-top: 8px; }
.marca-explorar { font-size: 15px; color: var(--rojo-claro); margin-top: 16px; }

/* ===================== Proceso ===================== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 23px; max-width: 1169px; margin: 0 auto; }
.paso {
  border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radio); padding: 26px 26px 29px;
  background: linear-gradient(180deg, rgba(25, 25, 25, .8), rgba(12, 12, 12, .8)); text-align: center;
}
.paso-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 17px; }
.paso-num { font-size: 13px; letter-spacing: .3em; color: var(--rojo-claro); }
.paso-ico { width: 44px; height: 44px; border-radius: 9px; background: color-mix(in srgb, var(--rojo) 15%, transparent); display: grid; place-items: center; }
.paso-ico svg { width: 20px; height: 20px; fill: var(--rojo-claro); }
.paso h3 { font-size: 25px; font-weight: 600; margin-bottom: 12px; }
.paso p { font-size: 18px; color: #cfcfcf; line-height: 1.55; }

/* ===================== Confianza ===================== */
.confianza {
  position: relative; max-width: 1044px; margin: 0 auto; aspect-ratio: 720 / 360; border-radius: var(--radio);
  overflow: hidden; border: 1px solid rgba(255, 255, 255, .08); background-size: cover; background-position: center;
  display: flex; align-items: flex-end;
}
.confianza::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 30%, rgba(0,0,0,.85) 100%); }
.confianza-txt { position: relative; padding: 0 38px 38px; max-width: 522px; }
.confianza h3 { display: block; font-size: 35px; line-height: 1.05; margin-bottom: 20px; }
.confianza h3 span { display: block; }
.confianza p { font-size: 19px; color: #cfcfcf; }

/* ===================== FAQ ===================== */
.faq { max-width: 1122px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.faq-item { border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radio); background: rgba(22, 22, 22, .85); overflow: hidden; }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 23px; padding: 20px 23px; text-align: left; font-weight: 600; font-size: 21px; }
.faq-q .chev { width: 39px; height: 39px; border-radius: 7px; background: var(--rojo); display: grid; place-items: center; flex-shrink: 0; transition: transform .3s; }
.faq-q .chev svg { width: 20px; height: 20px; stroke: #fff; stroke-width: 3; fill: none; }
.faq-item.abierto .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { margin: 0 23px; padding: 20px 0 23px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 18px; color: #d0d0d0; line-height: 1.6; }

/* ===================== Footer ===================== */
.footer { background: #000; margin-top: 116px; border-top: 1px solid rgba(255, 255, 255, .06); }
.footer-top { display: grid; grid-template-columns: 1.6fr .8fr 1fr; gap: 58px; padding: 130px 23px 116px; max-width: 1215px; }
.footer-desc { font-size: 19px; color: #d6d6d6; margin: 38px 0 32px; max-width: 450px; line-height: 1.6; }
.footer-redes { display: flex; gap: 14px; }
.footer-redes a { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .15); display: grid; place-items: center; background: #151515; transition: background .2s; }
.footer-redes a:hover { background: var(--rojo); }
.footer-redes svg { width: 20px; height: 20px; fill: #fff; }
.footer h4 { font-size: 20px; font-weight: 600; margin-bottom: 32px; position: relative; }
.footer h4::after { content: ""; position: absolute; left: 0; bottom: -9px; width: 52px; height: 2px; background: var(--rojo); }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer li a, .footer li span { font-size: 19px; color: #dcdcdc; display: inline-flex; align-items: center; gap: 13px; transition: color .2s; }
.footer li a:hover { color: var(--rojo-claro); }
.footer li svg { width: 22px; height: 22px; fill: #bdbdbd; flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .07); }
.footer-bottom .container { max-width: 1215px; display: flex; justify-content: space-between; align-items: center; height: 107px; font-size: 17px; color: #cfcfcf; }
.footer-bottom strong { font-weight: 600; font-size: 19px; color: #fff; margin-left: 6px; }

/* ===================== Banner de página interna ===================== */
.banner {
  position: relative; height: 218px; background-size: cover; background-position: center;
  display: grid; place-items: center; margin-bottom: 44px;
}
.banner::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .6); }
.banner h1 { position: relative; display: flex; align-items: center; gap: 20px; font-size: 30px; font-weight: 400; }
.banner h1::before, .banner h1::after { content: ""; width: 72px; height: 2px; background: var(--rojo); }

/* ===================== Filtros (usados) ===================== */
.filtros { border: 1px solid rgba(255, 255, 255, .35); border-radius: 6px; background: rgba(12, 12, 12, .85); padding: 20px 20px 23px; margin: 38px 0 41px; }
.filtros-titulo { font-size: 19px; font-weight: 600; padding-left: 14px; border-left: 3px solid var(--rojo); margin-bottom: 20px; }
.filtros-row { display: grid; grid-template-columns: 1fr 230px 230px; gap: 20px; align-items: end; }
.campo label { display: block; font-size: 14px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #cfcfcf; margin-bottom: 6px; }
.campo input, .campo select {
  width: 100%; height: 46px; border-radius: 3px; border: 1px solid rgba(255, 255, 255, .08); background: #1f1f1f;
  color: #fff; font: 500 17px var(--sans); padding: 0 16px; outline: none;
}
.campo select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23ccc' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; padding-right: 24px; cursor: pointer; }
.campo input:focus, .campo select:focus { border-color: color-mix(in srgb, var(--rojo) 60%, transparent); }
.campo-buscar { position: relative; }
.campo-buscar svg { position: absolute; right: 14px; bottom: 13px; width: 19px; height: 19px; stroke: #888; fill: none; stroke-width: 2.4; }

.paginacion { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 44px; font-size: 17px; color: #cfcfcf; }
.paginacion button, .paginacion a { width: 32px; height: 26px; border-radius: 3px; background: var(--rojo); display: grid; place-items: center; }
.paginacion button:disabled { background: var(--rojo-oscuro); cursor: default; }
.paginacion svg { width: 17px; height: 17px; stroke: #fff; stroke-width: 3; fill: none; }
.vacio { grid-column: 1 / -1; text-align: center; padding: 87px 0; color: var(--texto-2); }

/* ===================== 0km: modelos de una marca ===================== */
.volver { display: inline-flex; align-items: center; gap: 9px; font-size: 19px; color: var(--texto-2); margin-bottom: 29px; }
.volver:hover { color: #fff; }

/* ===================== Vendidos ===================== */
.grid-vendidos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 23px; max-width: 1247px; margin: 0 auto; }
.vendido {
  position: relative; aspect-ratio: 275 / 205; border-radius: 6px; overflow: hidden; border: 1px solid rgba(255,255,255,.12);
  background: #111;
}
.vendido img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.75); }
.vendido::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.9) 100%); }
.sello {
  position: absolute; top: 34%; left: 50%; transform: translate(-50%, -50%) rotate(-14deg); z-index: 2;
  border: 3px solid var(--rojo); padding: 6px 26px; color: var(--rojo); background: rgba(0, 0, 0, .15);
  font-family: var(--display); font-style: italic; font-size: 38px; letter-spacing: .1em; text-shadow: 0 0 2px rgba(0,0,0,.5);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.2);
}
.vendido-fecha { position: absolute; top: 13px; right: 13px; z-index: 2; background: rgba(0, 0, 0, .55); font: 600 14px ui-monospace, monospace; padding: 6px 10px; border-radius: 3px; }
.vendido-info { position: absolute; left: 16px; bottom: 17px; z-index: 2; }
.vendido-info small { display: block; font-size: 14px; letter-spacing: .14em; color: #a9a9a9; text-transform: uppercase; }
.vendido-info strong { display: block; font-size: 20px; font-weight: 600; }
.vendido-info span { font-size: 17px; color: #d0d0d0; }

/* ===================== Nosotros ===================== */
.historia { max-width: 1090px; margin: 0 auto; display: flex; flex-direction: column; gap: 58px; }
.hito { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hito:nth-child(even) .hito-img { order: 2; }
.hito-img { border-radius: var(--radio); overflow: hidden; aspect-ratio: 354 / 265; background: #1a1a1a; }
.hito-img img { width: 100%; height: 100%; object-fit: cover; }
.hito h3 { font-size: 32px; font-weight: 400; }
.hito-fecha { font-size: 14px; letter-spacing: .25em; color: var(--rojo-claro); text-transform: uppercase; margin: 6px 0 17px; }
.hito p { font-size: 18px; color: #cfcfcf; line-height: 1.6; margin-bottom: 17px; }
.valores-titulo { text-align: center; font-size: 38px; font-weight: 600; margin-top: 102px; }
.valor { border: 1px solid rgba(255,255,255,.1); border-radius: var(--radio); padding: 23px 23px 32px; background: rgba(20, 20, 20, .8); }
.valor-ico { width: 55px; height: 55px; border-radius: 7px; background: color-mix(in srgb, var(--rojo) 20%, transparent); display: grid; place-items: center; margin-bottom: 23px; }
.valor-ico svg { width: 29px; height: 29px; fill: #fff; }
.valor h3 { font-size: 25px; font-weight: 600; margin-bottom: 9px; }
.valor p { font-size: 17px; color: #cfcfcf; line-height: 1.6; }
.grid-valores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 23px; max-width: 1186px; margin: 0 auto; }

/* ===================== Contacto ===================== */
.sucursales { max-width: 1186px; margin: 0 auto; display: flex; flex-direction: column; gap: 70px; }
.sucursal {
  position: relative; aspect-ratio: 818 / 345; border-radius: var(--radio); overflow: hidden; background-size: cover; background-position: center;
  display: flex; align-items: flex-end; justify-content: space-between; padding: 0 23px 23px;
}
.sucursal::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.8)); }
.sucursal > * { position: relative; }
.sucursal h3 { font-size: 32px; font-weight: 700; }
.sucursal .dir { font-size: 19px; color: #ddd; margin: 2px 0 14px; }
.sucursal .hor { font-size: 18px; color: #eee; }
.btn-mapa { display: inline-flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 500; background: rgba(40, 40, 40, .9); border: 1px solid rgba(255,255,255,.2); border-radius: 6px; padding: 10px 17px; white-space: nowrap; }
.btn-mapa:hover { background: var(--rojo); }
.btn-mapa svg { width: 16px; height: 16px; fill: #fff; }

/* ===================== Detalle vehículo ===================== */
.detalle { display: grid; grid-template-columns: 1.35fr 1fr; gap: 46px; margin-top: 46px; }
.galeria-main { border-radius: var(--radio); overflow: hidden; aspect-ratio: 4 / 3; background: #1a1a1a; }
.galeria-main img { width: 100%; height: 100%; object-fit: cover; }
.galeria-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 12px; }
.galeria-thumbs button { border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3; border: 2px solid transparent; opacity: .6; }
.galeria-thumbs button.activo { border-color: var(--rojo); opacity: 1; }
.galeria-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detalle-info h1 { font-size: 38px; font-weight: 700; line-height: 1.2; }
.detalle-precio { font-size: 38px; color: var(--rojo-claro); font-weight: 600; margin: 12px 0 29px; }
.detalle-precio s { font-size: 22px; color: var(--texto-3); margin-left: 12px; font-weight: 400; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 35px; }
.spec { border: 1px solid var(--borde); border-radius: 9px; padding: 14px 17px; background: rgba(20,20,20,.8); }
.spec small { display: block; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--texto-3); }
.spec strong { font-size: 20px; font-weight: 600; }
.btn-wa { width: 100%; justify-content: center; background: #25d366; color: #fff; transform: none; border-radius: 6px; }
.btn-wa:hover { background: #1fbd5a; }
.btn-wa svg { width: 26px; height: 26px; fill: #fff; }

/* ===================== Animaciones de entrada ===================== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; animation: reveal-fallback 0s 3s forwards; }
.js .reveal.visible { opacity: 1; transform: none; }
.js-ready .reveal { animation: none; }
.loader { width: 22px; height: 22px; border: 2px solid color-mix(in srgb, var(--rojo) 25%, transparent); border-top-color: var(--rojo); border-radius: 50%; animation: giro .8s linear infinite; margin: 40px auto; }
@keyframes giro { to { transform: rotate(360deg); } }
/* If site.js never runs, sections still appear after 3s instead of staying hidden. */
@keyframes reveal-fallback { to { opacity: 1; transform: none; } }

/* ===================== Responsive ===================== */
@media (max-width: 1100px) {
  :root { --header-h: 76px; }
  .logo-main { font-size: 36px; }
  .logo-sub { font-size: 13px; }
  .burger { display: flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; background: #000; flex-direction: column; gap: 0;
    padding: 8px 20px 20px; transform: translateY(-120%); transition: transform .3s; border-bottom: 1px solid var(--borde);
  }
  .nav.abierto { transform: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav a::after { display: none; }
  .nav a.activo { color: var(--rojo-claro); }
}
@media (max-width: 860px) {
  .grid-marcas { grid-template-columns: repeat(3, 1fr); }
  .grid-autos, .grid-vendidos { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
  .detalle { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero { height: 520px; }
  .hero h1, .hero h2 { font-size: 27px; }
  .hero p { font-size: 16px; }
  .btn { height: 50px; font-size: 16px; }
  .carrusel-track .card { flex-basis: 270px; }
  .hero-btns { flex-direction: column; align-items: center; }
  .hero-tag::before, .hero-tag::after { width: 30px; }
  .titulo-seccion h1, .titulo-seccion h2, .banner h1 { font-size: 17px; }
  .titulo-seccion::before, .titulo-seccion::after, .banner h1::before, .banner h1::after { width: 28px; }
  .grid-marcas { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-valores, .grid-autos, .grid-vendidos { grid-template-columns: 1fr; }
  .filtros-row { grid-template-columns: 1fr 1fr; }
  .filtros-row .campo-buscar { grid-column: 1 / -1; }
  .confianza { aspect-ratio: 4 / 5; }
  .hito { grid-template-columns: 1fr; gap: 18px; }
  .hito:nth-child(even) .hito-img { order: 0; }
  .sucursal { aspect-ratio: auto; min-height: 300px; flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-top { grid-template-columns: 1fr; padding: 56px 16px; }
  .footer-bottom .container { flex-direction: column; justify-content: center; gap: 6px; height: auto; padding: 18px 16px; }
  .wa-float { right: 18px; bottom: 18px; width: 52px; height: 52px; }
}
.btn-wa > span { transform: none; }
.sello { text-transform: uppercase; }
@media (max-width: 600px) { .hero-btns .btn { min-width: 210px; justify-content: center; } }

/* ===================== Server-rendered additions ===================== */
/* Without JS: carousels scroll natively and FAQ answers stay open. */
html:not(.js) .carrusel { overflow-x: auto; }
html:not(.js) .carrusel-nav { display: none; }
html:not(.js) .faq-a { max-height: none; }
.filtros-enviar { margin-top: 20px; }
.filtros-enviar .btn { height: 46px; padding: 0 32px; font-size: 16px; }
.detalle-desc { margin: -12px 0 30px; }
.detalle-desc p { font-size: 18px; color: #cfcfcf; line-height: 1.6; margin-bottom: 12px; white-space: pre-line; }
