/* ==========================================================================
   Chilebid Design System & Reset
   ========================================================================== */

:root {
    /* Color Palette */
    --primary-blue: #2670B6;
    --primary-blue-hover: #1e5a94;
    --active-orange: #fc4b08;
    --active-orange-hover: #e03f00;
    
    /* Grays & Neutrals */
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --text-slate: #1e293b;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    
    /* Layout & Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1280px;
    --border-radius-lg: 12px;
    --border-radius-md: 8px;
    --border-radius-sm: 4px;
}

/* --- MODAL GARANTIAS --- */
.custom-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); z-index: 99999;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.custom-modal-overlay.show-modal {
    opacity: 1 !important; visibility: visible !important; display: flex !important;
}
.custom-modal-content {
    background: #ffffff; width: 90%; max-width: 550px;
    border-radius: 6px; box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transform: translateY(-20px); transition: transform 0.3s ease;
}
.custom-modal-overlay.show-modal .custom-modal-content {
    transform: translateY(0);
}
.custom-modal-header {
    padding: 20px 24px; border-bottom: 1px solid #e2e8f0;
    display: flex; justify-content: space-between; align-items: center;
}
.custom-modal-title {
    font-size: 1.15rem; font-weight: 700; color: #333; margin: 0;
}
.custom-modal-close {
    background: none; border: none; font-size: 1.8rem; color: #94a3b8;
    cursor: pointer; line-height: 1; padding: 0; margin: 0;
}
.custom-modal-body {
    padding: 24px; font-size: 0.95rem; color: #475569; line-height: 1.6; text-align: left;
}
.custom-modal-body p {
    text-align: justify;
}
.custom-modal-body strong, .custom-modal-body a {
    color: #0284c7; text-decoration: none;
}
.custom-modal-footer {
    padding: 16px 24px; border-top: 1px solid #e2e8f0;
    text-align: right; background: #f8fafc; border-radius: 0 0 6px 6px;
}

/* --- LIGHTBOX NAVIGATION --- */
.lightbox-nav-btn {
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6); 
    color: white; 
    border: none;
    font-size: 2rem; 
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    display: flex; 
    justify-content: center; 
    align-items: center;
    cursor: pointer;
    z-index: 100000; 
    transition: background 0.3s ease, transform 0.2s ease;
}
.lightbox-nav-btn:hover { 
    background: rgba(0, 0, 0, 0.9); 
    transform: translateY(-50%) scale(1.1); 
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-slate);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.app-header {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-slate);
    padding: 10px 16px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item:hover {
    background-color: var(--bg-light);
    color: var(--primary-blue);
}

.nav-item.active {
    background-color: rgba(38, 112, 182, 0.08);
    color: var(--primary-blue);
    font-weight: 600;
}

.nav-item.contact-pill {
    background-color: var(--primary-blue);
    color: #ffffff;
}

.nav-item.contact-pill:hover {
    background-color: var(--primary-blue-hover);
    color: #ffffff;
}

.nav-item.action-pill-orange {
    background-color: var(--active-orange) !important;
    color: #ffffff !important;
}

.nav-item.action-pill-orange:hover {
    background-color: var(--active-orange-hover) !important;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-slate);
    cursor: pointer;
    padding: 8px;
}

@media (max-width: 900px) {
    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--bg-card);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 16px 24px;
        gap: 12px;
        box-shadow: var(--shadow-md);
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-item {
        width: 100%;
        justify-content: flex-start;
    }
}

/* ==========================================================================
   Main Application Container
   ========================================================================== */

#app {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.container {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}

/* ==========================================================================
   Global / Reusable UI Elements
   ========================================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 9999px;
    letter-spacing: 0.05em;
}

.badge-blue {
    background-color: rgba(38, 112, 182, 0.1);
    color: var(--primary-blue);
}

.badge-orange {
    background-color: rgba(252, 75, 8, 0.1);
    color: var(--active-orange);
}

.badge-green {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.badge-slate {
    background-color: rgba(100, 116, 139, 0.1);
    color: var(--text-muted);
}

.badge-red {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.badge-yellow {
    background-color: rgba(234, 179, 8, 0.1);
    color: #eab308;
}

.badge-dark {
    background-color: rgba(15, 23, 42, 0.1);
    color: #0f172a;
}


/* ==========================================================================
   Route 1: Catalog View Elements
   ========================================================================== */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    padding: 64px 24px;
    position: relative;
    overflow: hidden;
}

/* Dynamic Parallax Hero Banner */
.parallax-hero {
    color: rgb(255, 255, 255);
    position: relative;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 32px 24px; /* Updated from 64px 24px */
    overflow: hidden;
    background-position: center center;
    transition: background-image 1s ease-in-out;
}

@media (max-width: 1024px) {
    .parallax-hero {
        background-attachment: scroll !important; /* Fallback for touch devices to avoid scroll issues */
    }
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
}

.hero-tag {
    color: var(--active-orange);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 12px;
    display: block;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-description {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 24px;
    max-width: 580px;
    text-align: justify;
}

@media (max-width: 900px) {
    .hero-description {
        margin: 0 auto 24px auto;
    }
    .hero-right {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Platform Stats */
.hero-right {
    max-width: 480px;
    width: 100%;
    margin-left: auto;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stat-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.6rem 0.8rem;
    border-radius: var(--border-radius-md);
    backdrop-filter: blur(10px);
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--active-orange);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.7rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* Catalog Catalog & Sidebar layout */
.catalog-section {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 40px 24px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
}

/* Sidebar Filters */
.filter-sidebar {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filter-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-slate);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-left: 16px;
}

.filter-select {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    background-color: var(--bg-light);
    color: var(--text-slate);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(38, 112, 182, 0.15);
}

.clear-filters-btn {
    width: 100%;
    height: 42px;
    margin-top: 12px;
    background-color: transparent;
    color: var(--text-muted);
    border: 1px dashed var(--border-color);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.clear-filters-btn:hover {
    background-color: var(--bg-light);
    color: var(--text-slate);
    border-color: var(--text-muted);
}

@media (max-width: 990px) {
    .catalog-section {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }
    
    .filter-sidebar {
        position: relative;
        width: 100%;
        height: auto;
        min-height: min-content;
        margin-bottom: 2rem;
    }
}

/* Catalog Grid & Header */
.catalog-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.catalog-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.results-count {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.no-results {
    background-color: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 60px 24px;
    text-align: center;
    grid-column: 1 / -1;
}

.no-results-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.no-results-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Vehicle Grid Card */
.vehicle-card {
    position: relative;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.featured-star {
    position: absolute;
    top: 12px;
    right: 12px;
    color: #fbbf24;
    font-size: 1.25rem;
    z-index: 10;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.vehicle-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: #cbd5e1;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.vehicle-card:hover .card-img {
    transform: scale(1.05);
}

.card-lot-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: var(--border-radius-sm);
    backdrop-filter: blur(4px);
    z-index: 5;
}

.lote-badge-destacado {
    background-color: #facc15 !important;
    color: #000000 !important;
    font-weight: bold;
    border: none;
}

.card-status-badges {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 5;
}

.card-status-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: var(--border-radius-sm);
    color: #ffffff;
    background-color: rgba(38, 112, 182, 0.9);
    backdrop-filter: blur(4px);
}

.card-status-badge.badge-blue {
    background-color: rgba(38, 112, 182, 0.9);
}

.card-status-badge.badge-red, .card-status-badge.robado {
    background-color: rgba(239, 68, 68, 0.9);
}

.card-status-badge.badge-orange {
    background-color: rgba(252, 75, 8, 0.9);
}

.card-status-badge.badge-yellow {
    background-color: rgba(234, 179, 8, 0.9);
    color: #000000;
}

.card-status-badge.badge-green, .card-status-badge.motor {
    background-color: rgba(16, 185, 129, 0.9);
}

.card-status-badge.badge-dark {
    background-color: rgba(15, 23, 42, 0.9);
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-header-info {
    margin-bottom: 12px;
}

.card-year-type {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 4px;
}

.card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-slate);
    line-height: 1.3;
}

.card-specs-mini {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    color: #64748b;
    margin: 6px 0 8px 0 !important; /* Fixed vertical flow padding between rows */
}

.card-spec-item-mini {
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-pricing-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
}

.card-price-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 2px;
}

.card-price-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1.1;
}

.card-view-btn {
    background-color: var(--bg-light);
    color: var(--text-slate);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: var(--border-radius-md);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    transition: var(--transition-fast);
}

.vehicle-card:hover .card-view-btn {
    background-color: var(--active-orange);
    color: #ffffff;
    border-color: var(--active-orange);
}

/* ==========================================================================
   Route 2: Detail View Elements
   ========================================================================== */

.detail-view-container {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 32px 24px 64px 24px;
}

/* Back Button */
.back-button-container {
    margin-bottom: 24px;
}

.back-btn {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-blue);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid rgba(38, 112, 182, 0.2);
    background-color: var(--bg-card);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

.back-btn:hover {
    background-color: rgba(38, 112, 182, 0.05);
    transform: translateX(-3px);
}

.btn-back-compact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-blue);
    background-color: transparent;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 4px 8px 4px 0;
    border-right: 2px solid #cbd5e1; /* Visual separator from the pills */
    margin-right: 4px;
    transition: color 0.2s;
}

.btn-back-compact:hover {
    color: var(--active-orange);
}

/* Event Banner - Top/Prominent */
.detail-event-banner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    background: transparent !important; /* Remove blue background */
    box-shadow: none !important;
    border-radius: 0 !important;
    border-bottom: 2px solid #e2e8f0; /* New separator line */
    padding: 0 0 1.5rem 0 !important; /* Adjust padding to sit on the line */
    margin-bottom: 2rem;
    color: var(--text-dark) !important;
}

.detail-event-banner .banner-title {
    color: var(--primary-blue) !important;
}
.detail-event-banner .banner-price-label {
    color: var(--text-slate) !important;
}
.detail-event-banner .banner-price-val {
    color: var(--text-dark) !important; 
}

@media (max-width: 900px) {
    .detail-event-banner {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.banner-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.banner-pill-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

@media (max-width: 900px) {
    .banner-pill-container {
        justify-content: center;
    }
}

.banner-pill {
    background-color: var(--active-orange);
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.8rem;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 9999px;
    letter-spacing: 0.05em;
}

.banner-pill.secondary {
    background-color: rgba(255, 255, 255, 0.2);
}

.banner-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.25;
}

.banner-info-items {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 8px;
    font-size: 0.9rem;
    color: #e0f2fe;
}

@media (max-width: 900px) {
    .banner-info-items {
        justify-content: center;
    }
}

.banner-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.banner-info-item i {
    color: var(--active-orange);
    font-size: 1rem;
}

.banner-right-pricing {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 16px 24px;
    border-radius: var(--border-radius-md);
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 320px;
}

@media (max-width: 900px) {
    .banner-right-pricing {
        text-align: center;
        align-items: center;
        min-width: 0;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
}

.banner-price-row {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
}

.banner-price-label {
    font-size: 0.8rem;
    color: #93c5fd;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.banner-price-val {
    font-family: 'Outfit', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff;
}

.banner-price-val.orange {
    color: #ff9d75;
}

/* Detail Main Layout Grid */
/* Large Displays: 3 Columns */
.detail-main-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
    width: 100%;
    margin-bottom: 40px;
}
@media (min-width: 1201px) {
    .detail-main-layout {
        display: grid;
        grid-template-columns: 4fr 3fr 3fr; /* 40% 30% 30% */
        gap: 24px;
        align-items: start;
        width: 100%;
    }
}

/* Make sure inner columns stack their children cleanly */
.detail-col-media, .detail-col-specs, .detail-col-docs {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Normal Laptops/Tablets: 2 Columns */
@media (max-width: 1200px) {
    .detail-main-layout {
        grid-template-columns: 1fr 1fr;
    }
    /* The 3rd column wraps below, spanning full width, and splits its children into a 2-col sub-grid */
    .detail-col-docs {
        grid-column: 1 / -1; 
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

/* Mobile Screens: 1 Column */
@media (max-width: 990px) {
    .detail-main-layout {
        grid-template-columns: 1fr;
    }
    .detail-col-docs {
        grid-column: span 1;
        grid-template-columns: 1fr; /* Stack the docs column children vertically */
    }
}

.main-preview-container {
    position: relative;
    border: none !important;
    border-radius: var(--border-radius-lg);
    background: transparent !important;
    aspect-ratio: unset !important;
    height: auto !important;
    min-height: unset !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.main-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
}

.gallery-lot-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: rgba(15, 23, 42, 0.9);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 6px 14px;
    border-radius: var(--border-radius-sm);
    z-index: 5;
}

/* 4x5 CSS Grid Thumbnails */
.thumbnails-grid-container {
    margin-top: 16px;
}

.thumbnails-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-slate);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.thumbnails-grid-4x5, #gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 8px;
}

.thumbnail-wrapper {
    position: relative;
    aspect-ratio: 4 / 3;
    background-color: #cbd5e1;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-fast);
}

.thumbnail-wrapper:hover {
    transform: translateY(-2px);
}

.thumbnail-img-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-wrapper.active {
    border-color: var(--active-orange);
    box-shadow: 0 0 0 2px rgba(252, 75, 8, 0.25);
}

.thumbnail-number {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background-color: rgba(15, 23, 42, 0.7);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 2px;
}

/* Responsive Video Inspection Placeholder */
.video-placeholder-container {
    width: 100%;
}

.video-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-slate);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-player-mock {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #0b0f19;
    border-radius: var(--border-radius-lg);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid #1e293b;
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.55);
    color: #ffffff;
    gap: 12px;
    cursor: pointer;
    transition: background var(--transition-fast);
    z-index: 5;
}

.video-overlay:hover {
    background: rgba(15, 23, 42, 0.7);
}

.video-play-icon {
    font-size: 3.25rem;
    color: #ffffff;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: transform var(--transition-fast), color var(--transition-fast);
}

.video-overlay:hover .video-play-icon {
    transform: scale(1.1);
    color: var(--active-orange);
}

.video-overlay-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.video-controls-mock {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 44px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 14px;
    color: #94a3b8;
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 10;
}

.video-progress-bar {
    flex: 1;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    position: relative;
}

.video-progress-fill {
    width: 25%;
    height: 100%;
    background-color: var(--active-orange);
    border-radius: 2px;
}



.vehicle-detail-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.vehicle-detail-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.detail-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-slate);
    line-height: 1.2;
}

.detail-status-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

/* Technical & Legal Specifications Grid */
.detail-section-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.detail-section-header {
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-slate);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-section-body {
    padding: 20px;
}

/* Custom Specifications Layout Grid */
.specs-table-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 24px;
}

@media (max-width: 480px) {
    .specs-table-grid {
        grid-template-columns: 1fr;
    }
}

.spec-grid-item {
    display: flex;
    flex-direction: column;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.spec-grid-item.full-width {
    grid-column: 1 / -1;
}

.spec-grid-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 2px;
}

.spec-grid-val {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-slate);
}

.spec-grid-val i {
    margin-right: 4px;
}

.spec-grid-val.text-green {
    color: #10b981;
}

.spec-grid-val.text-red {
    color: #ef4444;
}

.spec-sub-group-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
    margin-top: 8px;
    padding: 10px 0 0 0;
    border-top: 1px dashed var(--border-color);
}

.spec-sub-grid-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.spec-sub-grid-val {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Exhibition Card Custom Theme */
.notice-theme-card {
    background-color: #f1f5f9 !important; /* Retain the distinct light blue/gray background */
    border: 1px solid #e2e8f0 !important;
}

.notice-theme-card .detail-section-header {
    border-bottom: 1px solid #cbd5e1 !important; /* Slightly darker separator for the tinted background */
}

.notice-theme-card .notice-text {
    color: var(--text-slate);
    font-size: 0.9rem;
    line-height: 1.5;
}

.notice-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    text-align: justify;
}

/* Downloads Panel */
.downloads-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.download-btn {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-fast);
    cursor: pointer;
}

.download-btn:hover {
    border-color: #ef4444; /* PDF themed border */
    background-color: rgba(239, 68, 68, 0.02);
}

.download-btn.disabled {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
    background-color: #f8fafc;
    border-color: #e2e8f0;
}

.download-btn-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pdf-icon {
    color: #ef4444; /* Red PDF theme */
    font-size: 1.5rem;
}

.download-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.download-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-slate);
}

.download-size {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.download-action-icon {
    color: var(--text-muted);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.download-btn:hover .download-action-icon {
    color: #ef4444;
    transform: translateY(2px);
}

/* ==========================================================================
   Static Dynamic Subpages: "Cómo Participar", "Próximo Remate"
   ========================================================================== */

.subpage-container {
    width: 100%;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

.subpage-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-slate);
}

.subpage-lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.rich-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.content-block {
    margin-bottom: 0 !important;
    padding: 2rem;
    border-radius: 8px;
    background-color: var(--bg-card);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.block-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-slate);
    display: flex;
    align-items: center;
    gap: 8px;
}

.block-title i {
    color: var(--primary-blue);
}

.steps-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-item {
    display: flex;
    gap: 16px;
}

.step-num {
    background-color: rgba(38, 112, 182, 0.1);
    color: var(--primary-blue);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.step-details h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.step-details p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Global Footer Component
   ========================================================================== */

.app-footer {
    background-color: #0f172a;
    color: #ffffff;
    border-top: 3px solid var(--primary-blue);
    padding-top: 48px;
    margin-top: auto;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px 40px 24px;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center; /* Centers the columns on mobile */
        gap: 40px;
    }
    .footer-column {
        align-items: center;
        text-align: center;
    }
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-list {
        align-items: center;
    }
    .footer-list li {
        justify-content: center;
    }
}

.footer-column {
    display: flex;
    flex-direction: column;
    /* Spacing is handled strictly below using gap on the list for homogenization */
}

.footer-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background-color: var(--active-orange);
}

/* CRITICAL CSS FIX: Perfectly homogenized vertical spacing across all footer lists */
.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px; /* EXACT flex gap across Website, Participate, and Help columns */
}

.footer-list li {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.4;
}

.footer-link {
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: #ffffff;
    transform: translateX(3px);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: #94a3b8;
}

.footer-icon {
    color: var(--primary-blue);
    font-size: 0.95rem;
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.footer-bottom {
    background-color: #020617;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px 0;
}

.footer-bottom-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8rem;
    color: #64748b;
}

@media (max-width: 768px) {
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
    }
}

.footer-legal span {
    font-style: italic;
}

/* ==========================================================================
   Help Center & "Cómo Participar" View Styles
   ========================================================================== */
.help-videos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .help-videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


.help-video-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.help-video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.help-video-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-slate);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.help-video-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    background-color: #000000;
}

.help-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Typography & Layout enhancements for Legal & Help Text */
.legal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-slate);
    text-transform: uppercase;
    border-left: 4px solid var(--active-orange);
    padding-left: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 3.5rem !important;
    margin-bottom: 1.5rem !important;
}

.legal-title i {
    color: var(--primary-blue);
    font-size: 1.2rem;
}

.merged-view-container .legal-title:first-child {
    margin-top: 0 !important;
}

.legal-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-top: -8px;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.legal-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-slate);
    margin-top: 24px;
    margin-bottom: 12px;
}

.legal-text {
    font-size: 0.925rem;
    line-height: 1.65;
    color: var(--text-slate);
    margin-bottom: 16px;
    text-align: justify;
}

.legal-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legal-list-item {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-slate);
    padding: 10px 16px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
}

.legal-list-item strong {
    color: var(--text-slate);
}

.compact-list {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}
.compact-list li {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    line-height: 1.5;
}
.compact-list li strong {
    color: var(--text-dark);
}
/* For nested lists like in Inspección Visual */
.compact-list ol, .compact-list ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Responsive Maps & Iframe Wrapper */
.iframe-map-wrapper {
    width: 100%;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-top: 16px;
}

.iframe-map-wrapper iframe {
    display: block;
    width: 100%;
    border: 0;
}

/* ==========================================================================
   Dashboard / Stats Styles for "Próximo Remate"
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stats-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stats-col-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-slate);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 6px;
}

.stats-col-title i {
    color: var(--primary-blue);
    font-size: 0.95rem;
}

.badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stat-badge-item {
    display: inline-flex;
    align-items: center;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.85rem;
    color: var(--text-slate);
    transition: var(--transition-fast);
}

.stat-badge-item:hover {
    border-color: var(--primary-blue);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.badge-name {
    font-weight: 500;
    margin-right: 6px;
}

.badge-count {
    background-color: rgba(38, 112, 182, 0.1);
    color: var(--primary-blue);
    font-weight: 700;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.empty-catalog-message {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-muted);
    background-color: var(--bg-light);
    border: 1px dashed var(--border-color);
    border-radius: var(--border-radius-md);
}

.empty-catalog-message i {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--text-muted);
}

/* ==========================================================================
   Calendar Grid View Styles
   ========================================================================== */
.calendars-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 16px;
}

@media (min-width: 768px) {
    .calendars-wrapper {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

.calendar-container {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.calendar-header {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-slate);
    text-align: center;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    text-align: center;
}

.calendar-day-name {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary-blue);
    padding: 4px 0;
    text-transform: uppercase;
}

.calendar-day-cell {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-slate);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    position: relative;
    transition: var(--transition-fast);
}

.calendar-day-cell:not(.empty):not(.active-event):hover {
    background-color: rgba(38, 112, 182, 0.05);
    border-color: var(--primary-blue);
    cursor: default;
}

.calendar-day-cell.empty {
    background-color: transparent;
    border-color: transparent;
}

.calendar-day-cell.active-event {
    background-color: var(--active-orange);
    border-color: var(--active-orange);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 8px rgba(252, 75, 8, 0.3);
    cursor: pointer;
    transform: scale(1.02);
}

.calendar-day-cell.active-event:hover {
    background-color: #e03d00;
    transform: scale(1.06);
}

.calendar-day-cell.feriado {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    color: #64748b;
    cursor: default;
    transform: none;
    box-shadow: none;
}

.calendar-day-cell.feriado:hover {
    background-color: #f1f5f9;
    transform: none;
}

.calendar-day-cell.today {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    font-weight: 800;
}

.calendar-day-cell.active-event.today {
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px var(--primary-blue);
}

.today-label {
    font-size: 0.6rem;
    display: block;
    line-height: 1;
    margin-top: 2px;
    font-weight: 900;
    color: #2670B6;
}

.calendar-gavel-icon {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 2px;
}

.event-title {
    font-size: 0.65rem;
    display: block;
    margin-top: 2px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--primary-blue);
    line-height: 1.2;
}

.calendar-day-cell.active-event .event-title {
    color: #ffffff;
}

.calendar-day-cell.feriado .event-title {
    color: #dc3545;
}

@media (max-width: 445px) {
    .calendar-day-cell .event-title {
        display: none !important;
    }
}

/* General Utility Classes */
.text-justify {
    text-align: justify;
}

/* Card Borders Highlight */
.card-border-condicionado {
    border-left: 5px solid #dc2626 !important; /* Red for Condicionado */
}

.card-border-desarme {
    border-left: 5px solid #eab308 !important; /* Yellow for Desarme */
}

/* Modal/Overlay Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6); /* Slate backdrop with opacity */
    backdrop-filter: blur(4px); /* Glassmorphism blur */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.25s ease;
}

.modal-content {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 550px;
    width: 90%;
    padding: 32px;
    box-sizing: border-box;
    position: relative;
    font-family: 'Outfit', 'Inter', sans-serif;
    animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
    line-height: 1;
}

.modal-close-btn:hover {
    color: var(--active-orange);
    transform: rotate(90deg);
}

.modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-slate);
    margin-top: 0;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-title::before {
    content: "\f53d"; /* FontAwesome money-bill-wave icon code */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--active-orange);
}

.modal-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-slate);
    margin-bottom: 16px;
    text-align: justify;
}

.modal-content ul {
    margin: 16px 0;
    padding-left: 0;
    list-style-type: none;
}

.modal-content li {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-slate);
    margin-bottom: 10px;
    position: relative;
    padding-left: 24px;
}

.modal-content li::before {
    content: "\f058"; /* FontAwesome circle-check icon code */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--primary-blue);
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 0.95rem;
}

.modal-content .modal-footer-note {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-muted);
    border-top: 1px dashed var(--border-color);
    padding-top: 16px;
    margin-top: 20px;
    margin-bottom: 0;
}

/* Participar Intercept Modal Styles */
.participar-modal-content {
    border-top: 6px solid #2670B6; /* Clean top border header */
    padding-top: 28px;
}

.participar-modal-title {
    color: #2670B6 !important;
    font-size: 1.65rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.participar-modal-title::before {
    display: none !important; /* Remove prefix icon for clean top border style */
}

.participar-modal-body p {
    color: #2670B6 !important;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
    text-align: justify;
}

.participar-modal-body p strong {
    color: #2670B6 !important;
    font-weight: 700;
}

.participar-modal-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

#btn-modal-participar-confirm {
    background-color: var(--primary-blue); /* #2670B6 */
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    border-radius: var(--border-radius-md);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-fast);
    letter-spacing: 0.05em;
}

#btn-modal-participar-confirm:hover {
    background-color: #1a5690;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(38, 112, 182, 0.25);
}

/* Catalog Grid Layout Toggle Controls */
.layout-toggle-container {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.layout-toggle-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.layout-toggle-group {
    display: flex;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 3px;
    width: fit-content;
}

.layout-toggle-btn {
    background: none;
    border: none;
    color: var(--text-slate);
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.layout-toggle-btn:hover {
    color: var(--primary-blue);
    background-color: rgba(38, 112, 182, 0.08);
}

.layout-toggle-btn.active {
    background-color: var(--primary-blue); /* #2670B6 */
    color: #ffffff !important;
}

/* Catalog grid modifier column overrides */
.catalog-grid.view-4-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
@media (max-width: 1200px) {
    .catalog-grid.view-4-cols { grid-template-columns: repeat(3, 1fr); }
}

.catalog-grid.view-3-cols {
    grid-template-columns: repeat(3, 1fr);
}

.catalog-grid.view-2-cols {
    grid-template-columns: repeat(2, 1fr);
}

.catalog-grid.view-1-col {
    grid-template-columns: 1fr;
}

/* Smooth transition for grid column scaling updates */
.catalog-grid {
    transition: grid-template-columns 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Force mobile single column layout and hide toggle */
@media (max-width: 768px) {
    .layout-toggle-container {
        display: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .catalog-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Detail view full width row spacing */
.detail-full-width-row {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

/* Countdown Timer Styles */
.countdown-card {
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 20px;
    margin-top: 16px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
    align-self: center;
}

@media (max-width: 900px) {
    .countdown-card {
        margin: 16px auto 0 auto;
    }
}

.countdown-status {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--active-orange);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 8px;
    text-align: center;
    text-shadow: 0 0 10px rgba(252, 75, 8, 0.25);
}

.countdown-timer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.countdown-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 45px;
}

.countdown-val {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.5), 0 0 4px var(--primary-blue);
}

.countdown-unit {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

.countdown-divider {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 12px;
    text-shadow: 0 0 4px var(--primary-blue);
}

/* CSS MOBILE RESPONSIVENESS FIX FOR SMALL SCREENS (<= 576px) */
@media (max-width: 576px) {
    /* 1. Parallax Hero Off-Center (Asymmetrical Padding) */
    .parallax-hero,
    .hero-container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        margin: 0 auto;
        box-sizing: border-box;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
    }

    /* 2. White Gap Above Filters */
    .catalog-section {
        padding-top: 0 !important;
        margin-top: 0 !important;
        gap: 0 !important;
        flex-direction: column !important; /* Strictly stacking from item 3 */
    }

    .catalog-content {
        margin-top: 0 !important;
    }

    /* 3. Header Overlapping Elements */
    .catalog-content-header {
        flex-wrap: wrap;
        height: auto;
        position: relative;
        margin: 1rem 0 !important;
        padding: 0.5rem;
        justify-content: space-between;
        align-items: center;
    }

    .filter-sidebar {
        margin-bottom: 1rem !important;
    }
}

/* ==========================================================================
   UI Polish and Mobile Accordion Styles
   ========================================================================== */

.notice-list {
    margin: 4px 0 0 0;
    padding-left: 20px;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Bootstrap utilities support */
.w-100 {
    width: 100% !important;
}
.mb-3 {
    margin-bottom: 1rem !important;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: var(--border-radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}
.btn-primary {
    background-color: var(--primary-blue);
    color: #ffffff;
}
.btn-primary:hover {
    background-color: #1a5690;
}

/* Sidebar Filter Accordion Rules */
#mobile-filter-toggle {
    display: none;
}
#filter-controls-wrapper {
    display: block;
}

@media (max-width: 768px) {
    .filter-sidebar {
        position: relative !important;
        height: auto !important;
        display: block !important;
        width: 100% !important;
        margin-bottom: 1.5rem !important;
    }
    #mobile-filter-toggle {
        display: block !important;
    }
    #filter-controls-wrapper {
        display: none;
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius-md);
        padding: 16px;
        margin-top: 12px;
        box-shadow: var(--shadow-md);
        width: 100%;
        position: relative;
        z-index: 10;
    }
    #filter-controls-wrapper.show {
        display: block !important;
    }
}

@media (max-width: 445px) {
    .filter-sidebar {
        display: none !important;
    }
    .catalog-content {
        width: 100% !important;
        margin-left: 0 !important;
    }
    .hide-xs {
        display: none !important;
    }
}

.exhibition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

#detail-card-observaciones p {
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ==========================================================================
   Forms & Layout Grid for Login/Registration page
   ========================================================================== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -12px;
    margin-left: -12px;
    gap: 24px 0;
}

.col-md-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
    padding-right: 12px;
    padding-left: 12px;
    box-sizing: border-box;
}

.col-md-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
    padding-right: 12px;
    padding-left: 12px;
    box-sizing: border-box;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 12px;
    padding-left: 12px;
    box-sizing: border-box;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding-right: 12px;
    padding-left: 12px;
    box-sizing: border-box;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding-right: 12px;
    padding-left: 12px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .col-md-5, .col-md-7, .col-md-6, .col-md-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -8px;
    margin-left: -8px;
}

.form-row .col, .form-row [class*="col-"] {
    padding-right: 8px;
    padding-left: 8px;
}

.form-group {
    margin-bottom: 1.25rem;
    box-sizing: border-box;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-slate);
    margin-bottom: 6px;
}

.form-control {
    display: block;
    width: 100%;
    height: 42px;
    padding: 8px 12px;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-slate);
    background-color: #ffffff;
    background-clip: padding-box;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(38, 112, 182, 0.15);
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
}

.form-check-input {
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin-top: 3px;
    flex-shrink: 0;
}

.form-check-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1.4;
}

.h-100 {
    height: 100% !important;
}

.btn-participar-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

/* Button styles for portal */
.btn-portal-primary {
    background-color: var(--primary-blue) !important;
    color: #ffffff !important;
    border: none;
    cursor: pointer;
}
.btn-portal-primary:hover {
    background-color: var(--primary-blue-hover) !important;
}

.btn-portal-warning {
    background-color: var(--active-orange) !important;
    color: #ffffff !important;
    border: none;
    cursor: pointer;
}
.btn-portal-warning:hover {
    background-color: var(--active-orange-hover) !important;
}

.btn-portal-secondary {
    background-color: transparent !important;
    color: var(--text-slate) !important;
    border: 1px solid var(--border-color) !important;
    cursor: pointer;
}
.btn-portal-secondary:hover {
    background-color: var(--bg-light) !important;
    color: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
}

.btn-portal-link {
    background: none !important;
    border: none !important;
    color: var(--primary-blue) !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
    cursor: pointer;
    padding: 0 !important;
    font-size: 0.9rem !important;
    text-align: center !important;
    width: fit-content;
    align-self: center;
    margin: 4px 0;
}
.btn-portal-link:hover {
    color: var(--primary-blue-hover) !important;
}

/* ==========================================================================
   Auction Cost Simulator Styles
   ========================================================================== */
/* Force the simulator row columns to stretch dynamically */
.subpage-container .row {
    display: flex;
    align-items: stretch;
}

.receipt-card {
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 2rem;
    font-family: inherit !important; /* Use standard app font */
    box-shadow: var(--shadow-sm);
    color: var(--text-dark);
    height: 100% !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.receipt-header {
    text-align: center;
    border-bottom: 2px dashed #cbd5e1;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.receipt-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--primary-blue);
    text-transform: uppercase;
}

.receipt-header p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0 !important;
    font-size: 0.9rem !important;
    color: var(--text-slate) !important; /* Matches "Liviano (Gastos...)" label */
    border-bottom: none !important; /* Removes inner lines */
    margin-bottom: 0 !important;
}
/* Ensure the values on the right stay slightly bolder but inherit the slate color */
.receipt-row span:last-child {
    font-weight: 600;
    color: var(--text-dark);
}

.receipt-standalone-header,
.receipt-row.receipt-bold-label span:first-child {
    color: var(--text-dark) !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
}
.receipt-standalone-header {
    padding: 6px 0;
    margin-top: 8px;
}

/* Styling for individual step letters (A, B, C, D) */
.step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background-color: #f1f5f9; /* Subtle slate background */
    color: #64748b; /* Slate text */
    font-size: 0.7rem;
    font-weight: 700;
    margin-right: 8px;
    border: 1px solid #e2e8f0;
}

/* Styling for the formula badge in the Total row */
.step-badge-formula {
    display: inline-flex;
    align-items: center;
    background-color: rgba(30, 64, 175, 0.1); /* Very transparent primary blue */
    color: var(--primary-blue);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    vertical-align: middle;
}

.receipt-row.receipt-total {
    border-top: 2px dashed #cbd5e1 !important; /* Keeps the main top divider */
    padding-top: 16px !important;
    margin-top: 8px !important;
    align-items: center;
}
.receipt-row.receipt-total span:first-child {
    color: var(--primary-blue) !important;
    font-weight: 700 !important;
    font-size: 1.25rem !important; /* Matches CHILEBID-ROESA header size */
}
.receipt-row.receipt-total span:last-child {
    color: var(--primary-blue) !important;
    font-weight: 700 !important;
    font-size: 1.25rem !important;
}

.receipt-footer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: auto;
    padding-top: 1.5rem;
    line-height: 1.4;
}

/* Amazon-style hover zoom styles */
/* Amazon-style hover zoom styles */
.zoom-wrapper {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md); /* Apply the container shadow directly to the wrapper */
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
}

.main-preview-img, #main-detail-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--border-radius-lg);
}

.zoom-result {
    position: absolute;
    top: 0;
    left: calc(100% + 20px); /* Keep the clean 20px spacing gap */
    height: 100%;
    border: 1px solid var(--border-color);
    background-color: #ffffff;
    background-repeat: no-repeat;
    z-index: 1050;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    display: none;
    pointer-events: none;
    box-sizing: border-box; /* Ensures padding/borders don't expand the width */
}

@media (max-width: 990px) {
    .zoom-result {
        display: none !important;
    }
}

.banner-right-pricing .btn-tabla-garantia {
    margin-left: 15px !important;
}

.container, .subpage-container, .hero-container, .detail-view-container, .merged-view-container, .catalog-content {
    max-width: 1440px !important;
    margin-left: auto;
    margin-right: auto;
}

.header-container,
.footer-container,
.catalog-section {
    max-width: 1440px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100%;
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.gallery-nav-btn:hover { background: rgba(0, 0, 0, 0.8); }
.gallery-nav-btn.prev { left: 10px; }
.gallery-nav-btn.next { right: 10px; }

.gallery-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.similar-lots-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 16px;
    width: 100%;
}
@media (max-width: 1200px) {
    .similar-lots-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
    }
}
@media (max-width: 1200px) and (min-width: 768px) {
    .similar-lots-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

.roesa-about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 992px) {
    .roesa-about-grid {
        grid-template-columns: 3fr 2fr;
        align-items: start !important;
    }
}

.legal-two-col-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}
@media (min-width: 992px) {
    .legal-two-col-grid {
        grid-template-columns: 1fr 1fr; /* Two equal columns */
        align-items: start !important;
    }
}

.proximo-evento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 992px) {
    .proximo-evento-grid {
        grid-template-columns: 2fr 3fr; /* 40% left, 60% right */
        align-items: start !important; /* Revert equal heights to fix rendering bugs */
    }
}

/* Custom CSS-based icons for layout toggles */
.ui-grid-icon {
    display: grid;
    width: 16px;
    height: 16px;
    gap: 2px;
}
.ui-grid-icon span {
    background-color: currentColor;
    border-radius: 2px;
    display: block;
}
.ui-grid-icon.grid-4 { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); }
.ui-grid-icon.grid-3 { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); }
.ui-grid-icon.grid-2 { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); }
.ui-grid-icon.grid-1 { grid-template-columns: 1fr; grid-template-rows: repeat(3, 1fr); gap: 3px; }

.two-column-list {
    column-count: 2;
    column-gap: 2rem;
}
@media (max-width: 768px) {
    .two-column-list {
        column-count: 1;
    }
}

/* Lightbox Modal Hover Effects */
#btn-close-lightbox:hover {
    transform: scale(1.15);
    color: var(--primary-orange, #fc4b08) !important;
}
    


/* --- MOBILE LAYOUT OVERRIDES --- */
@media (max-width: 991px) {
    /* 1. Force the catalog layout into a vertical stack */
    .catalog-section {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
    }
    
    /* 2. Ensure the sidebar takes full width and pushes content down */
    .catalog-section .filter-sidebar {
        display: block !important;
        visibility: visible !important;
        position: relative !important;
        width: 100% !important;
        min-height: auto !important;
        top: auto !important;
        left: auto !important;
        z-index: 10 !important;
        background: white;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
    
    /* 3. Hide the layout toggle icons on mobile as they don't apply */
    .layout-toggle-container {
        display: none !important;
    }
    
    /* 4. Fix overlapping on very small screens */
    .catalog-content-header {
        margin-top: 1rem !important;
    }
}

/* Enlarge "REMATE ONLINE" hero tag */
.hero-tag {
    font-size: 2rem !important; /* Updated from 1.15rem */
    letter-spacing: 1.5px;
    padding: 6px 12px;
}

/* Hide specific hero texts on < 900px screens */
@media (max-width: 900px) {
    .hero-title, 
    .hero-description {
        display: none !important;
    }
}

/* --- SPACING OVERRIDES FOR MOBILE GHOST MARGINS --- */
@media (max-width: 991px) {
    /* Tighten Hero Gap (Below Remate Online) */
    .hero-container {
        gap: 1rem !important; 
    }
    .hero-left {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    .hero-right {
        margin-top: 0 !important;
    }

    /* Tighten Catalog Gap (Above Vehículos en Catálogo) */
    .catalog-section {
        gap: 1.5rem !important; /* Reduced from 2rem */
    }
    .filter-sidebar {
        margin-bottom: 0 !important;
    }
    .catalog-content-header {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

/* --- UNIFIED SEMANTIC COLORS --- */
.text-green { color: #16a34a !important; }
.text-red { color: #ef4444 !important; }

/* --- MOBILE LAYOUT OVERRIDES (SIDE-BY-SIDE SPECS) --- */
@media (max-width: 768px) {
    .specs-table-grid {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
    
    .spec-grid-item {
        padding: 12px 0 !important;
        border-bottom: 1px solid #e2e8f0;
    }
    
    /* Force side-by-side layout except for full-width complex items */
    .spec-grid-item:not(.full-width) {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 16px;
    }
    
    .spec-grid-item:not(.full-width) .spec-grid-label {
        margin-bottom: 0 !important;
        text-align: left !important;
        flex: 1 1 40%;
    }
    
    .spec-grid-item:not(.full-width) .spec-grid-val {
        text-align: right !important;
        flex: 1 1 60%;
        word-break: break-word;
    }
}

/* --- UTILITY CLASSES --- */
@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }
}

/* --- ESTILOS PARA LOTES SUSPENDIDOS --- */
.suspended-img {
    filter: grayscale(100%) brightness(0.8) !important;
}

.suspended-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(239, 68, 68, 0.95);
    color: white;
    font-weight: 800;
    font-size: 1.15rem;
    padding: 8px 16px;
    border-radius: 6px;
    text-align: center;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    border: 2px solid white;
    letter-spacing: 1px;
    width: max-content;
    max-width: 90%;
    pointer-events: none;
}
