@font-face{font-family:'Poppins';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/poppins-400.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Poppins';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/poppins-500.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Poppins';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/poppins-600.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Poppins';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/poppins-700.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Poppins';font-style:normal;font-weight:800;font-display:swap;src:url(fonts/poppins-800.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
:root {
  --orange: #f47b20;
  --orange-d: #d9650f;
  --black: #0b0b0b;
  --ink: #16181b;
  --text: #2b2f33;
  --muted: #6b7178;
  --line: #e6e7e9;
  --bg: #ffffff;
  --soft: #f5f5f4;
  --wa: #25d366;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.07);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 16px/1.6 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
svg { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 600; color: var(--orange); margin: 0 0 .75rem; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 60ch; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .8em 1.4em; border-radius: 999px; background: var(--orange); color: #fff; font-weight: 600; border: 2px solid var(--orange); transition: background .2s, border-color .2s, color .2s, transform .2s; }
.btn:hover { background: var(--orange-d); border-color: var(--orange-d); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: rgba(127,127,127,.12); border-color: currentColor; }
.btn-wa { background: var(--wa); border-color: var(--wa); }
.btn-wa:hover { background: #1ebe5a; border-color: #1ebe5a; }
.btn-sm { padding: .5em 1em; font-size: .9rem; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--black); color: #fff; border-bottom: 1px solid #222; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.logo img { height: 56px; width: auto; }
.menu { display: flex; align-items: center; gap: 1.75rem; font-weight: 500; }
.menu a:not(.btn) { position: relative; padding: .25rem 0; color: #d6d6d6; transition: color .2s; }
.menu a:not(.btn):hover, .menu a[aria-current] { color: #fff; }
.menu a[aria-current]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--orange); }
.menu-btn { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: transform .25s, opacity .25s; }
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .menu { position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--black); padding: .5rem 16px 1.25rem; border-bottom: 1px solid #222; transform: translateY(-120%); transition: transform .3s; z-index: -1; }
  .menu a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid #1f1f1f; }
  .menu a[aria-current]::after { display: none; }
  .menu a[aria-current] { color: var(--orange); }
  .menu .btn { margin-top: 1rem; }
  .menu-open .menu { transform: none; }
  .menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  .menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Hero */
.hero { background: radial-gradient(1200px 400px at 85% 0%, rgba(244,123,32,.22), transparent 60%), var(--black); color: #fff; padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(4.5rem, 10vw, 8rem); }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5.5vw, 3.8rem); font-weight: 800; max-width: 16ch; }
.hero h1 span { color: var(--orange); }
.hero .lead { color: #b9bcc0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero .btn-ghost { color: #fff; }

.perks { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-top: -2.75rem; position: relative; }
.perks div { padding: 1.4rem 1.5rem; display: flex; flex-direction: column; }
.perks div + div { border-left: 1px solid var(--line); }
.perks strong { color: var(--ink); font-size: 1.15rem; }
.perks span { color: var(--muted); font-size: .92rem; }
@media (max-width: 640px) { .perks { grid-template-columns: 1fr; } .perks div + div { border-left: 0; border-top: 1px solid var(--line); } .perks div { padding: 1rem 1.25rem; } }

.page-head { background: var(--black); color: #fff; padding: 3rem 0 2.5rem; }
.page-head h1 { color: #fff; font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; }
.page-head .lead { color: #b9bcc0; margin: 0; }

.section { padding: 3.5rem 0 4.5rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.link { color: var(--orange-d); font-weight: 600; }
.link:hover { text-decoration: underline; }

/* Filtros */
.filters { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip { font: inherit; font-size: .9rem; font-weight: 500; padding: .45em 1.1em; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text); cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.select select { font: inherit; font-size: .9rem; padding: .5em 2.4em .5em 1em; border-radius: 999px; border: 1px solid var(--line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23333' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 1em center; appearance: none; cursor: pointer; }
.empty { text-align: center; color: var(--muted); padding: 3rem 0; }

/* Tarjetas */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card a { display: flex; flex-direction: column; height: 100%; }
.card-img { position: relative; aspect-ratio: 7 / 5; background: var(--soft); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.04); }
.card.is-sold .card-img img { filter: grayscale(.85); opacity: .8; }
.badge { position: absolute; top: 12px; left: 12px; padding: .3em .8em; border-radius: 999px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.badge-sold { background: var(--ink); color: #fff; }
.card-body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.card-meta { display: flex; gap: .5rem; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--orange-d); }
.card-meta span + span { color: var(--muted); }
.card-meta span + span::before { content: '·'; margin-right: .5rem; }
.card h3 { font-size: 1.02rem; font-weight: 600; margin: .35rem 0 .6rem; }
.card-specs { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.card-specs li { font-size: .78rem; background: var(--soft); color: var(--text); padding: .2em .65em; border-radius: 6px; text-transform: capitalize; }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: .85rem; border-top: 1px solid var(--line); }
.price { font-size: 1.25rem; color: var(--ink); font-weight: 700; }
.is-sold .price { color: var(--muted); font-size: 1rem; }
.more { font-size: .85rem; font-weight: 600; color: var(--orange-d); }

/* Marcas */
.brands { background: var(--soft); padding: 2.5rem 0; }
.brand-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.5rem 2.5rem; }
.brand-row img { height: 48px; width: auto; filter: grayscale(1); opacity: .65; transition: all .25s; mix-blend-mode: multiply; }
.brand-row img:hover { filter: none; opacity: 1; }

/* Nosotros */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.about-text p { font-size: 1.05rem; }
.about .big { font-size: 1.6rem; font-weight: 700; color: var(--orange); }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .75rem; }
.contact-list a, .site-footer p a { display: inline-flex; gap: .6rem; align-items: flex-start; }
.contact-list svg { color: var(--orange); margin-top: .25em; }
.contact-list a:hover { color: var(--orange-d); }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--soft); }
.map iframe { width: 100%; height: 100%; border: 0; }
.map-consent { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; padding: 1.5rem; text-align: center; background: radial-gradient(circle at 50% 35%, #fff, var(--soft)); }
.map-consent > svg { width: 44px; height: 44px; color: var(--orange); }
.map-consent p { margin: 0; max-width: 34ch; color: var(--muted); font-size: .9rem; }
.map-consent .link { font-size: .85rem; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; gap: 2rem; } }

/* Ficha de coche */
.car { padding: 1.5rem 0 4rem; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1.25rem; }
.crumbs a { color: var(--orange-d); }
.car-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.gallery-main { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--soft); aspect-ratio: 7 / 5; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--ink); font-size: 1.8rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow); display: grid; place-items: center; padding-bottom: 4px; }
.gal-nav.prev { left: 12px; } .gal-nav.next { right: 12px; }
.gal-count { position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,.65); color: #fff; font-size: .8rem; padding: .2em .7em; border-radius: 999px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .5rem; margin-top: .75rem; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--soft); aspect-ratio: 7 / 5; opacity: .7; transition: opacity .2s, border-color .2s; }
.thumbs button:hover { opacity: 1; }
.thumbs button.is-on { border-color: var(--orange); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.car-side { position: sticky; top: 96px; }
.car-side h1 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; }
.car-price { font-size: 2.2rem; font-weight: 800; color: var(--orange); margin: .25rem 0 1rem; line-height: 1; }
.sold-text { color: var(--muted); font-size: 1.6rem; }
.cta-col { display: grid; gap: .6rem; margin-bottom: 1.5rem; }
.cta-col .btn-ghost { color: var(--ink); }
.specs { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.specs div { padding: .7rem 1rem; border-bottom: 1px solid var(--line); }
.specs div:nth-child(odd) { border-right: 1px solid var(--line); }
.specs div:nth-last-child(-n+2):nth-child(odd), .specs div:last-child { border-bottom: 0; }
.specs dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; color: var(--ink); text-transform: capitalize; }
.car-desc { margin-top: 3rem; max-width: 820px; }
.car-desc h2 { font-size: 1.4rem; }
.feat { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .35rem 1.5rem; }
.feat li { position: relative; padding-left: 1.5rem; }
.feat li::before { content: ''; position: absolute; left: 0; top: .55em; width: .6rem; height: .35rem; border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(-45deg); }
.car-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .9rem; }
.car-nav a { color: var(--muted); display: flex; gap: .4rem; min-width: 0; }
.car-nav a:hover { color: var(--ink); }
.car-nav a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.car-nav a:last-child { justify-content: flex-end; text-align: right; }
.car-nav .all { font-weight: 600; color: var(--orange-d); }
@media (max-width: 900px) {
  .car-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .car-side { position: static; }
  .car-nav { grid-template-columns: 1fr 1fr; }
  .car-nav .all { grid-column: 1 / -1; order: -1; justify-self: center; }
}

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.92); display: grid; place-items: center; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1400px, 100%); max-height: 88vh; object-fit: contain; border-radius: 6px; }
.lb-close { position: absolute; top: 12px; right: 16px; background: none; border: 0; color: #fff; font-size: 2.5rem; cursor: pointer; line-height: 1; }

/* Pie */
.site-footer { background: var(--black); color: #c8cacd; padding-top: 3.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.site-footer img { height: 70px; width: auto; margin-bottom: 1rem; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer p { margin: 0 0 .6rem; }
.site-footer svg { color: var(--orange); margin-top: .3em; }
.site-footer a:hover { color: #fff; }
.site-footer .muted { color: #8e9296; max-width: 32ch; }
.footer-bottom { border-top: 1px solid #222; padding: 1.25rem 0 1.5rem; font-size: .85rem; color: #7c8085; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); transition: transform .2s; }
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 28px; height: 28px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
