/*
 * Agusti Subastas — maqueta estática (HTML + CSS + JS mínimo).
 *
 * Páginas que enlazan este archivo: index.html, listado-lotes.html, lote.html, acto-de-subasta.html
 * Convención BEM en componentes (.auction-card__, .site-footer__, .lote-detail__, …).
 *
 * ---------------------------------------------------------------------------
 * Guía para el programador — variables / theme / CMS
 * ---------------------------------------------------------------------------
 * 1) Casi todos los tokens visuales viven en :root (bloque siguiente). Busca en el archivo
 *    la cadena "var(--" para ver qué reglas ya dependen de variables.
 * 2) Aún quedan colores y espaciados “a pelo” (hex, px, rem) en bloques largos (.page-lote,
 *    carruseles, pie). La migración gradual consiste en copiar esos valores a :root y
 *    reemplazarlos por var(--nombre-semántico).
 * 3) Breakpoints: el CSS usa sobre todo 767px, 768px, 991px, 1199px. script.js declara
 *    MAQUETA_CONFIG.mobileMaxPx / desktopMinPx — mantenerlos alineados con estos media queries.
 * 4) Al integrar un design system (MUI, Chakra, Tailwind theme, etc.), suele bastar con
 *    mapear :root → tokens del DS o generar este CSS desde el pipeline de marca.
 * 5) Acto en vivo (acto-de-subasta.html): tokens --acto-lot-* en :root; anclajes data-auction-id,
 *    data-lot-id, data-lot-ends-at en el HTML; grilla demo clonada con MAQUETA_CONFIG.actoLiveLotsDemoCount
 *    en script.js (poner en 0 cuando el backend emita todas las <li>).
 */

/* -------------------------------------------------------------------------- */
/* :root — tokens de diseño (sustituir / fusionar con el theme del proyecto)   */
/* -------------------------------------------------------------------------- */
:root {
    /* --- Marca / CTAs (enlaces, focos, botones secundarios) --- */
    --color-primary: #009cde;
    --light-blue: #009cde; /* mismo valor que --color-primary; unificar en CMS si sobra un token */
    --primary-orange: #ff6600;
    --navy-blue: #003366;
    /* --- Tarjetas de subasta en carrusel (cabecera azul de fecha/hora, meta gris) --- */
    --auction-header-blue: #0096d6;
    --auction-meta-gray: #666666;
    /* Tarjetas “acto en vivo” (grilla bajo hero en acto-de-subasta.html) */
    --acto-lot-blue: #0099d8;
    --acto-lot-timer-red: #bb1614;
    --acto-lot-title-navy: #003b6f;
    --acto-lot-quick-bid-border: #0078b0;
    --acto-lot-panel-bg: #f1f4f8;
    /* --- Tipografía (Google Fonts en cada HTML; cambiar href si cambia la familia) --- */
    --font-main: "Inter", system-ui, sans-serif;
    --font-headings: var(--font-main); /* hoy igual que cuerpo; separar si el brand exige otro stack */
    /* --- Neutros y texto (fondos de página, bordes, copy) --- */
    --white: #ffffff;
    --black: #000000;
    --grey-soft: #e8e8e8;
    --grey-mid: #9a9a9a;
    --text: #333333;
    --border: #d0d0d0;
    --page-bg: #eeeeee;
    --hero-secondary-bg: #f0f0f0;
    /* --- Layout global (.container, header fijo, alto del banner hero/mid) --- */
    --container: 1200px;
    --header-h: 72px;
    --hero-banner-height: 261px;
    /* --- Forma y sombras genéricas (tarjetas newsletter, bloques con radio) --- */
    --radius: 8px;
    --radius-lg: 12px;
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
    /* Tarjetas .auction-card, .lot-card--featured, .sale-card--private (carruseles home/listado) */
    --shadow-auction-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 6px 18px rgba(0, 0, 0, 0.08), 0 14px 36px rgba(0, 0, 0, 0.05);
    /* Lotes detallados: sombra tipo Figma (Y 4, blur 4, #000 25%) */
    --shadow-lot-card-detailed: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    /* --- Carrusel “subastas / vista rápida” (flechas, bleed móvil, proporción imagen lote) --- */
    --lot-card-carousel-w: 282; /* usados en aspect-ratio: var(--lot-card-carousel-w) / … */
    --lot-card-carousel-h: 229;
    --slider-auctions-arrow-size: 56px;
    --slider-auctions-arrow-gap: 1rem;
    --slider-auctions-col-gap: 0.5rem; /* coherente con gap del grid .slider--auctions en móvil */
    --slider-auctions-bleed: 20px; /* mitad del “bleed” del carril respecto al viewport */
    /* --- Transiciones UI --- */
    --transition: 0.25s ease;
}

/* Reset mínimo + base tipográfica (encabezados en --navy-blue salvo overrides por #id) */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Anclas (#seccion): el contenido no queda oculto bajo la cabecera (sticky o fixed móvil). */
    scroll-padding-top: var(--header-h);
    background: var(--page-bg);
}

body {
    margin: 0;
    font-family: var(--font-main);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text);
    background: var(--page-bg);
    -webkit-font-smoothing: antialiased;
}

/* Carruseles con flechas a media asta: evita scroll horizontal en el viewport (móvil) */
@media (max-width: 767px) {
    html {
        overflow-x: hidden;
    }

    body {
        overflow-x: hidden;
    }
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-main);
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy-blue);
}

p,
span {
    font-family: var(--font-main);
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 1.25rem;
}

/* Sección subastas: container a ancho completo del viewport (carrusel “bleed”) */
#subastas-activas {
    padding-top: 20px;
    padding-bottom: 20px;
    color: var(--text);
    background-color: var(--page-bg);
}

    #subastas-activas .container {
        padding-inline: 0;
    }

/* Subastas activas: sin flechas en desktop; en móvil (≤767px) se mantienen como hasta ahora */
@media (min-width: 768px) {
    #subastas-activas .slider--auctions {
        grid-template-columns: 1fr;
    }

        #subastas-activas .slider--auctions .slider__arrow {
            display: none !important;
        }

        #subastas-activas .slider--auctions .slider__viewport {
            grid-column: 1;
            grid-row: 1;
        }

        #subastas-activas .slider--auctions .slider__dots {
            grid-column: 1;
            grid-row: 2;
        }
}

/* Texto solo para lectores de pantalla / SEO (títulos duplicados con logo en img) */
.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;
}

/*
 * Tarjeta clickeable en bloque: enlace absoluto bajo el contenido.
 * CTAs y carrusel de fotos (.lot-card__media--slider) llevan z-index mayor para no robar el click.
 */
.auction-card,
.lot-card,
.sale-card,
.acto-lot-card {
    position: relative;
}

.card-link-stretched {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    text-decoration: none;
}

    .card-link-stretched:focus-visible {
        outline: 2px solid var(--color-primary);
        outline-offset: 3px;
        z-index: 4;
    }

/* -------------------------------------------------------------------------- */
/* Botones reutilizables (.btn + modificadores). Ver uso en index.html.        */
/*   .btn--orange      → CTA principal (naranja marca)                        */
/*   .btn--hero-light  → secundario sobre foto (#hero, #vender)               */
/*   .btn--register    → header desktop “Registrarse”                         */
/*   .btn--outline-white → formulario contacto (fondo negro)                   */
/* -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.25rem;
    font-family: var(--font-main);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

    .btn:hover {
        text-decoration: none;
    }

.btn--lg {
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
}

.btn--block {
    width: 100%;
}

.btn--orange {
    background: var(--primary-orange);
    color: var(--white);
    border-color: var(--primary-orange);
}

    .btn--orange:hover {
        filter: brightness(1.05);
        box-shadow: 0 4px 16px rgba(255, 102, 0, 0.35);
    }

.btn--outline-white {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

    .btn--outline-white:hover {
        background: rgba(255, 255, 255, 0.1);
    }

.btn--hero-light {
    background: var(--hero-secondary-bg);
    color: #000;
    border-color: transparent;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

    .btn--hero-light:hover {
        background: var(--white);
        filter: none;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    }

.btn--register {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--primary-orange);
    color: var(--white);
    border-color: var(--primary-orange);
    padding: 0.5rem 1.1rem;
    font-size: 0.75rem;
    border-radius: 10px;
}

    .btn--register:hover {
        filter: brightness(1.06);
        box-shadow: 0 4px 14px rgba(255, 102, 0, 0.35);
    }

.btn__icon {
    flex-shrink: 0;
}

.btn__label {
    white-space: nowrap;
}

/* -------------------------------------------------------------------------- */
/* Cabecera: logo, nav desktop, menú móvil (.nav-toggle), login/registro      */
/* Desktop/tablet ancho: sticky. Móvil ≤767px: fixed (ver bloque “Mobile nav”) */
/* porque html/body overflow-x:hidden rompe sticky en varios motores.          */
/* -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--page-bg);
    border-bottom: none;
}

.header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "logo nav actions";
    align-items: center;
    min-height: var(--header-h);
    gap: 1rem;
}

.logo {
    grid-area: logo;
    justify-self: start;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.header__nav-panel {
    display: contents;
}

.header__actions {
    grid-area: actions;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.logo:hover {
    text-decoration: none;
}

.logo__img {
    display: block;
    height: auto;
    width: auto;
    max-height: 52px;
    max-width: min(200px, 42vw);
    object-fit: contain;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle__bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy-blue);
    border-radius: 1px;
}

/* Móvil: hamburguesa + icono registro en la barra (escritorio: oculto) */
.header__mobile-tools {
    display: none;
}

.header__register-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    color: var(--navy-blue);
    text-decoration: none;
    border-radius: 10px;
    transition: background-color var(--transition), color var(--transition);
}

    .header__register-icon:hover {
        color: var(--primary-orange);
        background: rgba(255, 102, 0, 0.08);
        text-decoration: none;
    }

.header__register-icon-svg {
    display: block;
}

.nav {
    grid-area: nav;
    justify-self: center;
    display: flex;
    align-items: center;
}

.nav__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav__link {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    color: #000;
    font-weight: 700;
    font-size: 0.9375rem;
}

    .nav__link:hover {
        color: var(--navy-blue);
        text-decoration: none;
    }

.nav__chevron {
    flex-shrink: 0;
    opacity: 0.65;
    margin-top: 1px;
}

.nav__login {
    color: var(--text);
    font-weight: 500;
    font-size: 0.75rem;
    white-space: nowrap;
}

    .nav__login:hover {
        color: var(--color-primary);
        text-decoration: none;
    }

/* Contenedor principal bajo el header (todas las secciones de contenido) */
.page-main {
    padding-bottom: 0;
    background: var(--page-bg);
    color: rgba(238, 238, 238, 1);
}

.hero-container {
    padding: 1.25rem 0 2rem;
}

@media (min-width: 768px) {
    .hero-container:has(#vender) {
        padding-top: 30px;
        padding-bottom: 30px;
    }
}

/* Hero: banner con imagen local, esquinas redondeadas, dentro del container */
.hero {
    position: relative;
    height: var(--hero-banner-height);
    min-height: var(--hero-banner-height);
    max-height: var(--hero-banner-height);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    border-radius: 36px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
}

.hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background-color: #0a1f30;
}

.hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero__overlay,
.mid-banner__dim {
    position: absolute;
    inset: 0;
    background: linear-gradient( 180deg, rgba(0, 0, 0, 0.46) 0%, rgba(0, 0, 0, 0.46) 0% );
}

.hero__content {
    position: relative;
    z-index: 1;
    padding: 0.65rem 1rem;
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
    height: 100%;
    box-sizing: border-box;
}

.hero__brand {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__brand-img {
    display: none;
    width: auto;
    max-width: min(100%, 26rem);
    height: auto;
    margin-inline: auto;
}

@media (min-width: 768px) {
    .hero__brand-img {
        display: block;
    }
}

.hero__subtitle {
    margin: 0;
    font-size: 23px;
    letter-spacing: -1px;
    color: rgba(255, 255, 255, 0.96);
    font-weight: 300;
    line-height: 1.35;
    max-width: 42rem;
    margin-inline: auto;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.25rem;
}

.hero .btn--lg {
    padding: 0.45rem 1.1rem;
    font-size: 0.8125rem;
    border-radius: 200px;
}

    .hero .btn--lg.btn--hero-light,
    .hero .btn--lg.btn--orange {
        font-size: 1rem;
        font-weight: 700;
    }

/* Solo el hero principal: dos CTAs como captura (no afecta sell-cta ni otros .btn) */
main.page-main > .hero-container:first-of-type .hero__actions {
    gap: 0.75rem;
}

@media (min-width: 480px) {
    main.page-main > .hero-container:first-of-type .hero__actions {
        flex-wrap: nowrap;
        gap: 1rem;
    }
}

main.page-main > .hero-container:first-of-type .hero .btn--lg.btn--orange,
main.page-main > .hero-container:first-of-type .hero .btn--lg.btn--hero-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    min-height: 42px;
    padding: 0 1rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0;
    border-radius: 9999px;
    box-sizing: border-box;
    max-width: 100%;
    white-space: nowrap;
}

@media (min-width: 768px) {
    main.page-main > .hero-container:first-of-type .hero__actions {
        gap: 1rem;
    }

    main.page-main > .hero-container:first-of-type .hero .btn--lg.btn--orange,
    main.page-main > .hero-container:first-of-type .hero .btn--lg.btn--hero-light {
        width: auto;
        min-width: 0;
        max-width: 100%;
        padding-inline: 1.5rem;
    }
}

/* -------------------------------------------------------------------------- */
/* Secciones genéricas (.section + variantes de fondo / títulos)             */
/*   #subastas-activas → fondo gris página; #categorias / #lotes-destacados → .section--soft */
/*   #ventas-particulares, #newsletter → .section--navy | #contacto → .section--black */
/* -------------------------------------------------------------------------- */
.section {
    padding: 3.5rem 0;
    background: var(--white);
}

.section--soft {
    background: var(--grey-soft);
}

#categorias {
    color: rgba(238, 238, 238, 0);
    opacity: 1;
    background-color: rgba(238, 238, 238, 1);
    padding-top: 20px;
    padding-bottom: 20px;
}

#lotes-destacados {
    padding-top: 20px;
    padding-bottom: 20px;
    background-color: rgba(238, 238, 238, 1);
}

    #lotes-destacados .container {
        padding-inline: 0;
    }

/* Lotes detallados (página lote): fondo gris distinto a vista rápida; rejilla 4×2 */
.section--detail {
    background: var(--hero-secondary-bg);
}

#lotes-detallados {
    padding-top: 2.5rem;
    padding-bottom: 3rem;
}

    #lotes-detallados .container {
        padding-inline: 0;
    }

/* Móvil: mismo aire lateral que Vista rápida (desktop mantiene 0 para alinear rejillas) */
@media (max-width: 767px) {
    #lotes-detallados .container {
        padding-inline: 1.75rem;
    }
}

#lotes-detallados-title {
    color: var(--black);
    font-weight: 700;
    font-size: 32px;
    font-family: var(--font-main);
}

/* Observaciones y condiciones (página lote): misma rejilla que #lotes-detallados, Montserrat #4D4D4D */
.section--auction-conditions {
    background: var(--page-bg);
    padding-top: 2.5rem;
    padding-bottom: 3rem;
}

/* Mismo contenedor que lotes detallados (sin padding lateral en desktop → alinea con las tarjetas) */
#observaciones-subasta .container {
    padding-inline: 0;
}

@media (max-width: 767px) {
    #observaciones-subasta {
        padding-top: 1.25rem;
        padding-bottom: 1.75rem;
    }

        #observaciones-subasta .container {
            padding-inline: 1.75rem;
        }
}

.auction-conditions__content {
    grid-column: 1 / -1;
    min-width: 0;
}

/* Acordeón móvil (≥768px siempre abierto; ver script.js data-auction-conditions-accordion) */
.auction-conditions__details {
    border: none;
    margin: 0;
    padding: 0;
    background: transparent;
}

.auction-conditions__summary {
    list-style: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

    .auction-conditions__summary::-webkit-details-marker {
        display: none;
    }

.auction-conditions__summary-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.auction-conditions__summary .auction-conditions__title {
    margin: 0;
}

.auction-conditions__chevron {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4d4d4d;
    line-height: 0;
    transition: transform 0.2s ease;
}

.auction-conditions__details[open] .auction-conditions__chevron {
    transform: rotate(180deg);
}

.auction-conditions__title-br {
    display: none;
}

@media (max-width: 767px) {
    .auction-conditions__title-br {
        display: inline;
    }
}

@media (min-width: 768px) {
    .auction-conditions__summary {
        cursor: default;
        pointer-events: none;
    }

    .auction-conditions__chevron {
        display: none;
    }

    .auction-conditions__summary .auction-conditions__title {
        margin: 0 0 1.25rem;
        pointer-events: auto;
    }
}

.auction-conditions__title {
    margin: 0;
    font-family: "Montserrat", var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    color: #4d4d4d;
    line-height: 1.35;
}

.auction-conditions__list {
    margin: 0;
    padding-left: 1.25rem;
    font-family: "Montserrat", var(--font-main);
    font-size: 0.875rem;
    font-weight: 400;
    color: #4d4d4d;
    line-height: 1.45;
}

@media (max-width: 767px) {
    #observaciones-subasta .auction-conditions__list {
        margin-top: 1rem;
    }
}

.auction-conditions__list li {
    margin-bottom: 0.5rem;
}

    .auction-conditions__list li:last-child {
        margin-bottom: 0;
    }

.auction-conditions__term {
    font-weight: 600;
}

.lotes-detallados__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

@media (max-width: 1199px) {
    .lotes-detallados__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 599px) {
    .lotes-detallados__grid {
        grid-template-columns: 1fr;
    }

    /*
   * Misma anchura útil que el viewport del carrusel Vista rápida (móvil):
   * ancho carrusel = 100% + 2×bleed del .slider--auctions; columna central =
   * 100% − 2×56px − 2×gap + 2×bleed = 100% − 72px − 1rem (100% = ancho útil del .container).
   */
    #lotes-detallados .lotes-detallados__grid {
        width: calc( 100% - 2 * var(--slider-auctions-arrow-size) - 2 * var(--slider-auctions-col-gap) + 2 * var(--slider-auctions-bleed) );
        max-width: 100%;
        margin-inline: auto;
    }

    #observaciones-subasta .lotes-detallados__grid {
        width: calc( 100% - 2 * var(--slider-auctions-arrow-size) - 2 * var(--slider-auctions-col-gap) + 2 * var(--slider-auctions-bleed) );
        max-width: 100%;
        margin-inline: auto;
    }
}

/* 600–767px: dos columnas; sin el estrechado de 1 columna */
@media (min-width: 600px) and (max-width: 767px) {
    #lotes-detallados .lotes-detallados__grid {
        width: 100%;
        max-width: none;
        margin-inline: 0;
    }

    #observaciones-subasta .lotes-detallados__grid {
        width: 100%;
        max-width: none;
        margin-inline: 0;
    }
}

/* Móvil: solo 2 tarjetas visibles hasta expandir (resto + botón "Ver más") */
@media (max-width: 767px) {
    #lotes-detallados .lotes-detallados__grid:not(.lotes-detallados__grid--expanded) .lot-card:nth-child(n + 3) {
        display: none;
    }
}

.lotes-detallados__more {
    display: none;
    width: 100%;
    margin: 1.75rem 0 0;
    padding: 0;
    border: none;
    background: none;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy-blue);
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

    .lotes-detallados__more:hover,
    .lotes-detallados__more:focus-visible {
        color: var(--light-blue);
    }

    .lotes-detallados__more:focus-visible {
        outline: 2px solid var(--color-primary);
        outline-offset: 3px;
    }

@media (max-width: 767px) {
    .lotes-detallados__more:not([hidden]) {
        display: block;
    }
}

#ventas-particulares .container {
    padding-inline: 0;
}

/* Ventas particulares: viewport del carrusel no tiñe el texto de las tarjetas */
#ventas-particulares .slider--auctions .slider__viewport {
    color: var(--black);
}

.section--navy {
    background: var(--navy-blue);
    color: rgba(255, 255, 255, 0.92);
}

    .section--navy a {
        color: #a8d4ff;
    }

.section--black {
    background: var(--black);
    color: rgba(255, 255, 255, 0.9);
}

    .section--black a {
        color: #a8d4ff;
    }

.section--tight {
    padding-block: 2.5rem;
}

.section__title {
    margin: 0 0 2rem;
    font-size: clamp(1.5rem, 3vw, 1.85rem);
}

.section__title--center {
    text-align: center;
}

.section__title--left {
    text-align: left;
}

.section__title--on-dark {
    color: var(--white);
}

#lots-title {
    color: rgba(0, 0, 0, 1);
}

#active-title {
    color: #000;
    font-weight: 800;
    font-size: 32px;
    font-family: var(--font-main);
}

#cat-title {
    color: rgba(0, 0, 0, 1);
    font-size: 32px;
}

#private-title {
    font-size: 32px;
}

#contact-title {
    font-size: 32px;
}

.section__live-proof {
    margin-top: 2rem;
    padding: 1.15rem 1.25rem;
    text-align: center;
    background-color: rgba(238, 238, 238, 1);
    border-radius: var(--radius);
    font-family: var(--font-main);
}

.section__live-proof-line {
    margin: 0 0 0.4rem;
    font-size: 0.9375rem;
}

.section__live-proof-link {
    color: var(--navy-blue);
    font-weight: 700;
    font-size: 20px;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

    .section__live-proof-link:hover {
        color: var(--navy-blue);
        text-decoration: underline;
    }

.section__live-proof-sub {
    margin: 0;
    color: #000000;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.45;
}

/* Subastas activas: carrusel en todos los anchos (flechas + puntos también en desktop) */
.slider--auctions {
    margin-left: -20px;
    margin-right: -20px;
    width: calc(100% + 40px);
}

    .slider--auctions .slider__viewport {
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0.5rem 0 1rem;
        background-color: transparent;
        color: rgba(238, 238, 238, 1);
        container-type: inline-size;
        container-name: auction-carousel;
    }

        .slider--auctions .slider__viewport::-webkit-scrollbar {
            display: none;
            width: 0;
            height: 0;
        }

@media (min-width: 768px) {
    .slider--auctions {
        margin-inline: 0;
        width: 100%;
    }

        .slider--auctions .slider__viewport {
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            padding: 0.5rem 0 1rem;
        }

        .slider--auctions .slider__track {
            display: flex;
            gap: 1.25rem;
            width: max-content;
            padding: 0 0 1rem;
        }

        .slider--auctions .slider__slide {
            flex: 0 0 calc((100cqi - 1 * 1.25rem) / 2);
            width: calc((100cqi - 1 * 1.25rem) / 2);
            min-width: 0;
            max-width: none;
            scroll-snap-align: start;
        }
}

@media (min-width: 1024px) {
    .slider--auctions .slider__slide {
        flex: 0 0 calc((100cqi - 3 * 1.25rem) / 4);
        width: calc((100cqi - 3 * 1.25rem) / 4);
    }
}

/*
 * Carruseles con flechas laterales: el grid auto | 1fr | auto encoge el viewport y desalinea
 * respecto a rejillas 4 columnas (p. ej. #lotes-detallados). Flechas en posición absoluta
 * sobre el carril; el viewport usa el 100% del .container (misma referencia que 100cqi).
 * No aplica a #subastas-activas (desktop sin flechas).
 */
@media (min-width: 768px) {
    #lotes-destacados .slider.slider--auctions,
    #ventas-particulares .slider.slider--auctions {
        display: block;
        position: relative;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    #lotes-destacados .slider--auctions .slider__arrow,
    #ventas-particulares .slider--auctions .slider__arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
        margin: 0;
    }

    /* Flechas fuera del carril + --slider-auctions-arrow-gap entre borde de tarjetas y botón */
    #lotes-destacados .slider--auctions .slider__arrow--prev,
    #ventas-particulares .slider--auctions .slider__arrow--prev {
        left: calc( -1 * (var(--slider-auctions-arrow-size) + var(--slider-auctions-arrow-gap)) );
        right: auto;
    }

    #lotes-destacados .slider--auctions .slider__arrow--next,
    #ventas-particulares .slider--auctions .slider__arrow--next {
        right: calc( -1 * (var(--slider-auctions-arrow-size) + var(--slider-auctions-arrow-gap)) );
        left: auto;
    }

    #lotes-destacados .slider--auctions .slider__viewport,
    #ventas-particulares .slider--auctions .slider__viewport {
        width: 100%;
        max-width: 100%;
    }

    #lotes-destacados .slider--auctions .slider__dots,
    #ventas-particulares .slider--auctions .slider__dots {
        margin-top: 0.75rem;
    }
}

.auction-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-auction-card);
    border: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.auction-card__head {
    background: var(--auction-header-blue);
    color: var(--white);
    font-size: 1.2375rem;
    font-weight: 600;
    text-align: center;
    padding: 0.65rem 0.75rem;
    line-height: 1.35;
}

.auction-card__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    box-sizing: border-box;
}

    /*
 * Estas imágenes son el logo de la empresa subastante (Empresas/{id}.jpg), no una foto
 * del lote — con object-fit: cover quedaban estiradas/recortadas y se veían enormes.
 * contain + padding las muestra completas y centradas, sin deformarlas.
 */
    .auction-card__media img {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
        object-position: center !important;
    }

.auction-card__content {
    padding: 1rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1 1 auto;
}

.auction-card__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--navy-blue);
    line-height: 1.3;
}

.auction-card__stats {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    font-size: 0.9375rem;
    color: var(--black);
    text-align: left;
}

.auction-card__stats-sep {
    font-weight: 300;
    color: #b0b0b0;
    user-select: none;
}

.auction-card__countdown {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem;
    margin-top: 0.35rem;
    width: 100%;
    min-height: 3.25rem;
}

.auction-card__countdown-label {
    flex: 0 1 auto;
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--text);
    line-height: 1.3;
    white-space: normal;
}

.auction-card__timer {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex: 0 0 auto;
    margin-left: auto;
    gap: 0.4rem;
}

.auction-card__timer-unit {
    flex: 0 0 auto;
    min-width: 2.75rem;
    padding: 0.35rem 0.45rem 0.4rem;
    background: #f2f2f2;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    box-sizing: border-box;
}

.auction-card__timer-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--black);
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.auction-card__timer-unit-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--auction-meta-gray);
    line-height: 1.15;
    text-transform: none;
}

@media (max-width: 380px) {
    .auction-card__countdown {
        flex-wrap: wrap;
    }

    .auction-card__timer {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
    }
}

.auction-card__cta,
.lot-card--featured .lot-card__cta {
    position: relative;
    z-index: 2;
    margin-top: auto;
    flex-shrink: 0;
    width: 100%;
    justify-content: center;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    height: 42px;
    padding-top: 0;
    padding-bottom: 0;
    font-weight: 700;
    font-size: 1.0625rem;
    text-decoration: none;
}

    .auction-card__cta:hover,
    .lot-card--featured .lot-card__cta:hover {
        text-decoration: none;
    }

/* Mid banner — mismo armazón que .hero (radio, sombra, bg + velo); altura mínima como hero, puede crecer si el contenido lo pide */
.mid-banner {
    position: relative;
    min-height: var(--hero-banner-height);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    border-radius: 36px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
}

.mid-banner__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background-color: #0a1f30;
}

.mid-banner__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.mid-banner__content {
    position: relative;
    z-index: 1;
    padding: 30px 1rem 30px;
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.65rem;
    box-sizing: border-box;
}

.mid-banner__graphics {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem clamp(1.5rem, 4.5vw, 2.75rem);
}

.mid-banner__logo-img {
    width: auto;
    max-width: min(48%, 13rem);
    height: auto;
    flex-shrink: 0;
}

.mid-banner__years-frame {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0.4rem 0.55rem;
    border: 4px solid var(--light-blue);
    border-radius: 22px;
    box-sizing: border-box;
    max-width: min(48vw, 11.5rem);
}

.mid-banner__years-img {
    width: auto;
    max-width: 100%;
    height: auto;
    display: block;
}

.mid-banner .btn--lg {
    padding: 0.45rem 1.1rem;
    font-size: 0.8125rem;
    border-radius: 200px;
}

    .mid-banner .btn--lg.btn--orange {
        font-size: 1rem;
        font-weight: 700;
        width: auto;
        max-width: 100%;
    }

.mid-banner__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    max-width: 36rem;
}

.mid-banner__iso {
    margin: 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 400;
}

.mid-banner__headline {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
}

.mid-banner__stats {
    margin: 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.92);
}

.mid-banner__stats-sep {
    margin: 0 0.35rem;
    opacity: 0.85;
}

/* Categorías: carrusel 3 por vista en móvil; grilla 5×2 en escritorio */
.slider.slider--categories .slider__viewport--categories {
    container-type: inline-size;
    container-name: categories-viewport;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

    .slider.slider--categories .slider__viewport--categories::-webkit-scrollbar {
        display: none;
    }

.slider__track--categories {
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    width: max-content;
}

.slider.slider--categories .slider__categories-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 1.35rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

    .slider.slider--categories .slider__categories-nav .slider__dots--categories {
        flex: 0 0 auto;
        margin-top: 0;
        grid-column: unset;
        display: flex;
        align-items: center;
        justify-content: center;
    }

.slider.slider--categories .slider__arrow--categories {
    flex-shrink: 0;
    width: auto;
    height: auto;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--black);
    box-shadow: none;
}

    .slider.slider--categories .slider__arrow--categories:hover:not(:disabled) {
        background: transparent;
        opacity: 0.75;
    }

    .slider.slider--categories .slider__arrow--categories:disabled {
        opacity: 0.35;
    }

.slider.slider--categories .slider__dots--categories {
    margin: 0;
    gap: 0.45rem;
}

.slider__dots--categories .slider__dot {
    width: 10px;
    height: 10px;
    opacity: 1;
    background: #d0d0d0;
    border: none;
}

    .slider__dots--categories .slider__dot[aria-current="true"] {
        background: var(--white);
        border: 2px solid var(--black);
        box-sizing: border-box;
        transform: none;
    }

@media (min-width: 900px) {
    .slider.slider--categories .slider__categories-nav {
        display: none;
    }

    .slider.slider--categories .slider__viewport--categories {
        overflow: visible;
    }

    .slider.slider--categories .slider__track--categories {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 1rem;
        width: 100%;
        max-width: 100%;
    }

    .slider.slider--categories .slider__slide--categories {
        display: contents;
    }

    .slider.slider--categories .slider__slide--categories-last .cat-tile {
        grid-column: auto;
    }
}

.cat-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    padding: 1.25rem 0.5rem;
    background: transparent;
    border: none;
    border-radius: 0;
    text-decoration: none;
    color: var(--black);
    transition: opacity var(--transition);
}

    .cat-tile:hover {
        text-decoration: none;
        opacity: 0.88;
    }

.cat-tile__icon {
    width: 64px;
    height: 64px;
    margin-bottom: 0.25rem;
    flex-shrink: 0;
}

    .cat-tile__icon svg,
    .cat-tile__icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.cat-tile__label {
    font-family: var(--font-main);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.25;
    color: var(--black);
}

.cat-tile__meta {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--light-blue);
    line-height: 1.3;
}

/* -------------------------------------------------------------------------- */
/* Carrusel genérico: .slider + [data-*] consumidos por script.js (initSlider) */
/*   data-carousel-viewport / track / prev / next / dots-root                 */
/*   Modificadores: .slider--auctions | .slider--categories                    */
/* -------------------------------------------------------------------------- */
.slider {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.5rem;
}

    /* Categorías: el .slider genérico es grid 3 cols → viewport y nav quedaban en la misma fila.
   Forzar columna: carrusel arriba, [◀][dots][▶] centrados debajo. */
    .slider.slider--categories {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        grid-template-columns: unset;
    }

.slider__viewport {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 0.5rem;
}

.slider__track {
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0 0 1rem;
    list-style: none;
    width: max-content;
}

.slider__slide {
    flex: 0 0 min(calc(100vw - 3rem), 300px);
    width: min(calc(100vw - 3rem), 300px);
    scroll-snap-align: start;
}

@media (min-width: 640px) {
    .slider__slide {
        flex: 0 0 270px;
        width: 270px;
    }
}

/*
 * Categorías (móvil/tablet <900px): anular .slider__slide genérico (270–300px fijos).
 * Un slide = ancho del viewport → solo 3 categorías visibles; flechas pegadas a los dots.
 */
@media (max-width: 899px) {
    .slider.slider--categories .slider__viewport--categories {
        padding-bottom: 0;
    }

    .slider.slider--categories .slider__track--categories {
        padding: 0;
        margin: 0;
    }

    .slider.slider--categories .slider__slide--categories {
        flex: 0 0 100cqi;
        width: 100cqi;
        max-width: 100cqi;
        min-width: 0;
        scroll-snap-align: start;
        box-sizing: border-box;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem;
        align-items: start;
        justify-items: center;
    }

    .slider.slider--categories .slider__slide--categories-last {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

        .slider.slider--categories .slider__slide--categories-last .cat-tile {
            grid-column: 2;
        }

    @supports not (width: 1cqi) {
        .slider.slider--categories .slider__slide--categories {
            flex: 0 0 calc(100vw - 2.5rem);
            width: calc(100vw - 2.5rem);
            max-width: calc(100vw - 2.5rem);
        }
    }
}

.slider__arrow {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--grey-soft);
    color: var(--navy-blue);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background var(--transition);
}

    .slider__arrow:hover:not(:disabled) {
        background: var(--white);
    }

    .slider__arrow:disabled {
        opacity: 0.35;
        cursor: not-allowed;
    }

/* Carrusel solo en la imagen de tarjeta (lotes detallados): flechas tipo media luna en bordes */
.slider.slider--card-media {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.lot-card__media--slider {
    position: relative;
    overflow: hidden;
    background: var(--grey-soft);
    min-height: 0;
}

.lot-card--detailed .lot-card__media--slider {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/*
 * Viewport en flex: los <li> pasan a ser hijos flex del viewport (ul con display: contents).
 * Así flex-basis 100% es el ancho del carrusel, no del track (antes el % se resolvía mal → solo un borde de imagen).
 */
.slider.slider--card-media .slider__viewport--card-media {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    padding-bottom: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .slider.slider--card-media .slider__viewport--card-media::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

.slider.slider--card-media .slider__track--card-media {
    display: contents;
    padding: 0;
    margin: 0;
    list-style: none;
}

.slider.slider--card-media .slider__slide--card-media {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    box-sizing: border-box;
}

    /* Relleno tipo Figma (Imagen al 100%): cubre el marco 282×229 manteniendo proporción */
    .slider.slider--card-media .slider__slide--card-media img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

.slider.slider--card-media .slider__arrow--card-media {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 32px;
    height: 56px;
    border: none;
    border-radius: 0 999px 999px 0;
    background: rgba(220, 220, 220, 0.92);
    color: var(--black);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 1;
    display: grid;
    place-items: center;
    padding: 0;
}

    .slider.slider--card-media .slider__arrow--card-media .slider__arrow-icon {
        width: 16px;
        height: 16px;
    }

.slider.slider--card-media .slider__arrow--card-media-next {
    right: 0;
    border-radius: 999px 0 0 999px;
}

.slider.slider--card-media .slider__arrow--card-media-prev {
    left: 0;
}

.slider.slider--card-media .slider__arrow--card-media:hover:not(:disabled) {
    background: rgba(240, 240, 240, 0.98);
}

.slider.slider--card-media .slider__arrow--card-media:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.slider__dots {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.slider__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: var(--grey-mid);
    cursor: pointer;
    opacity: 0.45;
    transition: opacity var(--transition), transform var(--transition);
}

    .slider__dot[aria-current="true"] {
        opacity: 1;
        background: var(--navy-blue);
        transform: scale(1.15);
    }

/* Carrusel subastas activas (móvil): puntos y flechas como diseño */
.slider__dots--auctions {
    margin-top: 0.75rem;
    gap: 0.45rem;
}

    .slider__dots--auctions .slider__dot {
        width: 10px;
        height: 10px;
        opacity: 1;
        background: #d0d0d0;
        border: none;
    }

        .slider__dots--auctions .slider__dot[aria-current="true"] {
            background: var(--white);
            border: 2px solid var(--black);
            box-sizing: border-box;
            transform: none;
        }

/* Carrusel subastas: círculos grises semitransparentes + chevron negro fino (captura) */
.slider__arrow--auctions {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    padding: 0;
    align-self: center;
    border: none;
    border-radius: 50%;
    background: #d9d9d9;
    color: #0a0a0a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    display: grid;
    place-items: center;
}

    .slider__arrow--auctions .slider__arrow-icon {
        display: block;
        width: 26px;
        height: 26px;
    }

    /* Misma presencia visual que la flecha derecha: el :disabled global (0.35) ocultaba el círculo */
    .slider__arrow--auctions:disabled {
        opacity: 1;
        cursor: not-allowed;
    }

        .slider__arrow--auctions:disabled .slider__arrow-icon {
            opacity: 0.4;
        }

    .slider__arrow--auctions:hover:not(:disabled) {
        background: #cecece;
    }

    .slider__arrow--auctions:focus-visible {
        outline: 2px solid var(--color-primary);
        outline-offset: 2px;
    }

/* Lot cards */
.lot-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.lot-card__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--grey-soft);
}

    .lot-card__media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Carrusel lotes detallados: Figma 282×229 (debe ir después de .lot-card__media para ganar la cascada) */
    .lot-card__media.lot-card__media--slider {
        aspect-ratio: var(--lot-card-carousel-w) / var(--lot-card-carousel-h);
        position: relative;
        z-index: 2;
    }

.lot-card__body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

/* Lotes destacados (misma sombra que subastas, contenido tipo captura) */
.lot-card--featured {
    border: none;
    box-shadow: var(--shadow-auction-card);
}

    .lot-card--featured.lot-card--detailed {
        box-shadow: var(--shadow-lot-card-detailed);
    }

    .lot-card--featured .lot-card__body {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem 1rem 1rem;
        flex: 1 1 auto;
    }

.lot-card__category {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--light-blue);
    line-height: 1.3;
}

.lot-card__heading {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--navy-blue);
    line-height: 1.3;
}

.lot-card__offer {
    margin: 0.15rem 0 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-orange);
    line-height: 1.35;
}

.lot-card__offer-value {
    font-weight: 800;
}

.lot-card__stats {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--auction-meta-gray);
    line-height: 1.4;
}

.lot-card__stats-sep {
    margin: 0 0.35rem;
    color: #b0b0b0;
    font-weight: 300;
}

/* Vista rápida de lotes: tarjeta compacta + CTA azul (#0096d6) */
.lot-card--quick {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

    .lot-card--quick .lot-card__media {
        border-radius: 10px 10px 0 0;
    }

    .lot-card--quick .lot-card__body {
        gap: 0.35rem;
        padding: 1rem 1rem 0.85rem;
    }

.lot-card__lot-num {
    margin: 0;
    font-size: 1rem;
    font-weight: 300;
    color: #0096d6;
    line-height: 1.3;
}

.lot-card--quick .lot-card__heading {
    color: rgb(3, 49, 87);
    font-size: 1.125rem;
}

.lot-card__location {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--text);
    line-height: 1.4;
}

.lot-card--quick .lot-card__cta--quick {
    background: #0096d6;
    color: var(--white);
    border-color: #0096d6;
    font-size: 1rem;
    font-weight: 700;
}

    .lot-card--quick .lot-card__cta--quick:hover {
        background: #007ebb;
        border-color: #007ebb;
        color: var(--white);
        filter: none;
        box-shadow: none;
    }

/* Lotes detallados: cabecera lote+hora, precio en azul marino, CTA naranja */
.lot-card--detailed .lot-card__body {
    gap: 0.35rem;
    padding: 1rem 1rem 0.85rem;
}

.lot-card__lot-head {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--auction-header-blue);
    line-height: 1.3;
}

.lot-card--detailed .lot-card__heading {
    color: var(--black);
    font-size: 1.125rem;
}

.lot-card__leader {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--text);
    line-height: 1.4;
}

.lot-card__leader-name {
    font-weight: 600;
}

.lot-card--detailed .lot-card__offer--detailed {
    margin: 0.35rem 0 0;
    font-size: 1.4375rem;
    font-weight: 800;
    color: var(--navy-blue);
    line-height: 1.3;
}

    .lot-card--detailed .lot-card__offer--detailed .lot-card__offer-value {
        color: var(--navy-blue);
        font-weight: 800;
    }

.lot-card--detailed .lot-card__stats {
    margin-top: 0.15rem;
}

.lot-card--detailed .lot-card__stats-offers {
    font-weight: 600;
    color: #161616;
}

/* Sale cards */
.sale-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sale-card__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

    .sale-card__media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.sale-card__body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sale-card__price {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--black);
}

/* Ventas particulares: tarjetas alineadas a captura + mismo layout CTA que lotes/subastas */
.sale-card--private {
    border: none;
    box-shadow: var(--shadow-auction-card);
}

    .sale-card--private .sale-card__media {
        background: var(--grey-soft);
    }

    .sale-card--private .sale-card__body {
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
        padding: 1rem 1rem 1rem;
        flex: 1 1 auto;
    }

    .sale-card--private .sale-card__category {
        margin: 0;
        font-size: 0.875rem;
        font-weight: 700;
        color: var(--light-blue);
        line-height: 1.3;
    }

    .sale-card--private .sale-card__heading {
        margin: 0;
        font-size: 0.9375rem;
        font-weight: 700;
        color: var(--black);
        line-height: 1.3;
    }

    .sale-card--private .sale-card__detail {
        margin: 0;
        font-size: 0.8125rem;
        font-weight: 400;
        color: var(--black);
        line-height: 1.35;
    }

    .sale-card--private .sale-card__price {
        margin: 0.4rem 0 0;
        font-size: 1.25rem;
        font-weight: 800;
        color: var(--navy-blue);
        line-height: 1.2;
    }

    .sale-card--private .sale-card__cta {
        position: relative;
        z-index: 2;
        margin-top: auto;
        flex-shrink: 0;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        height: 35px;
        padding: 0;
        font-weight: 700;
        font-size: 0.9375rem;
        text-decoration: none;
        color: var(--white);
        background: var(--light-blue);
        border: none;
        box-sizing: border-box;
    }

        .sale-card--private .sale-card__cta:hover {
            text-decoration: none;
            filter: brightness(1.06);
        }

/* Puntos claros sobre fondo navy */
#ventas-particulares .slider__dots--private .slider__dot {
    background: rgba(255, 255, 255, 0.45);
    opacity: 1;
    border: none;
}

    #ventas-particulares .slider__dots--private .slider__dot[aria-current="true"] {
        background: var(--white);
        border: 2px solid var(--white);
        box-sizing: border-box;
        transform: none;
    }

/* CTA Vender — reutiliza .hero + .hero__overlay; imagen: images/cta final.jpg */
.sell-cta .hero__content {
    gap: 0.5rem;
    padding-top: 10px;
    padding-bottom: 10px;
}

.sell-cta__title {
    margin: 0;
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--white);
    font-family: var(--font-headings);
    font-weight: 800;
    line-height: 1.2;
}

.sell-cta__lead {
    margin: 0;
    font-size: 23px;
    letter-spacing: -0.5px;
    color: rgba(255, 255, 255, 0.96);
    font-weight: 300;
    line-height: 1.35;
    max-width: 42rem;
    margin-inline: auto;
}

/* Newsletter — captura: centrado, pill gris, botón circular con flecha, subtítulo abajo */
#newsletter.section--navy {
    background: #002b4e;
}

.newsletter-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
    max-width: 36rem;
    margin-inline: auto;
}

.newsletter-bar__title {
    margin: 0;
    font-size: clamp(1.15rem, 2.5vw, 1.35rem);
    font-weight: 800;
    color: var(--white);
    font-family: var(--font-headings);
}

.newsletter-bar__form {
    width: 100%;
    max-width: 32rem;
}

.newsletter-bar__combo {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
    height: 43px;
    background: #e9e9e9;
    border-radius: 9999px;
    padding: 0.35rem 0.45rem 0.35rem 1.25rem;
    box-sizing: border-box;
}

.newsletter-bar__input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 0.65rem 0;
    font-size: 1rem;
    font-family: var(--font-main);
    color: var(--text);
    border-radius: 9999px;
}

    .newsletter-bar__input::placeholder {
        color: rgba(51, 51, 51, 0.55);
    }

    .newsletter-bar__input:focus {
        outline: none;
    }

.newsletter-bar__submit {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #d0d0d0;
    background: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: #555;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

    .newsletter-bar__submit:hover {
        background: #f5f5f5;
        color: #333;
    }

    .newsletter-bar__submit:focus-visible {
        outline: 2px solid var(--white);
        outline-offset: 2px;
    }

.newsletter-bar__submit-icon {
    display: block;
}

.newsletter-bar__subtitle {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.45;
    color: var(--white);
}

/* -------------------------------------------------------------------------- */
/* Bloque #contacto — formulario .form-contact (submit evitado en script.js)  */
/* -------------------------------------------------------------------------- */
.contact-lead {
    margin: -1rem 0 2rem;
    max-width: 560px;
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
}

.form-contact__cols {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .form-contact__cols {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.form-contact__col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.field--grow {
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .field--grow .input--textarea {
        flex: 1;
        min-height: 220px;
    }

.form-contact .input {
    width: 100%;
    padding: 0.65rem 0;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-bottom: 1px solid var(--white);
    border-radius: 0;
    background: transparent;
    color: var(--white);
    box-sizing: border-box;
}

    .form-contact .input::placeholder {
        color: var(--white);
        opacity: 1;
        font-weight: 600;
    }

    .form-contact .input:focus {
        outline: none;
        border-bottom-color: var(--white);
    }

    .form-contact .input:focus-visible {
        outline: 2px solid var(--white);
        outline-offset: 4px;
    }

.input--textarea {
    resize: vertical;
    min-height: 120px;
}

.form-contact__actions {
    display: flex;
    justify-content: flex-end;
}

.form-contact .btn--contact-submit {
    border-radius: 40px;
    padding: 0.55rem 1.85rem;
    font-weight: 600;
}

/* -------------------------------------------------------------------------- */
/* Pie: columnas + acordeón móvil ([data-footer-accordion] en script.js)      */
/* -------------------------------------------------------------------------- */
.site-footer {
    background: var(--black);
    color: rgba(255, 255, 255, 0.85);
    padding-top: 3rem;
}

    .site-footer a {
        color: rgba(255, 255, 255, 0.85);
        text-decoration: none;
    }

        .site-footer a:hover {
            text-decoration: underline;
            color: var(--white);
        }

.site-footer__grid {
    display: grid;
    gap: 2rem;
    padding-bottom: 70px;
    grid-template-columns: 1fr;
}

@media (min-width: 600px) {
    .site-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .site-footer__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .site-footer__grid {
        grid-template-columns: 1.15fr repeat(4, minmax(0, 1fr));
        align-items: start;
    }

    /* Una fila: marca + 4 columnas de menú (la 5ª agrupa enlaces planos + redes) */
    .site-footer__col--brand {
        grid-column: 1;
    }

    .site-footer__menu-list > li:nth-child(1) {
        grid-column: 2;
    }

    .site-footer__menu-list > li:nth-child(2) {
        grid-column: 3;
    }

    .site-footer__menu-list > li:nth-child(3) {
        grid-column: 4;
    }

    .site-footer__menu-list > li:nth-child(4) {
        grid-column: 5;
    }
}

.site-footer__logo-link {
    display: inline-block;
    margin: 0 0 1.25rem;
    line-height: 0;
}

    .site-footer__logo-link:hover {
        opacity: 0.92;
    }

.site-footer__logo-img {
    display: block;
    width: auto;
    max-width: 200px;
    height: auto;
}

.site-footer__contact {
    font-size: 0.9375rem;
}

.site-footer__address {
    margin: 0 0 0.5rem;
    font-size: 0.9375rem;
}

.site-footer__contact-line {
    margin: 0 0 0.4rem;
}

.site-footer__heading {
    margin: 0 0 1rem;
    font-size: 1rem;
    text-transform: none;
    letter-spacing: normal;
    color: var(--white);
    font-family: var(--font-main);
    font-weight: 700;
}

.site-footer__links {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    line-height: 16px;
}

    .site-footer__links li {
        margin-bottom: 0.45rem;
    }

.site-footer__nav {
    display: contents;
}

.site-footer__menu-list {
    display: contents;
    list-style: none;
    margin: 0;
    padding: 0;
}

    .site-footer__menu-list > li {
        min-width: 0;
    }

.site-footer__col--nav-social {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.site-footer__menu-flat {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.site-footer__social-static {
    min-width: 0;
    text-align: left;
}

.site-footer__heading--social {
    margin: 0 0 0.75rem;
    text-align: left;
}

.site-footer__social-static .site-footer__links--social {
    justify-content: flex-start;
}

.site-footer__col--brand {
    border-bottom: none;
}

.site-footer__nav-block {
    min-width: 0;
}

.site-footer__menu-item {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-main);
    color: var(--white);
    text-decoration: none;
    line-height: 1.25;
}

    .site-footer__menu-item:hover {
        color: var(--white);
        text-decoration: underline;
    }

summary.site-footer__menu-item {
    list-style: none;
}

    summary.site-footer__menu-item::-webkit-details-marker {
        display: none;
    }

.site-footer__accordion-summary {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.4rem;
    width: 100%;
    text-align: left;
    line-height: 1.25;
}

    .site-footer__accordion-summary:hover {
        color: var(--white);
    }

    .site-footer__accordion-summary:focus-visible {
        outline: 2px solid rgba(255, 255, 255, 0.6);
        outline-offset: 3px;
    }

    .site-footer__accordion-summary::after {
        content: "";
        display: inline-block;
        width: 0.45rem;
        height: 0.45rem;
        margin-left: auto;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        transition: transform 0.2s ease;
        flex-shrink: 0;
    }

.site-footer__nav details[open] .site-footer__accordion-summary::after {
    transform: rotate(-135deg);
    margin-top: 0.2rem;
}

.site-footer__accordion-panel {
    padding-top: 0.35rem;
}

@media (min-width: 768px) {
    .site-footer__accordion-panel {
        display: block !important;
    }

    .site-footer__accordion-summary::after {
        display: none;
    }

    .site-footer__accordion-summary {
        pointer-events: none;
        cursor: default;
    }
}

.site-footer__links--social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

    .site-footer__links--social a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 2.5rem;
        min-height: 2.5rem;
        padding: 0.25rem;
        box-sizing: border-box;
        color: rgba(255, 255, 255, 0.85);
    }

        .site-footer__links--social a:hover {
            color: var(--white);
            opacity: 1;
            text-decoration: none;
        }

.site-footer__strip {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__strip-bar--rights {
    background: var(--light-blue);
    padding: 0.5rem 1.25rem;
    text-align: center;
}

.site-footer__strip-copy {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    text-align: left;
    line-height: 1.35;
    color: var(--white);
    font-family: var(--font-main);
}

.site-footer__strip-bar--badges {
    background: #ffffff;
    padding: 0.75rem 1.25rem;
}

.site-footer__strip-badges-inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.site-footer__badges-img {
    display: block;
    height: auto;
    max-height: 56px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: right center;
}

/* Mobile nav */
@media (max-width: 767px) {
    /* Cabecera pegajosa: fixed (sticky no aplica bien con overflow-x:hidden en html/body). */
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    body {
        padding-top: var(--header-h);
    }

    .header__inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        gap: 0.75rem;
    }

    .header__mobile-tools {
        display: flex;
        align-items: center;
        flex-shrink: 0;
        gap: 0.25rem;
    }

    .header__register-icon {
        width: 44px;
        height: 44px;
        background: var(--primary-orange);
        color: var(--white);
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(255, 102, 0, 0.25);
    }

        .header__register-icon:hover {
            color: var(--white);
            background: var(--primary-orange);
            filter: brightness(1.06);
            box-shadow: 0 4px 14px rgba(255, 102, 0, 0.35);
        }

    .logo {
        grid-area: unset;
        justify-self: unset;
    }

    .nav-toggle {
        display: flex;
        flex-shrink: 0;
    }

    .header__nav-panel {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: fixed;
        inset: var(--header-h) 0 0 0;
        padding: 1.25rem;
        background: var(--page-bg);
        border-bottom: 1px solid var(--border);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
        overflow-y: auto;
        max-height: calc(100vh - var(--header-h));
        z-index: 99;
    }

        .header__nav-panel.is-open {
            transform: translateY(0);
            opacity: 1;
            visibility: visible;
        }

    .nav {
        grid-area: unset;
        justify-self: unset;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .nav__list {
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid var(--border);
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }

    .nav__link {
        display: flex;
        width: 100%;
        padding: 0.75rem 0;
        justify-content: flex-start;
    }

    .header__actions {
        grid-area: unset;
        justify-self: unset;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .nav__login {
        text-align: center;
        padding: 0.5rem 0;
    }

    /* Registro: icono en barra (.header__register-icon); no duplicar en el panel */
    .header__actions .btn--register {
        display: none;
    }

    .slider {
        grid-template-columns: 1fr;
    }

    .slider__arrow {
        display: none;
    }

    .slider__viewport {
        grid-column: 1;
    }

    .slider.slider--auctions {
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 0.5rem;
    }

    .slider--auctions .slider__arrow {
        display: grid !important;
        place-items: center;
    }

    .slider--auctions .slider__arrow--prev {
        grid-column: 1;
        grid-row: 1;
        margin: 0;
    }

    .slider--auctions .slider__viewport {
        container-type: inline-size;
        container-name: auction-carousel;
        grid-column: 2;
        grid-row: 1;
    }

    .slider--auctions .slider__arrow--next {
        grid-column: 3;
        grid-row: 1;
        margin: 0;
    }

    /* Márgenes laterales: la tarjeta deja hueco simétrico para las flechas */
    .slider--auctions .auction-card,
    .slider--auctions .sale-card--private {
        margin-inline: 1rem;
    }

    .slider--auctions .slider__dots {
        grid-row: 2;
    }

    .slider--auctions .slider__slide {
        flex: 0 0 100cqw;
        width: 100cqw;
        max-width: none;
    }

    .slider--auctions .slider__track {
        gap: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .slider--auctions .auction-card__title {
        font-size: 1.0625rem;
    }

    .hero-container {
        padding: 0 0 1.5rem;
    }

        .hero-container:has(#vender) {
            padding-block: 0px;
        }

    .hero {
        border-radius: 0;
        height: var(--hero-banner-height);
        min-height: var(--hero-banner-height);
        max-height: var(--hero-banner-height);
    }

    /* Banner móvil detrás del copy (misma composición que el preview) */
    .hero__bg-img {
        display: none;
    }

    .hero__content {
        align-self: stretch;
        width: 100%;
        max-width: none;
        min-height: 100%;
        border-radius: 0;
        background-color: #0a1f30;
        background-image: linear-gradient( rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.46) ), url("images/banner header mobile.jpg");
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .sell-cta .hero__content {
        background-image: linear-gradient( rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.46) ), url("images/cta%20final%20mobile.png");
    }

    .mid-banner {
        border-radius: 0;
        min-height: var(--hero-banner-height);
    }

    /* Fondo móvil dedicado (sin repetición, cubre el área) */
    .mid-banner__bg-img {
        display: none;
    }

    .mid-banner__bg {
        background-color: #0a1f30;
        background-image: url("images/cta%2060%20anios%20mobile.jpg");
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .mid-banner__graphics {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.85rem;
    }

    .mid-banner__logo-img {
        max-width: min(100%, 15rem);
    }

    .mid-banner__years-frame {
        max-width: min(100%, 15rem);
    }

    /* Hero principal: dos CTAs en columna, mismo ancho = al texto más largo */
    main.page-main > .hero-container:first-of-type .hero .hero__actions {
        display: inline-grid;
        grid-template-columns: minmax(0, max-content);
        gap: 0.75rem;
        justify-items: stretch;
        max-width: 100%;
        margin-inline: auto;
    }

        main.page-main > .hero-container:first-of-type .hero .hero__actions .btn.btn--lg {
            width: 100%;
            max-width: 100%;
            min-width: 0;
            margin-inline: 0;
            box-sizing: border-box;
        }

    /* Mid-banner y vender: ancho al texto, sin tocar tipografía */
    main.page-main > .hero-container .mid-banner .mid-banner__content > .btn.btn--lg,
    #vender .hero__actions .btn.btn--lg {
        width: fit-content;
        max-width: 100%;
        min-width: 0;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }

    body.nav-open {
        overflow: hidden;
    }

    /* Footer: centrado y acordeones en móvil */
    .site-footer__grid {
        text-align: center;
        justify-items: stretch;
        gap: 1.25rem;
    }

    .site-footer__col--brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-bottom: 0;
        border-bottom: none;
    }

    .site-footer__logo-link {
        margin-left: auto;
        margin-right: auto;
    }

    .site-footer__contact {
        text-align: center;
    }

    .site-footer__links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .site-footer__links--social {
        flex-direction: row;
        justify-content: center;
    }

    .site-footer__social-static {
        text-align: center;
    }

    .site-footer__heading--social {
        text-align: center;
    }

    .site-footer__social-static .site-footer__links--social {
        justify-content: center;
    }

    .site-footer__nav-block {
        width: 100%;
    }

    .site-footer__col--nav-social {
        gap: 1.25rem;
    }

        .site-footer__col--nav-social .site-footer__menu-flat {
            gap: 1.25rem;
        }

    .site-footer__heading {
        margin: 0;
    }

    .site-footer__heading--social {
        margin: 0 0 0.75rem;
    }

    .site-footer__accordion-summary {
        justify-content: center;
        text-align: center;
    }

        .site-footer__accordion-summary::after {
            margin-left: 0;
        }

    .site-footer__strip-copy {
        text-align: center;
    }

    .site-footer__strip-badges-inner {
        justify-content: center;
    }

    .site-footer__badges-img {
        object-position: center center;
    }
}

/* -------------------------------------------------------------------------- */
/* Página listado de lotes (listado-lotes.html): tarjeta 150px alto; barra + imagen a ras; texto en #f5f5f5. */
/* -------------------------------------------------------------------------- */
.page-lote .page-main {
    color: var(--text);
}

/* Ancho de maqueta 1200px: sin padding lateral del .container (solo en esta página). */
.page-lote .hero-container.container {
    max-width: 1200px;
    width: 100%;
    margin-inline: auto;
    padding-inline: 0;
    box-sizing: border-box;
}

/* acto-de-subasta.html: franja naranja bajo el hero principal (“SUBASTAS EN VIVO”) */
.live-auctions-banner {
    width: 100%;
    margin: 0;
    padding: 0.5rem 1.25rem;
    box-sizing: border-box;
    background: var(--primary-orange);
    color: var(--white);
    text-align: center;
}

.live-auctions-banner__title {
    margin: 0;
    font-family: var(--font-main);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.25;
    color: inherit;
}

@media (max-width: 767px) {
    .live-auctions-banner__title {
        font-size: 16px;
    }
}

/* acto-de-subasta.html: grilla 4×2 de lotes en vivo bajo el hero */
.page-lote .acto-live-lots {
    padding: 1.25rem 0 1.75rem;
    background: var(--page-bg);
}

.page-lote .acto-live-lots__container {
    max-width: 1200px;
    width: 100%;
    margin-inline: auto;
    padding-inline: 0;
    box-sizing: border-box;
}

@media (max-width: 1239px) {
    .page-lote .acto-live-lots__container {
        padding-inline: 1.25rem;
    }
}

/* acto-de-subasta.html: bloque “Últimas ofertas” debajo de la grilla en vivo */
.page-lote .acto-last-bids {
    padding: 2rem 0 2.5rem;
    background: #eeeeee;
    text-align: center;
}

.page-lote .acto-last-bids__container {
    max-width: 1200px;
    margin-inline: auto;
    box-sizing: border-box;
}

.page-lote .acto-last-bids__title {
    margin: 0 0 1.25rem;
    font-family: var(--font-main);
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.35;
    color: #033157;
}

.page-lote .acto-last-bids__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.page-lote .acto-last-bids__item {
    margin: 0;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.45;
    color: #033157;
}

.page-lote .acto-live-lots__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

@media (max-width: 1199px) {
    .page-lote .acto-live-lots__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 575px) {
    .page-lote .acto-live-lots__grid {
        grid-template-columns: 1fr;
    }

    /* Tarjeta acto: cabecera + fila (imagen | temporizador + panel gris con datos y CTAs) */
    .page-lote .acto-live-lots .acto-lot-card {
        display: grid;
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        grid-template-rows: auto auto minmax(0, 1fr);
        grid-template-areas:
            "head head"
            "media timer"
            "media body";
        align-items: stretch;
        height: auto;
        min-height: 260px;
    }

    .page-lote .acto-lot-card__head {
        grid-area: head;
    }

    .page-lote .acto-lot-card__media {
        grid-area: media;
        aspect-ratio: auto;
        min-height: 0;
        height: 100%;
        align-self: stretch;
    }

    .page-lote .acto-lot-card__img {
        height: 100%;
        min-height: 0;
    }

    .page-lote .acto-lot-card__timer-bar {
        grid-area: timer;
        padding: 0.4rem 0.5rem;
        justify-content: center;
    }

    .page-lote .acto-lot-card__body {
        grid-area: body;
        background: var(--acto-lot-panel-bg);
        padding: 0.625rem 0.75rem;
        gap: 0.35rem;
        min-height: 0;
        height: 100%;
        justify-content: flex-start;
    }

    .page-lote .acto-live-lots .acto-lot-card__quick-bids {
        margin-top: auto;
        flex-wrap: nowrap;
        gap: 0.35rem;
        justify-content: center;
    }
}

.acto-lot-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 6px 20px rgba(0, 0, 0, 0.09), 0 16px 40px rgba(0, 0, 0, 0.06);
    border: none;
}

@media (max-width: 767px) {
    .page-lote .acto-live-lots__container {
        padding-inline: 0;
        max-width: none;
    }

    .page-lote .acto-lot-card {
        border-radius: 0;
    }
}

.acto-lot-card__head {
    background: var(--acto-lot-blue);
    color: var(--white);
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.5rem 0.75rem;
    line-height: 1.25;
}

.acto-lot-card__media {
    aspect-ratio: 282 / 229;
    overflow: hidden;
    background: var(--grey-soft);
}

.acto-lot-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.acto-lot-card__timer-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.45rem;
    flex-shrink: 0;
    padding: 0.5rem 0.75rem;
    background: var(--acto-lot-timer-red);
    color: var(--white);
}

.acto-lot-card__timer-icon {
    flex-shrink: 0;
    opacity: 0.98;
}

.acto-lot-card__timer-text {
    font-size: 1.25rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.03em;
    line-height: 1.2;
}

.acto-lot-card__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1rem 1.125rem 1.125rem;
    min-height: 0;
}

.acto-lot-card__title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--acto-lot-title-navy);
}

.acto-lot-card__bid {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.acto-lot-card__bid-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--auction-meta-gray);
}

.acto-lot-card__price {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--primary-orange);
    letter-spacing: -0.02em;
}

.acto-lot-card__increment {
    display: block;
    margin-top: 0.125rem;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--primary-orange);
}

.acto-lot-card__leader {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--text);
    line-height: 1.45;
}

.acto-lot-card__leader-name {
    font-weight: 700;
}

/* Solo acto-de-subasta — sección .acto-live-lots */
.page-lote .acto-live-lots .acto-lot-card__title {
    font-size: 1.125rem;
    color: #033157;
}

.page-lote .acto-live-lots .acto-lot-card__bid-label,
.page-lote .acto-live-lots .acto-lot-card__leader {
    font-size: 1rem;
    color: rgba(22, 22, 22, 1);
}

.page-lote .acto-live-lots .acto-lot-card__price {
    font-size: 1.4375rem;
    color: var(--primary-orange);
}

.page-lote .acto-live-lots .acto-lot-card__increment {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-orange);
}

.page-lote .acto-live-lots .acto-lot-card__quick-bid {
    font-size: 1rem;
}

@media (max-width: 575px) {
    .page-lote .acto-live-lots .acto-lot-card__quick-bid {
        font-size: 1.125rem;
        padding: 0.48rem 0.75rem;
    }
}

.acto-lot-card__quick-bids {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-top: 0.35rem;
    position: relative;
    z-index: 2;
}

.acto-lot-card__quick-bid {
    appearance: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.42rem 0.95rem;
    border-radius: 9999px;
    border: 1px solid var(--acto-lot-quick-bid-border);
    background: var(--acto-lot-blue);
    color: var(--white);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
    transition: background var(--transition), filter var(--transition);
}

    .acto-lot-card__quick-bid:hover {
        filter: brightness(1.06);
    }

    .acto-lot-card__quick-bid:focus-visible {
        outline: 2px solid var(--color-primary);
        outline-offset: 2px;
    }

/* Cinta de avisos (marquee) debajo del hero del lote */
.page-lote .marquee-bar {
    background: #0b0b0b;
    color: var(--white);
}

.page-lote .marquee-bar__container.container {
    max-width: 1200px;
    width: 100%;
    margin-inline: auto;
    padding-inline: 0;
}

.page-lote .marquee-bar__viewport {
    overflow: hidden;
    white-space: nowrap;
    padding: 6px 0;
}

.page-lote .marquee-bar__track {
    display: inline-flex;
    align-items: center;
    width: max-content;
    will-change: transform;
    animation: marquee-scroll 18s linear infinite;
}

.page-lote .marquee-bar__text {
    font-family: "Montserrat", var(--font-main);
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.page-lote .marquee-bar__sep {
    flex: 0 0 auto;
    padding: 0 18px;
    opacity: 0.9;
}

.page-lote .marquee-bar__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;
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-lote .marquee-bar__track {
        animation: none;
    }

    .page-lote .marquee-bar__viewport {
        overflow-x: auto;
    }
}

.page-lote .lot-hero {
    width: 100%;
}

.page-lote .lot-hero__card {
    --lot-hero-h: 150px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    gap: 0;
    background: var(--white);
    color: var(--text);
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 3px 10px rgba(0, 0, 0, 0.06);
    height: var(--lot-hero-h);
    min-height: var(--lot-hero-h);
    max-height: var(--lot-hero-h);
    overflow: hidden;
}

.page-lote .lot-hero__accent {
    flex: 0 0 20px;
    width: 20px;
    align-self: stretch;
    background: var(--light-blue);
}

.page-lote .lot-hero__media {
    flex: 0 0 calc(var(--lot-hero-h) * 250 / 152);
    align-self: stretch;
    position: relative;
    width: calc(var(--lot-hero-h) * 250 / 152);
    height: var(--lot-hero-h);
    margin: 0;
    padding: 0;
    line-height: 0;
    overflow: hidden;
}

.page-lote .lot-hero__img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
}

.page-lote .lot-hero__content {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem 1rem;
    padding: 0.35rem 1rem 0.35rem 30px;
    box-sizing: border-box;
    background: #f5f5f5;
}

.page-lote .lot-hero__center {
    flex: 0 0 588px;
    width: 588px;
    max-width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.08rem;
    padding: 0;
    text-align: left;
    font-family: "Montserrat", var(--font-main);
}

.page-lote .lot-hero__aside {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0;
    box-sizing: border-box;
}

.page-lote .lot-hero__title {
    margin: 0;
    font-family: "Montserrat", var(--font-main);
    font-size: 23px;
    font-weight: 700;
    line-height: 1.2;
    color: #003b5c;
    letter-spacing: -0.01em;
}

.page-lote .lot-hero__datetime {
    margin: 0;
    font-family: "Montserrat", var(--font-main);
    padding-top: 5px;
    font-size: 16px;
    font-weight: 500;
    color: #003b5c;
}

.page-lote .lot-hero__meta-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.1rem 0.22rem;
    margin: 10px 0 0;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    line-height: 1.25;
}

.page-lote .lot-hero__meta-link {
    color: #003b5c;
    text-decoration: underline;
    text-underline-offset: 1px;
    text-decoration-thickness: 1px;
}

    .page-lote .lot-hero__meta-link:hover {
        color: var(--color-primary);
    }

.page-lote .lot-hero__meta-link--strong {
    font-weight: 700;
}

.page-lote .lot-hero__meta-sep {
    color: rgba(0, 59, 92, 0.4);
    font-weight: 500;
    text-decoration: none;
    user-select: none;
}

.page-lote .lot-hero__cta {
    border-radius: 9999px;
    font-family: "Montserrat", var(--font-main);
    font-weight: 700;
    font-size: 16px;
    padding: 0.28rem 9px;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.2;
}

    .page-lote .lot-hero__cta:hover {
        text-decoration: none;
    }

.page-lote .lot-hero__stats {
    margin: 0;
    padding-top: 8px;
    font-size: 12px;
    font-family: "Montserrat", var(--font-main);
    font-weight: 400;
    color: rgba(22, 22, 22, 1);
    text-align: center;
    line-height: 1.2;
}

    .page-lote .lot-hero__stats strong {
        font-weight: 700;
        color: #003b5c;
    }

.page-lote .lot-hero__stats-sep {
    margin: 0 0.22rem;
    color: rgba(102, 102, 102, 0.55);
}

.page-lote .lot-hero__subline {
    margin: 20px 0 0;
    text-align: center;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--black);
}

.page-lote .lot-hero__subline-countdown {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy-blue);
}

.page-lote .lot-hero__subline-sep {
    margin: 0 0.4rem;
    color: rgb(3, 49, 87);
    font-weight: 400;
}

.page-lote .lot-hero__subline-lots {
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

@media (max-width: 767px) {
    .page-lote .lot-hero__card {
        flex-direction: column;
        align-items: stretch;
        height: auto;
        min-height: 0;
        max-height: none;
        border-radius: 0;
    }

    .page-lote .lot-hero__accent {
        flex: 0 0 auto;
        width: 100%;
        height: 15px;
    }

    .page-lote .lot-hero__media {
        flex: 0 0 auto;
        align-self: stretch;
        position: relative;
        width: 100%;
        height: auto;
        aspect-ratio: 250 / 152;
        padding: 0;
        overflow: hidden;
    }

    .page-lote .lot-hero__img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }

    .page-lote .lot-hero__content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem 1.25rem 1.25rem;
        gap: 0.75rem;
    }

    .page-lote .lot-hero__center {
        flex: 1 1 auto;
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .page-lote .lot-hero__meta-nav {
        justify-content: center;
    }

    .page-lote .lot-hero__aside {
        align-items: center;
    }

    .page-lote .lot-hero__stats {
        text-align: center;
    }

    .page-lote .lot-hero__cta {
        width: fit-content;
        max-width: 100%;
        align-self: center;
        justify-content: center;
        box-sizing: border-box;
        white-space: nowrap;
        font-size: 16px;
        padding: 0.5rem 1rem;
    }
}

/* -------------------------------------------------------------------------- */
/* Detalle de lote (lote.html): galería + fichas bajo marquee (captura Figma)   */
/* -------------------------------------------------------------------------- */
.page-lote .lote-detail {
    padding: 1.5rem 0 2.5rem;
    background-color: rgba(238, 238, 238, 1);
}

.page-lote .lote-detail__container {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 0;
    box-sizing: border-box;
}

.page-lote .lote-detail__lot-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr) minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem 1rem;
    margin-bottom: 1.5rem;
}

.page-lote .lote-detail__lot-nav-link {
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 500;
    color: rgba(0, 0, 0, 1);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

    .page-lote .lote-detail__lot-nav-link:hover {
        color: var(--navy-blue);
    }

.page-lote .lote-detail__lot-nav-link--next {
    text-align: right;
    justify-self: end;
}

.page-lote .lote-detail__title {
    margin: 0;
    min-width: 0;
    text-align: center;
    font-family: "Montserrat", var(--font-main);
    font-size: clamp(1.125rem, 2.2vw, 2rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--black);
}

.page-lote .lote-detail__title-num {
    display: inline-block;
    margin-right: 0.35rem;
}

/* Desktop: título en una sola línea (el <br> solo aplica en móvil). */
@media (min-width: 768px) {
    .page-lote .lote-detail__title-br {
        display: none;
    }

    .page-lote .lote-detail__title-suffix::before {
        content: " ";
    }
}

.page-lote .lote-detail__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
    gap: 1.5rem;
    /* Misma altura de fila: galería y fichas comparten baseline inferior (referencia Figma). */
    align-items: stretch;
}

    /* Evita min-width:auto del grid: sin esto el contenido de la columna ficha puede forzar scroll horizontal. */
    .page-lote .lote-detail__grid > * {
        min-width: 0;
        min-height: 0;
    }

/* Galería detalle: bloque tipo tarjeta (referencia visual captura). */
.page-lote .lote-detail__gallery {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0;
    color: rgba(51, 51, 51, 1);
    background: rgba(238, 238, 238, 1);
    border-radius: 14px;
    border: none;
    border-image: none;
    box-shadow: none;
}

.page-lote .lote-detail__stage {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #ececec;
    box-shadow: none;
}

.page-lote .lote-detail__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    padding: 0.35rem 0.65rem;
    font-family: "Montserrat", var(--font-main);
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--primary-orange);
    border-radius: 4px;
    line-height: 1;
}

.page-lote .lote-detail__stage-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

/*
 * Carrusel detalle: foto + flechas media luna; bajo la foto fila ‹ ··· › (lote.html).
 * Anula el position:absolute del .slider--card-media genérico solo aquí.
 */
.page-lote .lote-detail__slider.slider--card-media {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    height: auto;
    inset: auto;
    border-radius: 12px;
    overflow: hidden;
    background-color: rgba(238, 238, 238, 1);
}

.page-lote .lote-detail__slider-main {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    min-height: 220px;
}

/*
 * Galería detalle: foto completa (contain). Misma especificidad que .slider.slider--card-media … img
 * pero con .page-lote + .lote-detail__slider para ganar la cascada al cover de tarjetas.
 */
.page-lote .lote-detail__slider.slider--card-media .slider__slide--card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.page-lote .lote-detail__slider-main .slider__viewport--card-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.page-lote .lote-detail__slider-main .slider__arrow--card-media {
    z-index: 3;
}

.page-lote .lote-detail__slider-rail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    flex-shrink: 0;
    padding: 0.65rem 0.5rem 0.35rem;
    background: rgba(238, 238, 238, 1);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.page-lote .lote-detail__rail-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #555;
    cursor: pointer;
    transition: color 0.15s ease, opacity 0.15s ease;
}

    .page-lote .lote-detail__rail-arrow:hover:not(:disabled) {
        color: #111;
    }

    .page-lote .lote-detail__rail-arrow:disabled {
        opacity: 0.28;
        cursor: default;
    }

.page-lote .lote-detail__slider .slider__dots--lote-detail {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin: 0;
    padding: 0;
    gap: 0.55rem;
    flex-wrap: wrap;
    max-width: min(100%, 14rem);
}

    .page-lote .lote-detail__slider .slider__dots--lote-detail .slider__dot {
        width: 10px;
        height: 10px;
        padding: 0;
        opacity: 1;
        background: #c8c8c8;
        border: none;
        box-sizing: border-box;
    }

        .page-lote .lote-detail__slider .slider__dots--lote-detail .slider__dot[aria-current="true"] {
            background: #4a4a4a;
            transform: none;
        }

/* Cuatro miniaturas en fila repartiendo todo el ancho del bloque galería (referencia Figma). */
.page-lote .lote-detail__thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    flex-shrink: 0;
    width: 100%;
    margin-top: 1rem;
    padding: 0;
    list-style: none;
}

.page-lote .lote-detail__thumb {
    position: relative;
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: #ddd;
    line-height: 0;
    transition: border-color 0.15s ease, opacity 0.15s ease;
}

    .page-lote .lote-detail__thumb:hover,
    .page-lote .lote-detail__thumb:focus-visible {
        border-color: var(--primary-orange);
        outline: none;
    }

.page-lote .lote-detail__thumb--current {
    border-color: var(--primary-orange);
}

.page-lote .lote-detail__thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.page-lote .lote-detail__thumb--video::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.page-lote .lote-detail__thumb-play {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 40%;
    transform: translate(-50%, -50%);
    box-sizing: border-box;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.28);
    pointer-events: none;
}

.page-lote .lote-detail__thumb-play-triangle {
    display: block;
    width: 0;
    height: 0;
    margin-left: 3px;
    border-style: solid;
    border-width: 7px 0 7px 11px;
    border-color: transparent transparent transparent var(--white);
}

.page-lote .lote-detail__thumb-video-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.45rem;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    font-family: "Montserrat", var(--font-main);
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--white);
    pointer-events: none;
}

.page-lote .lote-detail__panels {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 1rem;
    height: 100%;
    min-height: 0;
}

.page-lote .lote-detail__card {
    margin: 0;
    padding: 1.15rem 1.25rem 1.25rem;
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Tarjeta informativa del lote (captura Figma): cabecera + título + specs */
.page-lote .lote-detail__card--info {
    padding: 1.75rem 1.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

    /* Lote + countdown: en columna ≤470px nowrap desborda (~50px) y genera scroll en la página. */
    .page-lote .lote-detail__card--info .lote-detail__card-head {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 1.1rem;
    }

    .page-lote .lote-detail__card--info .lote-detail__lot-time {
        flex-shrink: 0;
        margin: 0;
        font-size: 16px;
        font-weight: 600;
        color: #0099cc;
    }

    /* Etiqueta + tres cajas: permitir salto de línea si el ancho útil es estrecho (columna derecha del grid). */
    .page-lote .lote-detail__card--info .lote-detail__countdown {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-end;
        flex-shrink: 0;
        margin-left: auto;
        gap: 0.6rem;
        max-width: 100%;
    }

    .page-lote .lote-detail__card--info .lote-detail__countdown-label {
        font-size: 0.8125rem;
        font-weight: 700;
        color: #003366;
        text-align: left;
        white-space: nowrap;
        line-height: 1.25;
    }

    .page-lote .lote-detail__card--info .lote-detail__countdown-units {
        display: flex;
        flex-shrink: 0;
        align-items: stretch;
        gap: 0.3rem;
    }

    .page-lote .lote-detail__card--info .lote-detail__countdown-unit {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        min-width: 2.125rem;
        padding: 0.26rem 0.28rem 0.2rem;
        border: none;
        border-radius: 10px;
        background: #eef1f4;
    }

    .page-lote .lote-detail__card--info .lote-detail__countdown-value {
        font-size: 0.9375rem;
        font-weight: 800;
        color: #000000;
        line-height: 1;
    }

    .page-lote .lote-detail__card--info .lote-detail__countdown-unit-label {
        margin-top: 0.08rem;
        font-size: 0.5rem;
        font-weight: 500;
        color: #7d8fa3;
        text-align: center;
        line-height: 1.15;
        letter-spacing: 0.01em;
    }

    .page-lote .lote-detail__card--info .lote-detail__card-info-main {
        margin-bottom: 0.15rem;
    }

    .page-lote .lote-detail__card--info .lote-detail__product-title {
        margin: 0 0 0.55rem;
        font-size: 1.5rem;
        font-weight: 800;
        line-height: 1.2;
        color: #000000;
    }

    .page-lote .lote-detail__card--info .lote-detail__leader,
    .page-lote .lote-detail__card--info .lote-detail__location {
        color: #000000;
        font-size: 16px;
    }

    .page-lote .lote-detail__card--info .lote-detail__leader-name {
        font-weight: 700;
    }

    .page-lote .lote-detail__card--info .lote-detail__specs-title {
        margin: 1.35rem 0 0.5rem;
        font-size: 16px;
        font-weight: 700;
        color: #000000;
    }

    /* Lista minimal: una columna de filas, etiqueta regular | valor negrita, sin cajas ni bordes */
    .page-lote .lote-detail__card--info .lote-detail__specs {
        display: flex;
        flex-direction: column;
        gap: 0.28rem;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .page-lote .lote-detail__card--info .lote-detail__spec-row {
        display: grid;
        grid-template-columns: minmax(0, 10.5rem) minmax(0, 1fr);
        gap: 0.45rem 1rem;
        align-items: baseline;
        font-size: 16px;
        line-height: 1.28;
        min-width: 0;
    }

        .page-lote .lote-detail__card--info .lote-detail__spec-row .lote-detail__spec-label {
            margin: 0;
            min-width: 0;
            font-weight: 400;
            color: #000000;
        }

        .page-lote .lote-detail__card--info .lote-detail__spec-row .lote-detail__spec-value {
            margin: 0;
            min-width: 0;
            font-weight: 700;
            color: #000000;
            overflow-wrap: anywhere;
        }

.page-lote .lote-detail__card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 0.65rem;
}

.page-lote .lote-detail__lot-time {
    margin: 0;
    font-family: var(--font-main);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--auction-header-blue);
}

.page-lote .lote-detail__countdown {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.65rem;
}

.page-lote .lote-detail__countdown-label {
    font-family: var(--font-main);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--auction-meta-gray);
}

/* Persistir ajuste del preview: ancho fijo del label del contador. */
.page-lote #lote-countdown-label {
    display: inline-block;
    width: 100px;
}

.page-lote .lote-ficha {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    background: var(--page-bg);
}

    .page-lote .lote-ficha .container {
        padding-inline: 0;
    }

@media (max-width: 767px) {
    .page-lote .lote-ficha .container {
        padding-inline: 1.75rem;
    }
}

.page-lote .lote-ficha__card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
    padding: 1.5rem 1.6rem;
}

.page-lote .lote-ficha__top {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 1.25rem 2rem;
    align-items: start;
    margin-bottom: 1.25rem;
}

@media (max-width: 767px) {
    .page-lote .lote-ficha__top {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.page-lote .lote-ficha__heading {
    margin: 0 0 0.65rem;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 700;
    color: var(--black);
}

.page-lote .lote-ficha__list {
    margin: 0;
    padding-left: 1.2rem;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 500;
    color: #3a3a3a;
    line-height: 1.55;
}

    .page-lote .lote-ficha__list li + li {
        margin-top: 0.25rem;
    }

.page-lote .lote-ficha__doc {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 0.85rem;
    align-items: center;
}

.page-lote .lote-ficha__doc-icon {
    width: 70px;
    height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
}

    .page-lote .lote-ficha__doc-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

.page-lote .lote-ficha__doc-text {
    margin: 0 0 0.55rem;
    font-family: var(--font-main);
    font-size: 0.75rem;
    font-weight: 500;
    color: #3a3a3a;
    line-height: 1.35;
}

.page-lote .lote-ficha__doc-btn.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.1rem;
    border-radius: 8px;
    background: #0d4a63;
    color: #ffffff;
    border: none;
    font-weight: 700;
    font-size: 0.75rem;
    text-decoration: none;
    min-height: 38px;
}

    .page-lote .lote-ficha__doc-btn.btn:hover {
        filter: brightness(1.06);
    }

.page-lote .lote-ficha__section + .lote-ficha__section {
    margin-top: 1.15rem;
}

.page-lote .lote-ficha__damage-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 1rem;
}

@media (max-width: 767px) {
    .page-lote .lote-ficha__damage-grid {
        grid-template-columns: 1fr;
    }
}

.page-lote .lote-ficha__field {
    display: flex;
    align-items: center;
    min-height: 32px;
    padding: 0.42rem 0.85rem;
    border-radius: 6px;
    border: 1px solid rgba(98, 176, 202, 0.85);
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75);
    font-family: var(--font-main);
    font-size: 0.88rem;
    font-weight: 600;
    color: #1f5f72;
}

.page-lote .lote-ficha__field--wide {
    width: 100%;
}

.page-lote .lote-exhibicion {
    padding-top: 0.25rem;
    padding-bottom: 2.5rem;
    background: var(--page-bg);
}

    .page-lote .lote-exhibicion .container {
        padding-inline: 0;
    }

@media (max-width: 767px) {
    .page-lote .lote-exhibicion .container {
        padding-inline: 1.75rem;
    }
}

.page-lote .lote-exhibicion__card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
    padding: 1.25rem 1.6rem;
}

.page-lote .lote-exhibicion__heading {
    margin: 0 0 0.85rem;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 700;
    color: var(--black);
}

.page-lote .lote-exhibicion__body {
    font-family: var(--font-main);
    font-size: 0.92rem;
    color: #2f2f2f;
    line-height: 1.35;
}

.page-lote .lote-exhibicion__line {
    margin: 0;
}

    .page-lote .lote-exhibicion__line + .lote-exhibicion__line {
        margin-top: 0.2rem;
    }

.page-lote .lote-exhibicion__label {
    font-weight: 400;
}

.page-lote .lote-help {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    background-color: rgba(3, 49, 87, 1);
}

@media (min-width: 768px) {
    .page-lote .lote-help {
        background-color: rgba(238, 238, 238, 1);
    }
}

.page-lote .lote-help .container {
    padding-inline: 0;
}

@media (max-width: 767px) {
    /* Banner ayuda: ras de viewport (sin canal lateral). */
    .page-lote .lote-help .container {
        padding-inline: 0;
        max-width: none;
        width: 100%;
    }
}

.page-lote .lote-help__pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    max-width: 1000px;
    margin-inline: auto;
    padding: 25px 30px;
    border-radius: 999px;
    background-color: rgba(3, 49, 87, 1);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}

.page-lote .lote-help__text {
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
    min-width: 0;
}

.page-lote .lote-help__title {
    font-family: var(--font-main);
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.1;
    white-space: nowrap;
}

.page-lote .lote-help__subtitle {
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 1);
    line-height: 1.25;
}

.page-lote .lote-help__cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0.55rem 1.35rem;
    border-radius: 999px;
    background: var(--primary-orange);
    color: #ffffff;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

    .page-lote .lote-help__cta:hover {
        filter: brightness(1.04);
    }

@media (max-width: 767px) {
    .page-lote .lote-help__pill {
        max-width: none;
        width: 100%;
        margin-inline: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 1.5rem 1.25rem;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1.25rem;
    }

    .page-lote .lote-help__text {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }

    .page-lote .lote-help__title {
        white-space: normal;
        text-align: center;
    }

    .page-lote .lote-help__subtitle {
        text-align: center;
    }

    .page-lote .lote-help__cta {
        width: auto;
        max-width: none;
    }
}

.page-lote .lote-detail__countdown-units {
    display: flex;
    gap: 0.35rem;
}

.page-lote .lote-detail__countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 2.35rem;
    padding: 0.25rem 0.35rem 0.2rem;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    background: #fafafa;
}

.page-lote .lote-detail__countdown-value {
    font-family: var(--font-main);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--black);
    line-height: 1.1;
}

.page-lote .lote-detail__countdown-unit-label {
    font-size: 0.625rem;
    font-weight: 500;
    color: var(--auction-meta-gray);
    text-transform: capitalize;
}

.page-lote .lote-detail__product-title {
    margin: 0 0 0.5rem;
    font-family: "Montserrat", var(--font-main);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--black);
}

.page-lote .lote-detail__leader,
.page-lote .lote-detail__location {
    margin: 0.15rem 0 0;
    font-family: var(--font-main);
    font-size: 16px;
    color: var(--text);
    line-height: 1.4;
}

.page-lote .lote-detail__leader-name {
    font-weight: 600;
}

.page-lote .lote-detail__specs-title {
    margin: 1rem 0 0.5rem;
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 700;
    color: var(--black);
}

.page-lote .lote-detail__specs {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.page-lote .lote-detail__spec-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem 0.5rem;
    align-items: baseline;
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.35;
}

    .page-lote .lote-detail__spec-row .lote-detail__spec-label {
        margin: 0;
        font-weight: 700;
        color: var(--black);
    }

        .page-lote .lote-detail__spec-row .lote-detail__spec-label::after {
            content: ":";
        }

    .page-lote .lote-detail__spec-row .lote-detail__spec-value {
        margin: 0;
        font-weight: 400;
        color: var(--text);
    }

/* Tarjeta “Estado de la subasta” (lote.html): fondo frío, rejilla etiqueta/valor, pastillas + CTA */
.page-lote .lote-detail__card--auction {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    padding: 2rem;
    background: rgba(241, 245, 249, 1);
    border: none;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 28, 60, 0.06), 0 8px 28px rgba(15, 45, 80, 0.09);
}

    .page-lote .lote-detail__card--auction .lote-detail__auction-heading {
        margin: 0 0 1.05rem;
        font-family: var(--font-main);
        font-size: 1.125rem;
        font-weight: 700;
        line-height: 1.3;
        color: #1b3e5f;
    }

    .page-lote .lote-detail__card--auction .lote-detail__auction-list {
        margin: 0 0 1.35rem;
        padding: 0;
        list-style: none;
        font-family: var(--font-main);
        font-size: 16px;
        line-height: 1.28;
        color: #1a1a1a;
    }

        .page-lote .lote-detail__card--auction .lote-detail__auction-list li {
            display: grid;
            grid-template-columns: minmax(9.25rem, 11.5rem) minmax(0, 1fr);
            gap: 0.2rem 1.15rem;
            align-items: baseline;
            margin: 0 0 0.22rem;
        }

            .page-lote .lote-detail__card--auction .lote-detail__auction-list li:last-child {
                margin-bottom: 0;
            }

    .page-lote .lote-detail__card--auction .lote-detail__auction-label {
        font-weight: 400;
        color: #1a1a1a;
    }

    .page-lote .lote-detail__card--auction .lote-detail__auction-value {
        margin: 0;
        font-weight: 400;
        color: #1a1a1a;
        word-break: break-word;
    }

    .page-lote .lote-detail__card--auction .lote-detail__auction-bid {
        font-weight: 700;
        color: #ff5a00;
    }

    .page-lote .lote-detail__card--auction .lote-detail__auction-actions {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        gap: 0.55rem 0.65rem;
    }

    .page-lote .lote-detail__card--auction .lote-detail__multipliers {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        flex-shrink: 0;
        gap: 0.45rem;
        margin: 0;
    }

    .page-lote .lote-detail__card--auction .lote-detail__mult {
        box-sizing: border-box;
        min-width: 2.85rem;
        width: auto;
        height: auto;
        padding: 0.52rem 1.1rem;
        border: 1px solid #1b3e5f;
        border-radius: 999px;
        background: #f1f4f8;
        font-family: var(--font-main);
        font-size: 0.875rem;
        font-weight: 700;
        color: #0d2135;
        line-height: 1.2;
        cursor: pointer;
        transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    }

        .page-lote .lote-detail__card--auction .lote-detail__mult:hover,
        .page-lote .lote-detail__card--auction .lote-detail__mult:focus-visible {
            border-color: #1b3e5f;
            outline: none;
            box-shadow: 0 0 0 1px rgba(27, 62, 95, 0.2);
        }

    .page-lote .lote-detail__card--auction .lote-detail__mult--active {
        background: #ff5a00;
        border-color: #1b3e5f;
        color: #ffffff;
    }

    .page-lote .lote-detail__card--auction .lote-detail__cta.btn {
        flex: 0 0 auto;
        width: auto;
        max-width: none;
        height: 40px;
        min-height: 40px;
        padding: 5px 1.35rem;
        border-radius: 999px;
        font-weight: 700;
        font-size: 0.9375rem;
        text-align: center;
        white-space: nowrap;
    }

    .page-lote .lote-detail__card--auction .lote-detail__cta.btn--orange {
        background: #ff5a00;
        border-color: #ff5a00;
        color: #ffffff;
    }

        .page-lote .lote-detail__card--auction .lote-detail__cta.btn--orange:hover {
            filter: brightness(1.04);
            box-shadow: 0 4px 16px rgba(255, 90, 0, 0.38);
        }

    .page-lote .lote-detail__card--auction .lote-detail__legal {
        margin-top: auto;
        margin-bottom: 0;
        padding-top: 1.2rem;
        font-family: var(--font-main);
        font-size: 0.8125rem;
        font-weight: 400;
        color: #5c6670;
        line-height: 1.45;
        max-width: 28rem;
    }

@media (max-width: 520px) {
    .page-lote .lote-detail__card--auction {
        padding: 1.5rem;
    }

        .page-lote .lote-detail__card--auction .lote-detail__auction-actions {
            flex-direction: column;
            align-items: center;
        }

        .page-lote .lote-detail__card--auction .lote-detail__multipliers {
            justify-content: center;
            width: 100%;
        }

        .page-lote .lote-detail__card--auction .lote-detail__cta.btn {
            flex: none;
            width: auto;
        }

        .page-lote .lote-detail__card--auction .lote-detail__auction-list li {
            grid-template-columns: minmax(0, 1fr) auto;
            gap: 0.25rem 0.85rem;
        }

        .page-lote .lote-detail__card--auction .lote-detail__auction-value {
            justify-self: end;
            text-align: right;
        }
}

@media (max-width: 991px) {
    .page-lote .lote-detail__grid {
        grid-template-columns: 1fr;
    }

    .page-lote .lote-detail__panels {
        display: flex;
        flex-direction: column;
        height: auto;
        max-width: 520px;
        margin-inline: auto;
        width: 100%;
    }

    .page-lote .lote-detail__card--auction {
        height: auto;
    }

        .page-lote .lote-detail__card--auction .lote-detail__legal {
            margin-top: 1.2rem;
            padding-top: 0;
            text-align: center;
        }
}

@media (max-width: 767px) {
    /*
   * Detalle lote — galería móvil: sin recorte del flex (min-height:0) ni del slide (overflow).
   * Marco con aspect-ratio para que contain use todo el ancho posible sin cortar la imagen.
   */
    .page-lote .lote-detail__gallery,
    .page-lote .lote-detail__stage,
    .page-lote .lote-detail__stage-inner,
    .page-lote .lote-detail__slider.slider--card-media {
        min-height: auto;
    }

        .page-lote .lote-detail__stage-inner.lot-card__media--slider {
            min-height: auto;
        }

    .page-lote .lote-detail__slider-main {
        flex: 0 0 auto;
        aspect-ratio: 4 / 3;
        min-height: min(78vw, 420px);
    }

    .page-lote .lote-detail__slider.slider--card-media .slider__slide--card-media {
        overflow: visible;
    }

    /* Fichas: ancho completo del contenedor (sin tope 520px del breakpoint ≤991px). */
    .page-lote .lote-detail__panels {
        max-width: none;
        width: 100%;
        margin-inline: 0;
    }

    /* Tarjeta info (móvil): 2 columnas como referencia (izq: lote/hora, der: tiempo restante). */
    .page-lote .lote-detail__card--info .lote-detail__card-head {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: start;
        gap: 0.75rem;
    }

    .page-lote .lote-detail__card--info .lote-detail__countdown {
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 0.6rem;
    }

    .page-lote .lote-detail__card--info .lote-detail__countdown-label {
        white-space: normal;
        text-align: left;
        max-width: 80px;
    }

    .page-lote #lote-countdown-label {
        width: 80px;
        text-align: left;
    }

    .page-lote .lote-detail__container {
        padding-inline: 1.25rem;
    }

    /*
   * Referencia móvil: fila 1 = anterior | siguiente (space-between);
   * fila 2 = título centrado en dos líneas.
   */
    .page-lote .lote-detail__lot-nav {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        grid-template-rows: auto auto;
        align-items: center;
        column-gap: 0.5rem;
        row-gap: 0.85rem;
        text-align: inherit;
    }

        .page-lote .lote-detail__lot-nav > .lote-detail__lot-nav-link:first-of-type {
            grid-column: 1;
            grid-row: 1;
            justify-self: start;
            text-align: left;
        }

    .page-lote .lote-detail__lot-nav-link--next {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        text-align: right;
    }

    .page-lote .lote-detail__title {
        grid-column: 1 / -1;
        grid-row: 2;
        margin: 0;
        text-align: center;
    }
}

/* -------------------------------------------------------------------------- */
/* Subastas activas — grilla vertical (ya NO es carrusel)                     */
/* El markup de #subastas-activas pasó de .slider--auctions a .auction-list   */
/* (ver wucSubastas.ascx / clsSubastas.vb): cada subasta es un <article       */
/* class="auction-card auction-card--row"> suelto dentro de <div              */
/* class="auction-list">. .auction-card ya está pensada como tarjeta vertical */
/* (head/media/content/cta), así que solo hace falta el contenedor en grilla: */
/* 4 columnas en desktop, bajando hasta 1 en móvil.                          */
/* -------------------------------------------------------------------------- */
#subastas-activas .auction-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

@media (max-width: 1199px) {
    #subastas-activas .auction-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    #subastas-activas .auction-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 599px) {
    #subastas-activas .auction-list {
        grid-template-columns: 1fr;
    }
}

/* NOTA: el HTML real (clsSubastas.vb) emite class="auction-card auction-card--row",
   pero .auction-card--row NO necesita estilos propios: el diseño de .auction-card
   base (barra de fecha arriba, imagen, contenido, CTA abajo) ya es exactamente
   el de la maqueta de referencia (subastas.html) y .auction-card ya es flex
   column con height:100%, así que el modificador queda como no-op a propósito. */
