/* ========================================================================
   AR Motor — Estilos compartidos para páginas internas
   (inventario, vendidos, vehiculo-detalle, vehiculo-vendido-detalle)
   ======================================================================== */

:root {
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --accent: #ffffff;
    --accent-hover: #f0f0f0;
    --accent-muted: rgba(255, 255, 255, 0.14);
    --radius-pill: 999px;
    --radius-card: 14px;
    --nav-link-bg-hover: rgba(255, 255, 255, 0.14);
    --hero-overlay: rgba(0, 0, 0, 0.22);
    --page-bg: #0a0a0a;
    --page-bg-soft: #0f0f10;
    --header-height: 4.5rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.82) transparent;
}

*::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.78);
    border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
    background: #ffffff;
}

*::-webkit-scrollbar-corner {
    background: transparent;
}

body {
    margin: 0;
    font-family: "DM Sans", system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    background: var(--page-bg);
    min-height: 100vh;
}

/* ── Header (mismo que index.html) ── */
.site-header {
    padding: 0.85rem clamp(1.25rem, 4vw, 2.5rem);
    padding-top: max(0.85rem, env(safe-area-inset-top, 0px));
    background: rgba(10, 10, 10, 0.28);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition:
        background 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    display: block;
    height: clamp(28px, 5vw, 36px);
    width: auto;
    object-fit: contain;
}

.site-header.is-scrolled {
    background: rgba(10, 10, 10, 0.68);
    border-bottom-color: rgba(255, 255, 255, 0.11);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
}

/* ── Botones ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease,
        transform 0.2s ease;
    white-space: nowrap;
}

.btn--primary {
    background: var(--white);
    color: var(--text-dark);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.btn--primary:hover,
.btn--primary:focus-visible {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.16);
    color: var(--white);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
}

/* ── Hero pequeño para páginas internas ── */
.page-hero {
    position: relative;
    padding: clamp(7rem, 14vw, 10rem) clamp(1.25rem, 4vw, 2.5rem) clamp(2.2rem, 5vw, 3.5rem);
    background:
        radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.04), transparent 60%),
        radial-gradient(circle at 80% 100%, rgba(255, 255, 255, 0.04), transparent 55%),
        var(--page-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-hero__inner {
    max-width: 1180px;
    margin: 0 auto;
    text-align: center;
}

.page-hero__eyebrow {
    margin: 0 0 0.6rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.page-hero__title {
    margin: 0 0 0.85rem;
    color: var(--white);
    font-size: clamp(2rem, 5vw, 2.85rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.page-hero__subtitle {
    margin: 0 auto;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.62);
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    line-height: 1.55;
}

/* ── Sección stock ── */
.stock {
    padding: calc(var(--header-height) + clamp(2rem, 4vw, 3rem)) clamp(1.25rem, 4vw, 2.5rem) clamp(4rem, 8vw, 6rem);
    background: var(--page-bg);
}

.stock__inner {
    max-width: 1180px;
    margin: 0 auto;
}

.stock__header {
    margin: 0 0 clamp(1.75rem, 4vw, 2.5rem);
    max-width: 40rem;
}

.stock__eyebrow {
    margin: 0 0 0.55rem;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.stock__page-title {
    margin: 0 0 0.6rem;
    color: var(--white);
    font-size: clamp(1.75rem, 3.5vw, 2.35rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.12;
}

.stock__lead {
    margin: 0;
    color: rgba(255, 255, 255, 0.52);
    font-size: clamp(0.92rem, 1.4vw, 1rem);
    line-height: 1.6;
    max-width: 52ch;
}

.stock__toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 1.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
}

.stock__count {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

.stock__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.35rem, 2.8vw, 2.25rem);
}

.stock-card {
    display: flex;
    flex-direction: column;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
}

.stock-card:hover {
    transform: none;
    box-shadow: none;
}

.stock-card__anchor {
    display: flex;
    flex-direction: column;
    gap: 0;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.stock-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 6px;
    background: #111;
    isolation: isolate;
}

.stock-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.18) 100%);
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
    z-index: 1;
}

.stock-card:hover .stock-card__media::after {
    opacity: 1;
}

.stock-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stock-card:hover .stock-card__media img {
    transform: scale(1.025);
}

.stock-card--static,
.stock-card--static .stock-card__anchor {
    cursor: default;
}

.stock-card__badge {
    position: absolute;
    top: 0.7rem;
    left: 0.7rem;
    z-index: 2;
    padding: 0.28rem 0.55rem;
    background: rgba(8, 8, 8, 0.72);
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.stock-card__badge--reservado {
    border-color: rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.82);
}

.stock-card__badge--vendido {
    border-color: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.65);
}

.stock-card__gal-count {
    position: absolute;
    bottom: 0.55rem;
    right: 0.55rem;
    padding: 0.28rem 0.55rem;
    background: rgba(0, 0, 0, 0.62);
    color: var(--white);
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 500;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.stock-card__body {
    padding: 0.9rem 0.1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex-grow: 1;
}

.stock-card__title {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.25s ease;
}

.stock-card:hover .stock-card__title {
    color: rgba(255, 255, 255, 0.96);
}

.stock-card__subtitle {
    margin: 0 0 0.75rem;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.84rem;
    font-weight: 400;
    line-height: 1.4;
}

.stock-card__price-label {
    margin: 0 0 0.15rem;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.stock-card__price {
    margin: 0;
    color: var(--white);
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
}

.stock-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
}

.stock-card__tags span {
    font-size: 0.68rem;
    padding: 0.28rem 0.5rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.78);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.stock__status {
    margin: 1.5rem 0 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.96rem;
}

.stock__cta {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

.stock__load-more {
    display: flex;
    justify-content: center;
    margin-top: clamp(2rem, 4vw, 2.75rem);
}

.stock__load-more[hidden] {
    display: none !important;
}

.stock__load-more .btn {
    min-width: 10rem;
}

.stock__load-more .btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.stock-card--skeleton {
    pointer-events: none;
}

.stock-card--skeleton .stock-card__media {
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    animation: stock-pulse 1.4s ease-in-out infinite;
}

.stock-card--skeleton .stock-card__sk-line {
    background: rgba(255, 255, 255, 0.05);
    animation: stock-pulse 1.4s ease-in-out infinite;
}

.stock-card__sk-line {
    height: 0.75rem;
    border-radius: 3px;
    margin-bottom: 0.45rem;
}

.stock-card__sk-line--short {
    width: 38%;
    height: 0.9rem;
    margin-bottom: 0;
}

@keyframes stock-pulse {
    0%, 100% { opacity: 0.55; }
    50%      { opacity: 0.95; }
}

@media (max-width: 1024px) {
    .stock__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .stock__grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .stock-card--skeleton .stock-card__media,
    .stock-card__sk-line { animation: none; }
}

/* ========================================================================
   Ficha de vehículo (vehiculo-detalle / vehiculo-vendido-detalle)
   ======================================================================== */
.vehicle {
    padding: calc(var(--header-height) + clamp(1.5rem, 3vw, 2.25rem)) clamp(1.25rem, 4vw, 2.5rem) clamp(4rem, 8vw, 6rem);
    background: var(--page-bg);
}

.vehicle__inner {
    max-width: 1180px;
    margin: 0 auto;
}

.vehicle__back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 clamp(1.25rem, 3vw, 1.75rem);
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s ease;
}

.vehicle__back:hover {
    color: rgba(255, 255, 255, 0.88);
}

.vehicle__back::before {
    content: "←";
    font-size: 0.9rem;
    line-height: 1;
    letter-spacing: 0;
}

.vehicle__head {
    margin: 0 0 clamp(1.75rem, 4vw, 2.5rem);
    max-width: 48rem;
}

.vehicle-info__estado {
    display: block;
    margin: 0 0 0.65rem;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.vehicle-info__estado--reservado,
.vehicle-info__estado--vendido {
    color: rgba(255, 255, 255, 0.52);
}

.vehicle-info__title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.75rem, 3.8vw, 2.5rem);
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--white);
}

.vehicle-info__subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: clamp(0.9rem, 1.4vw, 0.98rem);
    line-height: 1.5;
    letter-spacing: 0.01em;
}

.vehicle__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
}

@media (max-width: 980px) {
    .vehicle__layout {
        grid-template-columns: 1fr;
        gap: clamp(1.75rem, 4vw, 2.5rem);
    }
}

/* Galería */
.gallery {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gallery__main {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #111;
    overflow: hidden;
    cursor: zoom-in;
}

.gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery__main:hover img {
    transform: scale(1.015);
}

.gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    color: var(--white);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
    z-index: 2;
    opacity: 0.7;
}

.gallery__main:hover .gallery__nav,
.gallery__nav:focus-visible {
    opacity: 1;
}

@media (hover: none) {
    .gallery__nav {
        opacity: 1;
    }
}

.gallery__nav:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.35);
}

.gallery__nav--prev { left: 0.75rem; }
.gallery__nav--next { right: 0.75rem; }

.gallery__counter {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    padding: 0.28rem 0.6rem;
    background: rgba(0, 0, 0, 0.45);
    color: rgba(255, 255, 255, 0.88);
    border-radius: 2px;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.gallery__thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.gallery__thumb {
    flex: 0 0 4.5rem;
    width: 4.5rem;
    aspect-ratio: 4 / 3;
    background: #111;
    border: 1px solid transparent;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s ease, opacity 0.2s ease;
    padding: 0;
    opacity: 0.55;
}

.gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery__thumb.is-active {
    border-color: rgba(255, 255, 255, 0.55);
    opacity: 1;
}

.gallery__thumb:hover {
    opacity: 0.85;
}

/* Panel lateral */
.vehicle-info {
    display: flex;
    flex-direction: column;
    gap: 0;
    color: var(--white);
}

.vehicle-info__price-block {
    margin: 0 0 clamp(1.5rem, 3vw, 2rem);
    padding: 0 0 clamp(1.5rem, 3vw, 2rem);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    border-radius: 0;
}

.vehicle-info__price-label {
    margin: 0 0 0.35rem;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.vehicle-info__price {
    margin: 0;
    color: var(--white);
    font-size: clamp(1.65rem, 3vw, 2.1rem);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.vehicle-info__price--struck {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.vehicle-info__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.vehicle-info__cta .btn {
    flex: 1 1 auto;
    min-width: 8.5rem;
    justify-content: center;
}

.specs {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.specs li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
    border-radius: 0;
}

.specs li:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.specs__label {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.specs__value {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: right;
}

.vehicle-extra {
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 4vw, 2.75rem);
    max-width: 48rem;
}

.vehicle-extra__block--docs:empty,
.vehicle-extra__block--docs:not(:has(.vehicle-pdf)) {
    display: none;
}

.vehicle-extra__title {
    margin: 0 0 0.75rem;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.vehicle-extra__text {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.94rem;
    line-height: 1.7;
    white-space: pre-wrap;
}

.vehicle-pdfs {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.vehicle-pdf {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.vehicle-pdf:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.vehicle-pdf:hover {
    color: var(--white);
    background: transparent;
    border-color: rgba(255, 255, 255, 0.06);
}

.vehicle-pdf__icon {
    flex-shrink: 0;
    width: auto;
    height: auto;
    padding: 0;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.42);
    border-radius: 0;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
}

.vehicle__loading,
.vehicle__error {
    padding: 4rem 1rem;
    text-align: left;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.92rem;
    letter-spacing: 0.02em;
}

/* ========================================================================
   Footer (mismo que index.html)
   ======================================================================== */
.site-footer {
    margin-top: clamp(2rem, 4vw, 3rem);
    padding: clamp(3rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 2.5rem) 2rem;
    background: #050505;
}

.site-footer__inner {
    max-width: 1180px;
    margin: 0 auto;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 0.72fr)) minmax(0, 1.05fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: start;
}

.site-footer__nav {
    display: flex;
    flex-direction: column;
}

.site-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.site-footer__links a {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.88rem;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer__links a:hover {
    color: var(--white);
}

.site-footer__logo {
    display: block;
    width: auto;
    height: 2.25rem;
    margin-bottom: 1.25rem;
}

.site-footer__tagline {
    margin: 0;
    max-width: 36ch;
    color: rgba(255, 255, 255, 0.68);
    font-size: clamp(0.9rem, 1.8vw, 0.98rem);
    line-height: 1.75;
}

.site-footer__brand .site-footer__support {
    margin-top: 1.75rem;
}

.site-footer__heading {
    margin: 0 0 1.1rem;
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.site-footer__phone {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 1.35rem;
    color: var(--white);
    font-size: clamp(1.05rem, 2.2vw, 1.2rem);
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

.site-footer__phone:hover {
    color: rgba(255, 255, 255, 0.78);
}

.site-footer__phone svg {
    width: 1.1rem;
    height: 1.1rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
    flex-shrink: 0;
    opacity: 0.85;
}

.site-footer__social {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.site-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--white);
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.site-footer__social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

.site-footer__social-link img {
    width: 1.15rem;
    height: 1.15rem;
    display: block;
    object-fit: contain;
}

.site-footer__map-block {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.site-footer__map {
    position: relative;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    aspect-ratio: 16 / 9;
    max-height: 11rem;
    text-decoration: none;
    background: #111;
}

.site-footer__map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
}

.site-footer__address {
    margin: 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.82rem;
    line-height: 1.55;
}

.site-footer__address a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.site-footer__address a:hover {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.45);
}

.site-footer__bottom {
    margin-top: clamp(2.25rem, 4vw, 3rem);
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    text-align: center;
}

.site-footer__copy {
    margin: 0;
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.78rem;
    letter-spacing: 0.03em;
}

@media (max-width: 1100px) {
    .site-footer__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .site-footer__brand {
        grid-column: 1 / -1;
    }

    .site-footer__map-block {
        grid-column: 1 / -1;
        max-width: 28rem;
    }
}

@media (max-width: 600px) {
    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .site-footer__brand,
    .site-footer__map-block {
        grid-column: auto;
        max-width: none;
    }
}

/* ========================================================================
   Lightbox (galería en pantalla completa)
   ======================================================================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 4vw, 3rem);
}

.lightbox.is-open {
    display: flex;
}

.lightbox__img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.lightbox__close,
.lightbox__nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--white);
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.lightbox__close { top: 1.2rem; right: 1.2rem; }
.lightbox__nav--prev { top: 50%; left: 1.2rem; transform: translateY(-50%); }
.lightbox__nav--next { top: 50%; right: 1.2rem; transform: translateY(-50%); }

.lightbox__close:hover,
.lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.16);
}

body.no-scroll {
    overflow: hidden;
}

/* ========================================================================
   Vender coche (wizard de tasación + secciones explicativas)
   ======================================================================== */
.sell-main {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: calc(var(--header-height) + clamp(2rem, 4vw, 3rem)) clamp(1.25rem, 4vw, 2.5rem) clamp(2.5rem, 6vw, 4rem);
    color: rgba(255, 255, 255, 0.85);
}

.sell-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: center;
}

.sell-split__title {
    margin: 0 0 1.25rem;
    color: var(--white);
    font-size: clamp(1.85rem, 4vw, 2.35rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

.sell-split__text {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1rem;
    line-height: 1.7;
}

.sell-split__text p {
    margin: 0 0 1rem;
}

.sell-split__text p:last-child {
    margin-bottom: 0;
}

.sell-split__cta {
    margin-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: center;
}

.sell-split__secondary {
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
}

.sell-split__secondary:hover {
    text-decoration: underline;
}

.sell-split__figure {
    margin: 0;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    background: var(--page-bg-soft);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sell-split__figure img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

@media (max-width: 900px) {
    .sell-split { grid-template-columns: 1fr; }
    .sell-split__figure { order: -1; max-width: 520px; margin: 0 auto; width: 100%; }
}

.sell-steps {
    margin-top: clamp(3rem, 8vw, 5rem);
    padding-top: clamp(2.5rem, 6vw, 3.5rem);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sell-steps__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.75rem, 4vw, 2.75rem);
    max-width: 1100px;
    margin: 0 auto;
}

.sell-step { text-align: center; }

.sell-step__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sell-step__title {
    margin: 0 0 0.75rem;
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
}

.sell-step__text {
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.92rem;
    line-height: 1.65;
}

@media (max-width: 900px) {
    .sell-steps__grid { grid-template-columns: 1fr; max-width: 28rem; }
}

/* ── Wizard (mantenemos los selectores .jnj-* esperados por el JS) ── */
#tasacion-wizard { scroll-margin-top: 6rem; }

.jnj-tasacion {
    margin-top: clamp(2.5rem, 6vw, 4rem);
    padding-top: clamp(2rem, 5vw, 3rem);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.jnj-tasacion__hero {
    text-align: center;
    margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.jnj-tasacion__hero h2 {
    margin: 0 0 0.65rem;
    font-size: clamp(1.55rem, 3.5vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--white);
    line-height: 1.2;
}

.jnj-tasacion__hero p {
    margin: 0;
    font-size: clamp(0.98rem, 2.2vw, 1.05rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
}

.jnj-tasacion__panel[hidden] { display: none !important; }

.jnj-tasacion-form {
    max-width: 720px;
    margin: 0 auto;
    overflow: visible;
}

.jnj-tasacion-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 1.1rem;
    row-gap: 0.15rem;
}

@media (min-width: 560px) {
    .jnj-tasacion-form-grid { grid-template-columns: 1fr 1fr; }
    .jnj-tasacion-form-grid .jnj-field-full { grid-column: 1 / -1; }
}

.jnj-tasacion-form label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.78);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 1rem 0 0.45rem;
}

.jnj-tasacion-form>div:first-child>label:first-of-type,
.jnj-tasacion-form .jnj-vc-quick-wrap label:first-of-type {
    margin-top: 0.35rem;
}

.jnj-tasacion-form .jnj-label-optional {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    text-transform: none;
    letter-spacing: 0;
}

.jnj-tasacion-form input[type="text"],
.jnj-tasacion-form input[type="number"],
.jnj-tasacion-form input[type="email"],
.jnj-tasacion-form input[type="tel"],
.jnj-tasacion-form select,
.jnj-tasacion textarea {
    width: 100%;
    max-width: 100%;
    padding: 0.7rem 0.9rem;
    font-size: 0.94rem;
    font-family: inherit;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--white);
    box-sizing: border-box;
}

.jnj-tasacion-form input::placeholder,
.jnj-tasacion textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.jnj-tasacion-form input:focus,
.jnj-tasacion-form select:focus,
.jnj-tasacion textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.07);
}

.jnj-tasacion-form select {
    cursor: pointer;
    appearance: auto;
}

.jnj-tasacion-form select option {
    background: #0f0f10;
    color: var(--white);
}

.jnj-tasacion-form .jnj-form-hint {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 0.5rem;
    line-height: 1.5;
}

.jnj-tasacion-form .jnj-form-hint.jnj-form-hint--error {
    color: rgba(255, 255, 255, 0.68);
    margin-top: 0.75rem;
}

.jnj-vc-quick-wrap {
    padding: 1rem 1.05rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    overflow: visible;
    position: relative;
    z-index: 200;
}

.jnj-tasacion-form-grid > .jnj-vc-ac-wrap { position: relative; z-index: 1; }
.jnj-vc-ac-wrap { position: relative; z-index: 5; }

.jnj-vc-ac-list {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0.2rem 0 0;
    padding: 0.35rem 0;
    list-style: none;
    max-height: 14rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #161616;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
    z-index: 10050;
    touch-action: manipulation;
    color: var(--white);
}

.jnj-vc-ac-list[hidden] { display: none !important; }

.jnj-vc-ac-item {
    padding: 0.55rem 0.8rem;
    font-size: 0.88rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.88);
    cursor: pointer;
}

.jnj-vc-ac-item[aria-selected="true"],
.jnj-vc-ac-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.jnj-vc-ac-item-meta {
    display: block;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.15rem;
}

.jnj-vc-ac-item-title {
    font-weight: 600;
    display: block;
}

.jnj-vc-ac-status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.jnj-tasacion-segment {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.jnj-tasacion-segment label {
    position: relative;
    flex: 1;
    min-width: 120px;
    margin: 0 !important;
    padding: 0.7rem 1rem;
    text-align: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.9rem;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.jnj-tasacion-segment input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.jnj-tasacion-segment input:focus-visible + span {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.jnj-tasacion-segment label:has(input:checked) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.42);
    color: var(--white);
}

.jnj-tasacion-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
    align-items: center;
}

.jnj-tasacion-actions .btn-cta--ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.65);
    border: none;
    font-weight: 600;
    padding: 0.65rem 0.5rem;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.92rem;
}

.jnj-tasacion-actions .btn-cta--ghost:hover {
    color: var(--white);
}

.jnj-solicitud-final {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1rem;
}

#jnjSolicitudFeedback[hidden] { display: none !important; }

#jnjSolicitudFeedback.jnj-solicitud-feedback--ok {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
}

#jnjSolicitudFeedback.jnj-solicitud-feedback--err {
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
}

.jnj-tasacion textarea {
    min-height: 110px;
    line-height: 1.55;
}

.jnj-tasacion input[type="file"] {
    width: 100%;
    padding: 0.65rem;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.78);
    border: 1px dashed rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
}

.jnj-fotos-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
    margin-bottom: 0.25rem;
}

.jnj-fotos-preview:empty { display: none; }

.jnj-fotos-preview__card {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
}

.jnj-fotos-preview__card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.jnj-fotos-preview__remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.jnj-fotos-preview__remove:hover {
    background: rgba(255, 255, 255, 0.22);
}

.jnj-fotos-preview__label {
    width: 100%;
    flex-basis: 100%;
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.jnj-fotos-preview--final {
    justify-content: center;
    margin: 1rem auto 0;
    max-width: 560px;
}

.jnj-fotos-preview--final:empty { display: none; }

.jnj-tasacion__resumen {
    white-space: pre-wrap;
    font-size: 0.92rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
    padding: 1.1rem 1.2rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 560px;
    margin: 0 auto 1.25rem;
    text-align: left;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── WhatsApp FAB ── */
.wa-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 100;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--white);
    color: var(--text-dark);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.wa-fab:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

.wa-fab svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

@media (prefers-reduced-motion: reduce) {
    .wa-fab:hover { transform: none; }
}
