/* ============================================
   AUTOLOTE CRM - FRONTEND STYLES
   Version: 1.0
   ============================================ */

/* ============================================
   1. VARIABLES Y RESET
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colores principales */
    --primary-color: #0b519d;
    --primary-hover: #0f2a4d;
    --primary-light: #1e4a8a;
    --secondary-color: #e92f00;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --dark-color: #1e293b;
    --light-gray: #f8fafc;
    --text-color: #334155;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --white: #ffffff;
    
    /* Espaciado */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 40px;
    --spacing-3xl: 60px;
    
    /* Bordes */
    --border-radius-sm: 8px;
    --border-radius-md: 10px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    
    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Lexend', sans-serif;
    color: var(--text-color);
    background: var(--white);
    padding-top: 80px;
    line-height: 1.6;
}

/* ============================================
   2. BOOTSTRAP OVERRIDES & CUSTOM CLASSES
   ============================================ */

/* Botones personalizados */
.btn {
    border-radius: var(--border-radius-md);
    font-weight: 600;
    padding: 10px 24px;
    transition: all var(--transition-normal);
    border: none;
}

.btn-primary {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    border-color: var(--primary-color) !important;
}

.btn-primary:hover {
    background: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(19, 50, 94, 0.3);
}

.btn-secondary {
    background: var(--secondary-color) !important;
    color: var(--white) !important;
    border-color: var(--secondary-color) !important;
}

.btn-secondary:hover {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-success {
    background: var(--success-color) !important;
    border-color: var(--success-color) !important;
}

.btn-success:hover {
    background: var(--success-color) !important;
    border-color: var(--success-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(19, 50, 94, 0.3);
}

.btn-danger {
    background: var(--danger-color) !important;
    border-color: var(--danger-color) !important;
}

.btn-warning {
    background: var(--warning-color) !important;
    border-color: var(--warning-color) !important;
}

.btn-info {
    background: var(--info-color) !important;
    border-color: var(--info-color) !important;
}

.btn-light {
    background: var(--light-gray) !important;
    color: var(--text-color) !important;
    border-color: var(--border-color) !important;
}

.btn-light:hover {
    background: var(--border-color) !important;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    background: transparent !important;
}

.btn-outline-primary:hover {
    background: var(--primary-color) !important;
    color: var(--white) !important;
}

/* WhatsApp Button */
.btn-whatsapp {
    background: #25D366 !important;
    color: var(--white) !important;
    border: none;
}

.btn-whatsapp:hover {
    background: #128C7E !important;
    color: var(--white) !important;
}

/* Textos */
.text-primary {
    color: var(--primary-color) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Enlaces */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-hover);
}

/* Badges */
.badge {
    border-radius: var(--border-radius-md);
    padding: 6px 12px;
    font-weight: 600;
    font-size: 12px;
}

/* Forms */
.form-control,
.form-select {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 10px 14px;
    font-size: 14px;
    transition: var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(19, 50, 94, 0.1);
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 6px;
}

/* Cards */
.card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    margin: 0 4px;
}

.pagination .page-link:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--text-muted);
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

/* ============================================
   3. LAYOUT - NAVBAR
   ============================================ */
.navbar-custom {
    background: var(--white);
    border-bottom: 2px solid var(--border-color);
    padding: 20px 0;
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all var(--transition-smooth);
}

.navbar-custom.scrolled {
    padding: 10px 0;

    border-bottom: 1px solid var(--border-color);
}

/* Brand */
.navbar-brand-custom {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-color);
    text-decoration: none;
    transition: all var(--transition-smooth);
}

.navbar-custom.scrolled .navbar-brand-custom {
    font-size: 20px;
    gap: var(--spacing-xs);
}

/* Logo */
.navbar-brand-icon {
    width: 172px;
    height: 50px;
    background: transparent;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-smooth);
    overflow: hidden;
}

.navbar-brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all var(--transition-smooth);
}

.navbar-custom.scrolled .navbar-brand-icon {
    width: 140px;
    height: 40px;
}

.navbar-custom.scrolled .navbar-brand-icon img {
    transform: scale(0.95);
}

/* Navigation */
.navbar-nav-custom {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    transition: all var(--transition-smooth);
}

.navbar-custom.scrolled .navbar-nav-custom {
    gap: var(--spacing-lg);
}

.nav-link-custom {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
    font-size: 15px;
    position: relative;
    padding: 8px 0;
}

.navbar-custom.scrolled .nav-link-custom {
    font-size: 14px;
    padding: 6px 0;
}

.nav-link-custom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-normal);
    border-radius: var(--border-radius-md);
}

.nav-link-custom:hover::after {
    width: 100%;
}

.nav-link-custom:hover {
    color: var(--primary-color);
}

/* Active state for navigation */
.nav-link-custom.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-link-custom.active::after {
    width: 100%;
    background: var(--primary-color);
}

/* Navbar Button */
.btn-main {
    padding: 10px 24px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: var(--border-radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-smooth);
    font-size: 15px;
    border: none;
    cursor: pointer;
}

.navbar-custom.scrolled .btn-main {
    padding: 8px 20px;
    font-size: 14px;
}

.btn-main:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(19, 50, 94, 0.3);
}

/* ============================================
   NAVBAR DROPDOWN - VERSIÓN SIN CONFLICTOS
   ============================================ */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .nav-link-custom {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.nav-dropdown .nav-link-custom i.fa-chevron-down {
    font-size: 10px;
    transition: transform var(--transition-fast);
}

.nav-dropdown:hover .nav-link-custom i.fa-chevron-down {
    transform: rotate(180deg);
}

/* PUENTE INVISIBLE */
.nav-dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
    z-index: 1000;
}

/* Dropdown Menu - NUEVO NOMBRE DE CLASE */
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 240px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Dropdown Item */
.nav-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-dropdown-menu .dropdown-item:hover {
    background: var(--light-gray);
    color: var(--primary-color);
    padding-left: 24px;
}

.nav-dropdown-menu .dropdown-item i {
    font-size: 12px;
    color: var(--primary-color);
    opacity: 0.7;
}

.nav-dropdown-menu .dropdown-item:hover i {
    opacity: 1;
}

/* Divider */
.nav-dropdown-menu .dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

/* Badge Count */
.nav-dropdown-menu .badge-count {
    margin-left: auto;
    background: var(--primary-color);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    min-width: 24px;
    text-align: center;
}

/* Dropdown Brands (más ancho) */
.nav-dropdown-menu-brands {
    min-width: 280px;
    max-height: 400px;
    overflow-y: auto;
}

/* Scrollbar personalizado */
.nav-dropdown-menu-brands::-webkit-scrollbar {
    width: 6px;
}

.nav-dropdown-menu-brands::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 10px;
}

.nav-dropdown-menu-brands::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.nav-dropdown-menu-brands::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* Arrow indicator */
.nav-dropdown-menu::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: var(--white);
    border-left: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
}

/* Navbar Scrolled */
.navbar-custom.scrolled .nav-dropdown-menu {
    top: calc(100% + 12px);
}

/* ============================================
   RESPONSIVE - NAVBAR
   ============================================ */
@media (max-width: 991px) {
    .navbar-nav-custom {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        font-size: 24px;
        color: var(--primary-color);
        cursor: pointer;
        padding: 8px;
        transition: all var(--transition-fast);
    }
    
    .mobile-menu-btn:hover {
        transform: scale(1.1);
    }
}

@media (min-width: 992px) {
    .mobile-menu-btn {
        display: none !important;
    }
}

/* ============================================
   4. HERO SECTION
   ============================================ */
 /* Hero Section */
    .hero-section {
        position: relative;
        min-height: 82vh;
        background-image: url(https://images.unsplash.com/photo-1617421713285-65b5cdbb45eb?auto=format&fit=crop&q=80&w=1740);
        background-size: cover;
        background-position: center;
        border-radius: 24px;
        margin: 20px;
        overflow: hidden;
        display: flex;
        align-items: center;
        transition: background-image 1.5s ease-in-out;
    }

    .hero-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(
        135deg, 
        rgba(19, 50, 94, 0.95) 10%,    /* 85% opacidad */
        rgba(30, 74, 138, 0.95) 100%  /* 80% opacidad */
    );
    z-index:2;        
    opacity: 0.6;
    }

    .hero-content {
        position: relative;
        z-index: 2;
        padding: 50px 0;
        width: 100%;
        margin-top:50px;
    }
    
    .hero-content .row:first-child {
        position: relative;
        top: 170px; 
    }

    .hero-title {
        font-size: 56px;
        font-weight: 800;
        color: white;
        margin-bottom: 30px;
        line-height: 1.2;
    }

    .text-gradient {
        background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.9) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .hero-search-form {
        background: white;
        border-radius: 10px;
        padding: 12px;
        box-shadow: 0 20px 60px rgba(0,0,0,0.2);
        margin-bottom: 20px;
    }

    .search-inputs {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
    }

    .search-input-group {
        flex: 1;
        min-width: 150px;
    }

    .search-input-group .form-control,
    .search-input-group .form-select {
        height: 50px;
        border: 2px solid #f1f5f9;
        border-radius: 12px;
        font-size: 15px;
    }
    
    /* Texto cambiante con cursor */
.typing-text {
    display: inline-block;
    min-width: 200px;
    text-align: left;
}

.typing-text::after {
    content: '|';
    display: inline-block;
    margin-left: 4px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}
    
    /* Featured Badge Left */
.featured-badge-left {
    background: white;
    backdrop-filter: blur(10px);
    padding: 20px 28px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    margin-top:150px;
}

.featured-badge-left:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.featured-badge-left i {
    color: #fbbf24;
    font-size: 20px;
}

.featured-badge-left span {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 15px;
}

.featured-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    padding-bottom: 2px;
    margin-left: 8px;
}

.featured-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.4s ease;
}

.featured-link:hover::after {
    width: 100%;
}

.featured-link:hover {
    color: var(--primary-hover);
}

/* Location Card Right */
.location-card {
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    float: right;
    margin-top:150px;
}

.location-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.location-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    
}

.location-icon i {
    color: white;
    font-size: 22px;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.location-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: inline-block;
    position: relative;
    padding-bottom: 2px;
    width: fit-content;
    transition: color 0.3s ease;
}

.location-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.4s ease;
}

.location-link:hover::after {
    width: 100%;
}

.location-link:hover {
    color: var(--primary-hover);
}

.location-address {
    color: var(--text-color);
    font-size: 13px;
    margin: 0;
    opacity: 0.8;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .location-card {
        float: none;
        margin-top: 16px;
    }
    
    .featured-badge-left {
        width: 100%;
        justify-content: center;
    }
    
    .location-card {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .featured-badge-left {
        padding: 16px 20px;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
    
    .location-card {
        padding: 16px 20px;
    }
    
    .location-icon {
        width: 42px;
        height: 42px;
    }
    
    .location-icon i {
        font-size: 18px;
    }
}
/* ============================================
   5. FILTERS SECTION
   ============================================ */
.filters-section {
    background: var(--white);
    padding: 22px 0;
    border-bottom: 1px solid var(--border-color);
    top: 80px;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.filters-group {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.filter-item {
    flex: 1;
    min-width: 200px;
}

.filter-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 6px;
    display: block;
}

/* ============================================
   BRANDS CAROUSEL SECTION
   ============================================ */
.brands-section {
    padding: 60px 0;
    background: #f8fafc;
    overflow: hidden;
    width: 100%;
}

.brands-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.brands-carousel-wrapper::before,
.brands-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.brands-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #f8fafc, transparent);
}

.brands-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #f8fafc, transparent);
}

.brands-carousel {
    display: flex;
    gap: 80px;
    animation: scroll 60s linear infinite;
    width: fit-content;
}

.brands-carousel:hover {
    animation-play-state: paused;
}

.brand-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-width: 150px;
}

.brand-item img {
    height: 50px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: all 0.4s ease;
}

.brand-item:hover img {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* Animación de scroll infinito */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .brands-carousel {
        gap: 60px;
        animation-duration: 20s;
    }
    
    .brand-item {
        min-width: 120px;
        padding: 15px;
    }
    
    .brand-item img {
        height: 40px;
        max-width: 100px;
    }
    
    .brands-carousel-wrapper::before,
    .brands-carousel-wrapper::after {
        width: 50px;
    }
}

@media (max-width: 576px) {
    .brands-carousel {
        gap: 50px;
        animation-duration: 15s;
    }
    
    .brand-item {
        min-width: 100px;
        padding: 10px;
    }
    
    .brand-item img {
        height: 35px;
        max-width: 80px;
    }
}

/* ============================================
   6. SECTIONS
   ============================================ */
.vehicles-section {
    padding: var(--spacing-3xl) 0;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}


.section-subtitle {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: var(--spacing-md);
}

.breadcrumb-section {
    padding: 20px 0;
    background: var(--light-gray);
}

/* Brand Header */
.brand-header {
    padding: 40px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

.brand-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: var(--spacing-xs);
}

.brand-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin: 0;
}

/* Results Header */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.results-count {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

.results-sort {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.results-sort .form-select {
    width: 200px;
}

/* ============================================
   7. VEHICLE CARDS
   ============================================ */
.vehicle-card {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.vehicle-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.vehicle-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.vehicle-card-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.vehicle-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.vehicle-card:hover .vehicle-card-image img {
    transform: scale(1.1);
}

.vehicle-card-badge {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: rgba(239, 68, 68, 0.95);
    color: var(--white);
    padding: 6px 14px;
    border-radius: var(--border-radius-md);
    font-size: 12px;
    font-weight: 600;
}

.vehicle-card-category {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    background: rgba(19, 50, 94, 0.95);
    color: var(--white);
    padding: 6px 14px;
    border-radius: var(--border-radius-md);
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.vehicle-card-body {
    padding: var(--spacing-lg);
    flex: 1;
}

.vehicle-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 4px;
}

.vehicle-card-year {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
}

.vehicle-card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    font-size: 13px;
    color: var(--text-muted);
}

.vehicle-card-spec {
    display: flex;
    align-items: center;
    gap: 4px;
}

.vehicle-card-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
}

.vehicle-card-footer {
    display: flex;
    gap: var(--spacing-xs);
    padding: 0 var(--spacing-lg) var(--spacing-lg);
}

.btn-view,
.btn-contact {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-view {
    background: var(--light-gray);
    color: var(--text-color);
}

.btn-view:hover {
    background: var(--border-color);
}

.btn-contact {
    background: #25D366;
    color: var(--white);
}

.btn-contact:hover {
    background: #128C7E;
}

/* ============================================
   FEATURED VEHICLE CARD (GRANDE)
   ============================================ */
.vehicle-card-featured {
    height: 100%;
}

.vehicle-card-image-featured {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.vehicle-card-image-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.vehicle-card-featured:hover .vehicle-card-image-featured img {
    transform: scale(1.1);
}

.vehicle-card-recent-badge {
    position: absolute;
    bottom: var(--spacing-md);
    left: var(--spacing-md);
    background: rgba(16, 185, 129, 0.95);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--border-radius-md);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .vehicle-card-image-featured {
        height: 300px;
    }
}

/* ============================================
   8. VEHICLE DETAIL PAGE
   ============================================ */
.vehicle-detail-section {
    padding: 40px 0;
}


.main-image {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--danger-color);
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--border-radius-md);
    font-size: 14px;
    font-weight: 600;
}

.category-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(19, 50, 94, 0.95);
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--border-radius-md);
    font-size: 14px;
    font-weight: 600;
    text-transform: capitalize;
}

/* Thumbnails */
.thumbnails {
    display: flex;
    gap: var(--spacing-sm);
    overflow-x: auto;
    padding: 4px 0;
}

.thumbnail {
    width: 100px;
    height: 80px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

.thumbnail.active {
    border-color: var(--primary-color);
}

.thumbnail:hover {
    border-color: var(--primary-color);
    opacity: 0.8;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Vehicle Info */
.vehicle-info-section {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
}

.vehicle-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.vehicle-price-box {
    background: var(--light-gray);
    padding: 20px;
    border-radius: var(--border-radius-lg);
    margin-bottom: var(--spacing-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-label {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 600;
}

.price-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-color);
}

/* Specs Grid */
.main-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: var(--spacing-xl);
}

.spec-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--light-gray);
    border-radius: var(--border-radius-lg);
}

.spec-item i {
    font-size: 24px;
    color: var(--primary-color);
}

.spec-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.spec-value {
    display: block;
    font-size: 16px;
    color: var(--dark-color);
    font-weight: 700;
}

.vehicle-description p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* Contact Sidebar */
.contact-sidebar {
    position: sticky;
    top: 100px;
}

.contact-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
}

.contact-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: var(--spacing-xs);
}

.contact-subtitle {
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
}

.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    background: var(--white);
    padding: 0 var(--spacing-sm);
    color: var(--text-muted);
    font-size: 13px;
    position: relative;
}

.btn-call {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: var(--spacing-sm);
    border-radius: var(--border-radius-md);
    font-weight: 600;
    transition: all var(--transition-normal);
}

.btn-call:hover {
    background: var(--primary-hover);
    color: var(--white);
}

/* Info Card */
.info-card {
    background: var(--light-gray);
    padding: 20px;
    border-radius: var(--border-radius-lg);
}

.info-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item i {
    color: var(--success-color);
    font-size: 18px;
}

.info-item span {
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
}

/* Related Vehicles */
.related-vehicles-section {
    padding: var(--spacing-3xl) 0;
    background: var(--light-gray);
}

/* ============================================
   9. FOOTER
   ============================================ */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
    margin-left:20px;
    margin-right:20px;
}

.footer-section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
     position: relative;
  display: inline-block;
}


.footer-section-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: white;
  border-radius: 2px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    margin-bottom: var(--spacing-sm);
    transition: all var(--transition-normal);
    position: relative;
    padding: 2px 0;
    width: fit-content;
    max-width: 100%;
}

.footer-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: width var(--transition-normal);
    border-radius: var(--border-radius-md);
}

.footer-link:hover {
    color: var(--white);
    transform: translateY(-4px);
}

.footer-link:hover::before {
    width: 100%;
}

.footer-social {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: 20px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all var(--transition-normal);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.footer-social a:hover {
    background: var(--white);
    color:var(--primary-color);
    transform: translateY(-4px);
}

/* ============================================
   FOOTER LOGO
============================================ */
.footer-logo {
    margin-top: 16px;
}

.footer-logo-img {
    max-width: 180px;
    height: auto;
    filter: brightness(0) invert(1); /* Convierte el logo a blanco si es oscuro */
    transition: all 0.3s ease;
}

/* Si el logo ya es blanco/claro, remover el filtro */
.footer-logo-img.no-filter {
    filter: none;
}

.footer-logo-img:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .footer-logo-img {
        max-width: 150px;
    }
}

/* ============================================
   FOOTER BOTTOM
   ============================================ */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: var(--spacing-lg);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-lg);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-bottom-logo {
    display: flex;
    align-items: center;
}

.footer-bottom-logo img {
    height: 25px;
    width: auto;
    opacity: 0.7;
    transition: all var(--transition-smooth);
    filter: brightness(0) invert(1);
}

.footer-bottom-logo img:hover {
    opacity: 1;
    transform: scale(1.05);
    cursor:pointer;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .footer-copyright {
        font-size: 13px;
    }
    
    .footer-bottom-logo img {
        height: 30px;
    }
}

/* ============================================
   10. UTILITY CLASSES
   ============================================ */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.empty-state h3 {
    color: var(--dark-color);
    margin-bottom: var(--spacing-sm);
}

.pagination-wrapper {
    margin-top: var(--spacing-3xl);
    display: flex;
    justify-content: center;
}

/* ============================================
   11. RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    body {
        padding-top: 70px;
    }

    .navbar-custom {
        padding: 15px 0;
    }

    .navbar-custom.scrolled {
        padding: 10px 0;
    }

    .navbar-brand-icon {
        width: 140px;
        height: 40px;
    }

    .navbar-custom.scrolled .navbar-brand-icon {
        width: 120px;
        height: 35px;
    }

    .navbar-nav-custom {
        display: none;
    }

    .filters-section {
        top: 70px;
    }

    .hero-title {
        font-size: 36px;
    }

    .brand-title {
        font-size: 32px;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .results-sort {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    .results-sort .form-select {
        width: 100%;
    }

    .vehicle-gallery,
    .contact-sidebar {
        position: static;
    }

    .main-image {
        height: 350px;
    }

    .vehicle-title {
        font-size: 26px;
    }

    .price-value {
        font-size: 28px;
    }

    .main-specs {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 60px;
    }

    .navbar-brand-icon {
        width: 120px;
        height: 35px;
    }

    .navbar-custom.scrolled .navbar-brand-icon {
        width: 100px;
        height: 30px;
    }

    .navbar-brand-custom {
        font-size: 20px;
    }

    .navbar-custom.scrolled .navbar-brand-custom {
        font-size: 18px;
    }

    .filters-section {
        top: 60px;
    }

    .hero-title {
        font-size: 28px;
    }

    .search-box {
        flex-direction: column;
    }

    .section-title {
        font-size: 24px;
    }

    .main-specs {
        grid-template-columns: 1fr;
    }
    
        .hero-content .row:first-child {
        position: relative;
        top: 50px; 
    }
}

/* ============================================
   12. ANIMACIONES Y EFECTOS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* ============================================
   12. Mobile Menu
   ============================================ */

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: var(--primary-hover);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Sidebar */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85%;
    height: 100%;
    background: white;
    z-index: 9999;
    transition: right 0.3s ease;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

/* Header */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--primary-color);
    color: white;
    flex-shrink: 0;
}

.mobile-menu-header .logo {
    font-size: 20px;
    font-weight: 700;
    filter: brightness(0) invert(1);
}

.mobile-menu-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Navigation */
.mobile-menu-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.mobile-menu-nav > li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-nav > li > a {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-menu-nav > li > a > i:first-child {
    margin-right: 12px;
    font-size: 18px;
    color: var(--primary-color);
    width: 24px;
    text-align: center;
}

.mobile-menu-nav > li > a > span {
    flex: 1;
}

.mobile-menu-nav > li > a:hover {
    background: var(--light-gray);
    color: var(--primary-color);
}

/* Submenu */
.mobile-has-submenu > .mobile-submenu-toggle {
    cursor: pointer;
}

.mobile-arrow {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.mobile-has-submenu.active .mobile-arrow {
    transform: rotate(180deg);
}

.mobile-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    background: var(--light-gray);
    transition: max-height 0.3s ease;
}

.mobile-has-submenu.active .mobile-submenu {
    max-height: 500px;
}

.mobile-submenu li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-submenu li:last-child {
    border-bottom: none;
}

.mobile-submenu a {
    display: flex;
    align-items: center;
    padding: 14px 20px 14px 56px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-submenu a i {
    margin-right: 10px;
    font-size: 12px;
    color: var(--primary-color);
}

.mobile-submenu a:hover {
    background: white;
    color: var(--primary-color);
    padding-left: 60px;
}

.mobile-badge {
    margin-left: auto;
    background: var(--primary-color);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    min-width: 24px;
    text-align: center;
}

/* Login Button */
.mobile-menu-login {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.mobile-menu-login .btn {
    width: 100%;
}

/* Mostrar botón en móviles */
@media (max-width: 991px) {
    .mobile-menu-btn {
        display: block;
    }
}

/* ============================================
   FLOATING BAR (Sticky on Scroll)
============================================ */
.floating-bar {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: white;
    z-index: 999;
    padding: 12px 0;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    border-bottom:2px solid #f3f3f3;
}

.floating-bar.show {
    transform: translateY(0);
}

.floating-bar-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.floating-bar-image {
    width: 70px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.floating-bar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-bar-info {
    flex: 1;
    min-width: 0;
}

.floating-bar-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.floating-bar-specs {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
}

.floating-bar-specs span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.floating-bar-specs i {
    font-size: 12px;
}

.floating-bar-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-color);
    white-space: nowrap;
}

.floating-bar-actions {
    display: flex;
    gap: 8px;
}

.btn-whatsapp-small,
.btn-call-small {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-whatsapp-small {
    background: #25D366;
    color: white;
}

.btn-whatsapp-small:hover {
    background: #20ba5a;
    color: white;
    transform: scale(1.1);
}

.btn-call-small {
    background: var(--primary-color);
    color: white;
}

.btn-call-small:hover {
    background: var(--primary-hover);
    color: white;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 991px) {
    .floating-bar-specs span:nth-child(3) {
        display: none; /* Ocultar transmisión en móvil */
    }
}

@media (max-width: 768px) {
    .floating-bar-title {
        font-size: 14px;
    }

    .floating-bar-price {
        font-size: 15px;
    }

    .floating-bar-specs {
        gap: 10px;
        font-size: 12px;
    }

    .floating-bar-image {
        width: 60px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .floating-bar-specs span:nth-child(2) {
        display: none; /* Ocultar kilometraje en móvil pequeño */
    }

    .floating-bar-content {
        gap: 12px;
    }
}

/* ============================================
   SKELETON LOADER
============================================ */
.skeleton-loader {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.skeleton-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    height: 100%;
}

.skeleton-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.skeleton-body {
    padding: 24px;
}

.skeleton-title {
    height: 20px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 8px;
    width: 80%;
}

.skeleton-year {
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 16px;
    width: 40%;
}

.skeleton-specs {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.skeleton-spec {
    height: 14px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    width: 60px;
}

.skeleton-price {
    height: 28px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    width: 50%;
}

.skeleton-footer {
    display: flex;
    gap: 12px;
    padding: 0 24px 24px;
}

.skeleton-button {
    flex: 1;
    height: 44px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 10px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Fade out para el grid real */
.fade-out {
    animation: fadeOut 0.3s ease;
    opacity: 0;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* ============================================
   FILTERS - LOADING STATE
============================================ */
.filters-section .btn-primary.loading {
    position: relative;
    pointer-events: none;
}

.filters-section .btn-primary.loading .fa-filter,
.filters-section .btn-primary.loading .fa-check {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============================================
   ABOUT PAGE - NOSOTROS
   ============================================ */

/* Hero Section */
.about-hero-section {
    position: relative;
    min-height: 90vh;
    background-image: url('https://images.unsplash.com/photo-1553440569-bcc63803a83d?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&q=80&w=1650');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Efecto parallax */
    padding: 100px 0 80px;
    overflow: hidden;
}

.about-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Overlay azul con opacidad para dejar ver la imagen */
     background: linear-gradient(
        135deg, 
        rgba(19, 50, 94, 0.85) 0%,    /* 85% opacidad */
        rgba(30, 74, 138, 0.80) 100%  /* 80% opacidad */
    );
    z-index:2;
}

.about-hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.about-hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.about-hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
}

.about-hero-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.6;
}

.about-hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
}

.about-hero-image {
    position: relative;
    z-index: 2;
}

.about-hero-image img {
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.about-hero-badge-float {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: white;
    padding: 20px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-hero-badge-float i {
    font-size: 32px;
    color: var(--success-color);
}

.about-hero-badge-float span {
    font-weight: 700;
    color: var(--dark-color);
}

/* Mission & Vision */
.mission-vision-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.mission-card,
.vision-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    height: 100%;
    transition: all var(--transition-normal);
}

.mission-card:hover,
.vision-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.mission-icon,
.vision-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.mission-icon i,
.vision-icon i {
    font-size: 32px;
    color: white;
}

.mission-title,
.vision-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark-color);
}

.mission-text,
.vision-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-muted);
}

/* Values Section */
.values-section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.section-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.value-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    text-align: center;
    transition: all var(--transition-normal);
    height: 100%;
}

.value-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    transition: all var(--transition-normal);
}

.value-card:hover .value-icon {
    background: var(--primary-color);
}

.value-icon i {
    font-size: 36px;
    color: var(--primary-color);
    transition: all var(--transition-normal);
}

.value-card:hover .value-icon i {
    color: white;
}

.value-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark-color);
}

.value-description {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Why Choose Section */
.why-choose-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.why-choose-image {
    position: relative;
}

.why-choose-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.why-choose-badge {
    position: absolute;
    top: 30px;
    left: 30px;
    background: white;
    padding: 16px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-md);
}

.why-choose-badge i {
    font-size: 24px;
    color: var(--success-color);
}

.why-choose-badge span {
    font-weight: 700;
    color: var(--dark-color);
}

.why-choose-content {
    padding-left: 40px;
}

.why-choose-list {
    margin-top: 40px;
}

.why-choose-item {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
}

.why-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.why-icon i {
    font-size: 24px;
    color: white;
}

.why-content h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.why-content p {
    font-size: 15px;
    color: var(--text-muted);
    margin: 0;
}

/* Team Section */
.team-section {
    padding: 80px 0;
}

.team-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.team-image {
    position: relative;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all var(--transition-smooth);
}

.team-card:hover .team-image img {
    transform: scale(1.1);
}

.team-social {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    opacity: 0;
    transition: all var(--transition-normal);
}

.team-card:hover .team-social {
    opacity: 1;
}

.team-social a {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.team-social a:hover {
    background: var(--primary-color);
    color: white;
}

.team-info {
    padding: 24px;
    text-align: center;
}

.team-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--dark-color);
}

.team-position {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* CTA Section */
.about-cta-section {
    padding: 80px 0;
}

.about-cta-card {
    background: var(--primary-color);
    padding: 60px;
    border-radius: 20px;
    color: white;
}

.about-cta-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
}

.about-cta-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin: 0;
}

/* Responsive */
@media (max-width: 991px) {
    .about-hero-title {
        font-size: 40px;
    }

    .about-hero-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 36px;
    }

    .why-choose-content {
        padding-left: 0;
        margin-top: 40px;
    }

    .about-cta-title {
        font-size: 28px;
    }

    .about-cta-card {
        padding: 40px;
    }
}

@media (max-width: 576px) {
    .about-hero-title {
        font-size: 32px;
    }

    .about-hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .mission-card,
    .vision-card {
        padding: 30px;
    }

    .value-card {
        padding: 30px 20px;
    }

    .about-cta-card {
        padding: 30px 20px;
        text-align: center;
    }

    .about-cta-title {
        font-size: 24px;
    }
}




   

    /* Trending Section */
    .trending-section {
        padding: 60px 0;
    }




    .trending-card {
        display: block;
        text-decoration: none;
        border-radius: 16px;
        overflow: hidden;
        transition: all 0.3s;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

    .trending-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    }

    .trending-card-image {
        position: relative;
        height: 220px;
        overflow: hidden;
    }

    .trending-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s;
    }

    .trending-card:hover .trending-card-image img {
        transform: scale(1.1);
    }

    .trending-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to bottom, rgba(0,0,0,0.3), transparent);
        padding: 16px;
    }

    .trending-badge {
        display: inline-flex;
        align-items: center;
        padding: 8px 16px;
        background: rgba(239, 68, 68, 0.9);
        color: white;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 600;
    }

    .trending-card-content {
        padding: 20px;
        background: white;
    }

    .trending-title {
        font-size: 18px;
        font-weight: 700;
        color: #0f172a;
        margin-bottom: 4px;
    }

    .trending-subtitle {
        font-size: 14px;
        color: #64748b;
        margin: 0;
    }

    /* Categories */
    .find-model-section {
        padding: 60px 0;
        background: #f8fafc;
    }

    .category-card {
        background: white;
        border-radius: 16px;
        padding: 32px;
        text-decoration: none;
        display: block;
        transition: all 0.3s;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        position: relative;
        overflow: hidden;
    }

    .category-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    }

    .category-icon {
        width: 60px;
        height: 60px;
        background: var(--primary-color);
        color: white;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 28px;
        margin-bottom: 20px;
    }

    .category-name {
        font-size: 24px;
        font-weight: 700;
        color: #0f172a;
        margin-bottom: 8px;
    }

    .category-description {
        font-size: 14px;
        color: #64748b;
        margin-bottom: 0;
    }

    .category-arrow {
        position: absolute;
        top: 32px;
        right: 32px;
        color: var(--primary-color);
        font-size: 20px;
    }

    /* Best Makes */
    .best-makes-section {
        padding: 60px 0;
    }

    .section-subtitle {
        color: #64748b;
        font-size: 16px;
        margin-top: 8px;
    }

    .make-card {
        display: flex;
        align-items: center;
        padding: 24px;
        background: white;
        border-radius: 16px;
        text-decoration: none;
        transition: all 0.3s;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }

    .make-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 10px rgba(0,0,0,0.02);
        border: solid 1px var(--dark-color);
    }

    .make-icon {
        width: 60px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 16px;
        background: #f8fafc;
        border-radius: 12px;
        color: var(--primary-color);
        font-size: 28px;
    }

    .make-content {
        flex: 1;
    }

    .make-name {
        font-size: 18px;
        font-weight: 700;
        color: #0f172a;
        margin-bottom: 4px;
    }

    .make-count {
        font-size: 14px;
        color: #64748b;
        margin: 0;
    }

    .make-arrow {
        color: var(--primary-color);
        font-size: 18px;
    }

    /* Reviews */
    .reviews-section {
        padding: 60px 0;
        background: #f8fafc;
    }

    .review-card {
        background: white;
        border-radius: 16px;
        overflow: hidden;
        transition: all 0.3s;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

    .review-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    }

    .review-image {
        height: 240px;
        overflow: hidden;
    }

    .review-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .review-content {
        padding: 24px;
    }

    .review-title {
        font-size: 20px;
        font-weight: 700;
        color: #0f172a;
        margin-bottom: 12px;
    }

    .review-text {
        font-size: 14px;
        color: #64748b;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .review-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .reviewer-info {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .reviewer-avatar {
        width: 40px;
        height: 40px;
        background: var(--primary-color);
        color: white;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .reviewer-name {
        font-size: 14px;
        font-weight: 600;
        color: #0f172a;
        margin: 0;
    }

    .reviewer-role {
        font-size: 12px;
        color: #64748b;
        margin: 0;
    }

    /* CTA Section */
    .cta-section {
        padding: 60px 0 80px;
        background: var(--dark-color);
        margin-bottom:50px;
    }

    .cta-card {
        background: var(--dark-color);
        border-radius: 24px;
        padding: 60px 40px;
    }

    .cta-title {
        font-size: 36px;
        font-weight: 700;
        color: white;
        margin-bottom: 12px;
    }

    .cta-text {
        font-size: 18px;
        color: rgba(255,255,255,0.9);
        margin: 0;
    }

    .btn-second {
        padding: 14px 32px;
        background: white;
        color: #333;
        border-radius: 12px;
        font-weight: 600;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        transition: all 0.3s;
    }

    .btn-second:hover {
        transform: translateY(-2px);
        background:#333;
        color: white;
    }

    /* Empty State */
    .empty-state {
        text-align: center;
        padding: 60px 20px;
        color: #94a3b8;
    }

    /* Responsive */
    @media (max-width: 992px) {
        .hero-title {
            font-size: 42px;
        }

        .search-inputs {
            flex-direction: column;
        }

        .search-input-group {
            min-width: 100%;
        }

        .section-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 20px;
        }
    }
    
    @media (max-width: 576px) {
        .section-header {
            flex-direction: column;
            align-items: flex-start;
        }
    }

    @media (max-width: 768px) {
        .hero-title {
            font-size: 32px;
        }

        .section-title {
            font-size: 24px;
        }

        .cta-title {
            font-size: 28px;
        }

        .cta-card {
            padding: 40px 24px;
            text-align: center;
        }
    }
/* ============================================
   CONTACT PAGE
   ============================================ */

/* Contact Section */
.contact-section {
    padding: 60px 0 80px;
}

.contact-header {
    margin-bottom: 60px;
}

/* Contact Form Card */
.contact-form-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    height: 100%;
}

.contact-form-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.contact-form-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.contact-form-card .form-floating > .form-control,
.contact-form-card .form-floating > .form-select {
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all var(--transition-fast);
}

.contact-form-card .form-floating > .form-control:focus,
.contact-form-card .form-floating > .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(19, 50, 94, 0.1);
}

.contact-form-card .form-floating > label {
    color: var(--text-muted);
}

/* Contact Info Wrapper */
.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-card {
    background: white;
    padding: 28px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 20px;
    transition: all var(--transition-normal);
    border: 2px solid var(--border-color);
}

.contact-info-card:hover {
    border-color: var(--primary-color);
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.contact-info-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-icon i {
    font-size: 24px;
    color: white;
}

.contact-info-content {
    flex: 1;
}

.contact-info-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.contact-info-text {
    font-size: 15px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.8;
}

.contact-info-text a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.contact-info-text a:hover {
    color: var(--primary-color);
}

.contact-info-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    margin-top: 8px;
    transition: all var(--transition-fast);
}

.contact-info-link:hover {
    color: var(--primary-hover);
    transform: translateX(4px);
}

/* Contact Social */
.contact-social {
    background: var(--light-gray);
    padding: 28px;
    border-radius: 16px;
}

.contact-social-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 16px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.social-link i {
    font-size: 20px;
}

/* Map Section */
.map-section {
    padding: 0;
    margin-top: 60px;
}

.map-container {
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin: 0 20px;
    max-width: calc(100% - 40px);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(0%);
}

/* Responsive */
@media (max-width: 991px) {
    .contact-form-card {
        padding: 30px;
        margin-bottom: 30px;
    }

    .contact-info-card:hover {
        transform: translateX(0);
        transform: translateY(-4px);
    }

    .map-container {
        height: 400px;
        margin: 0 15px;
        max-width: calc(100% - 30px);
    }
}

@media (max-width: 576px) {
    .contact-form-card {
        padding: 24px;
    }

    .contact-info-card {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }

    .contact-info-icon {
        margin: 0 auto;
    }

    .contact-social {
        padding: 20px;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .map-container {
        height: 350px;
        border-radius: 12px;
        margin: 0 10px;
        max-width: calc(100% - 20px);
    }
} 

 /* Botón back-to-top */
    .back-to-top {
      position: fixed;
      right: 1rem;
      bottom: 1.25rem;
      width: 44px;
      height: 44px;
      border-radius: 10px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      z-index: 1080; /* por encima de modales */
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
      transition: transform .2s ease, opacity .2s ease;
      opacity: 0;
      pointer-events: none;
      transform: translateY(10px) scale(.95);
    }

    .back-to-top.show {
      opacity: 1;
      pointer-events: auto;
      transform: translateY(0) scale(1);
    }

    /* Ajustes estéticos */
    .back-to-top .fa-arrow-up,
    .back-to-top .fa {
      font-size: 18px;
    }

    /* Variante pequeño en móviles */
    @media (max-width: 576px) {
      .back-to-top { right: .75rem; bottom: .9rem; width: 40px; height: 40px; }
    }
/* ============================================
   WHATSAPP FLOAT BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed;
    right: 1rem;
    bottom: 5rem; /* Separado del back-to-top */
    width: 44px;
    height: 44px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 25px;
    z-index: 1070;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    background: #128C7E;
    color: white;
    transform: scale(1.1);
}

.whatsapp-float i {
    animation: none;
}

/* Animación de pulso */
@keyframes whatsappPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.8);
    }
}

/* Tooltip */
.whatsapp-float::before {
    content: '¿Necesitas ayuda?';
    position: absolute;
    right: 70px;
    background: white;
    color: #333;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-family: 'Lexend', sans-serif;
}

.whatsapp-float:hover::before {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

/* Responsive */
@media (max-width: 576px) {
    .whatsapp-float {
        width: 56px;
        height: 56px;
        font-size: 28px;
        bottom: 4.5rem;
        right: 0.75rem;
    }
    
    .whatsapp-float::before {
        display: none; /* Ocultar tooltip en móvil */
    }
}

/* ============================================
   FINANCING/CALCULATOR PAGE
   ============================================ */

/* Hero Section */
.financing-hero-section {
    background: #e0e7ff;
    border-radius: 0 0 30px 30px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    background: white;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Calculator Card */
.calculator-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.calculator-header {
    background: var(--primary-color);
    padding: 24px;
    color: white;
}

.calculator-header h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.calculator-header p {
    margin: 0;
    opacity: 0.9;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.calculator-body {
    padding: 30px;
}

/* Form Styling */
.calculator-body .form-label {
    font-size: 15px;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.calculator-body .input-group-text {
    background: var(--light-gray);
    border: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--text-color);
}

.calculator-body .form-control,
.calculator-body .form-select {
    border: 2px solid var(--border-color);
    padding: 12px 16px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.calculator-body .form-control:focus,
.calculator-body .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(19, 50, 94, 0.1);
}

.calculator-body .form-range {
    height: 8px;
}

.calculator-body .form-range::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.calculator-body .form-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Result Card */
.result-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-header {
    background: var(--secondary-color);
    padding: 20px 30px;
    color: white;
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
}

.result-body {
    padding: 30px;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--light-gray);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.result-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.result-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.result-icon.bg-primary {
    background: #13325E;
}

.result-icon.bg-success {
    background: #059669;
}

.result-icon.bg-warning {
    background: #d97706;
}

.result-icon.bg-info {
    background: #2563eb;
}

.result-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.result-value {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

/* Comparator Card */
.comparator-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.comparator-header {
    background:var(--dark-color);
    padding: 24px;
    color: white;
}

.comparator-header h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.comparator-header p {
    margin: 0;
    opacity: 0.9;
}

.comparator-body {
    padding: 30px;
}

/* Company Card */
.company-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.company-card.featured {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(19, 50, 94, 0.02), rgba(30, 74, 138, 0.02));
}

.company-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.company-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
}



.company-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.company-logo {
    width: 60px;
    height: 60px;
    background: var(--light-gray);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.company-info h5 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--dark-color);
}

.company-info p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.company-rate {
    display: inline-flex;
    align-items: center;
    background: var(--light-gray);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 4px;
}

.company-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.detail-item {
    text-align: center;
    padding: 16px;
    background: var(--light-gray);
    border-radius: 12px;
}

.detail-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.detail-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.company-benefits {
    background: var(--light-gray);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.company-benefits h6 {
    font-size: 13px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.company-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.company-benefits li {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 8px;
    padding-left: 24px;
    position: relative;
}

.company-benefits li:last-child {
    margin-bottom: 0;
}

.company-benefits li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--success-color);
}

.company-actions {
    display: flex;
    gap: 12px;
}

.company-actions .btn {
    flex: 1;
}

.savings-badge {
    background: #059669;
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.savings-badge i {
    margin-right: 8px;
}

/* Benefits Section */
.benefits-section {
    background: var(--light-gray);
}

.benefit-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    height: 100%;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    margin: 0 auto 20px;
}

.benefit-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-color);
}

/* Modal Styling */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 24px 24px 16px;
}

.modal-body {
    padding: 24px;
}

/* Responsive */
@media (max-width: 991px) {
    .calculator-card,
    .result-card,
    .comparator-card {
        margin-bottom: 24px;
    }

    .company-details {
        grid-template-columns: 1fr;
    }

    .company-actions {
        flex-direction: column;
    }

    .result-value {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .calculator-header,
    .result-header,
    .comparator-header {
        padding: 20px;
    }

    .calculator-body,
    .result-body,
    .comparator-body {
        padding: 20px;
    }

    .result-item {
        padding: 16px;
        flex-direction: column;
        text-align: center;
    }

    .result-icon {
        margin: 0 auto;
    }

    .result-value {
        font-size: 22px;
    }

    .company-card {
        padding: 20px;
    }

    .company-header {
        flex-direction: column;
        text-align: center;
    }

    .featured-badge {
        position: static;
        display: inline-block;
        margin-bottom: 16px;
    }
}

/* Loading State */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   SUMMARY STICKY CARD
   ============================================ */
.summary-sticky-card {
    position: sticky;
    top: 100px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-top: 24px;
    overflow: hidden;
    animation: slideInUp 0.4s ease;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.summary-sticky-card.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.summary-sticky-header {
    background: var(--primary-color);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
}

.summary-sticky-body {
    padding: 20px;
}

/* Summary Items */
.summary-section {
    margin-bottom: 0;
}

.summary-item-mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
}

.summary-label {
    color: var(--text-muted);
    font-weight: 500;
}

.summary-value {
    color: var(--dark-color);
    font-weight: 700;
}

/* Divider */
.divider-sticky {
    height: 1px;
    background: var(--border-color);
    margin: 16px 0;
}

/* Best Option */
.best-option-sticky {
    text-align: center;
}

.best-option-badge {
    background: #d97706;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: inline-block;
}

.best-option-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 4px;
}

.best-option-rate {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.best-option-payment {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.best-option-payment small {
    font-size: 14px;
    font-weight: 500;
}

.best-option-savings {
    background: var(--light-gray);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--success-color);
    display: inline-flex;
    align-items: center;
}

/* Quick Actions */
.quick-actions-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.btn-action {
    background: var(--light-gray);
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-size: 18px;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-action:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(19, 50, 94, 0.3);
}

/* Support Section */
.support-section {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.support-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.support-content {
    flex: 1;
}

.support-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 2px;
}

.support-hours {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.support-phone {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.support-phone:hover {
    color: var(--primary-hover);
    transform: translateX(4px);
}

/* Financial Tip Section */
.tip-section {
    display: flex;
    gap: 12px;
    background: #fde68a;
    padding: 16px;
    border-radius: 12px;
    border-left: 4px solid #f59e0b;
}

.tip-icon {
    font-size: 28px;
    color: #f59e0b;
    flex-shrink: 0;
}

.tip-title {
    font-size: 13px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 6px;
}

.tip-text {
    font-size: 13px;
    color: #78350f;
    line-height: 1.6;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

/* Animation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 991px) {
    .summary-sticky-card {
        display: none !important;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .summary-sticky-card {
        top: 90px;
    }
    
    .best-option-payment {
        font-size: 24px;
    }
}

/* ============================================
   FINANCING CTA - CONFIRMAR CON CLIENTE
   ============================================ */
.financing-cta-section {
    padding: 80px 0;
    background: var(--primary-color);
    color:white;
}

.financing-cta-card {
    background: white;
    border-radius: 24px;
    padding: 60px;
    position: relative;
    overflow: hidden;
}


.financing-cta-badge {
    display: inline-flex;
    align-items: center;
    background: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.financing-cta-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.text-gradient-cta {
    background: var(--primary-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.financing-cta-description {
    font-size: 18px;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 30px;
}

.financing-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.financing-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 500;
    color: var(--dark-color);
}

.financing-feature i {
    color: var(--success-color);
    font-size: 20px;
}

.financing-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* Quick Calculator Card */
.financing-cta-illustration {
    position: relative;
}

.quick-calc-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 2px solid #e2e8f0;
}

.quick-calc-header {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.quick-calc-body {
    padding: 30px;
}

.quick-calc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.quick-calc-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.quick-calc-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-color);
}

.quick-calc-divider {
    height: 2px;
    background: linear-gradient(to right, transparent, #e2e8f0, transparent);
    margin: 20px 0;
}

.quick-calc-result {
    text-align: center;
    padding: 20px;
    background:  var(--danger-color);
    border-radius: 12px;
}

.quick-calc-result-label {
    display: block;
    font-size: 13px;
    color: white;
    font-weight: 600;
    margin-bottom: 8px;
}

.quick-calc-result-value {
    font-size: 36px;
    font-weight: 800;
    color: white;
    display: block;
}

.quick-calc-result-value small {
    font-size: 18px;
    font-weight: 500;
}

.quick-calc-button {
    display: block;
    width: 100%;
    padding: 16px;
    background: var(--light-gray);
    color: var(--primary-color);
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.quick-calc-button:hover {
    background: var(--primary-color);
    color: white;
}

/* Floating Icons */
.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    font-size: 24px;
    animation: float 3s ease-in-out infinite;
}

.floating-icon-1 {
    top: 10%;
    right: 10%;
    color: #f59e0b;
    animation-delay: 0s;
}

.floating-icon-2 {
    bottom: 20%;
    right: 5%;
    color: #10b981;
    animation-delay: 1s;
}

.floating-icon-3 {
    top: 50%;
    right: 20%;
    color: #3b82f6;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Responsive */
@media (max-width: 991px) {
    .financing-cta-card {
        padding: 40px 30px;
    }

    .financing-cta-title {
        font-size: 32px;
    }

    .floating-icon {
        display: none;
    }

    .financing-banner {
        padding: 40px 30px;
    }

    .financing-banner-title {
        font-size: 28px;
    }
}

/* Loader simple y profesional */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
/* ============================================
   ADMIN BAR - Frontend Admin Toolbar
   Archivo: public/assets/css/admin-bar.css
============================================ */

.admin-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 46px;
    background: #23282d;
    color: #fff;
    z-index: 99999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-family: 'Lexend', sans-serif;
}

.admin-bar-spacer {
    height: 46px;
}

.admin-bar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 100%;
    padding: 0 20px;
}

/* ============================================
   LEFT SECTION
============================================ */
.admin-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-bar-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.admin-bar-logo:hover {
    background: #32373c;
    color: #00a0d2;
}

.admin-bar-logo i {
    font-size: 16px;
}

.admin-bar-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 4px;
}

.admin-bar-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============================================
   LINKS & BUTTONS
============================================ */
.admin-bar-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 13px;
    border-radius: 4px;
    transition: all 0.2s ease;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: 'Lexend', sans-serif;
    white-space: nowrap;
}

.admin-bar-link:hover {
    background: #32373c;
    color: #fff;
}

.admin-bar-link i {
    font-size: 14px;
}

/* ============================================
   DROPDOWNS
============================================ */
.admin-bar-dropdown {
    position: relative;
}

.admin-bar-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: #32373c;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 100000;
}

.admin-bar-dropdown:hover .admin-bar-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.admin-bar-dropdown-menu a,
.admin-bar-dropdown-menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
    width: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: 'Lexend', sans-serif;
    text-align: left;
}

.admin-bar-dropdown-menu a:first-child {
    border-radius: 6px 6px 0 0;
}

.admin-bar-dropdown-menu a:last-child,
.admin-bar-dropdown-menu button:last-child {
    border-radius: 0 0 6px 6px;
}

.admin-bar-dropdown-menu a:hover,
.admin-bar-dropdown-menu button:hover {
    background: var(--primary-color);
    color: #fff;
}

.admin-bar-dropdown-menu-right {
    left: auto;
    right: 0;
}

.admin-bar-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 4px 0;
}

.admin-bar-dropdown-logout {
    color: #dc3545 !important;
}

.admin-bar-dropdown-logout:hover {
    background: #dc3545 !important;
    color: #fff !important;
}

/* ============================================
   CENTER SECTION (Page Actions)
============================================ */
.admin-bar-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.admin-bar-page-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 16px;
    border-radius: 6px;
}

.admin-bar-page-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.admin-bar-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.admin-bar-btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.admin-bar-btn-primary:hover {
    background: #005a87;
    color: #fff;
    transform: translateY(-1px);
}

/* ============================================
   RIGHT SECTION
============================================ */
.admin-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Notifications */
.admin-bar-notification {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.admin-bar-notification:hover {
    background: #32373c;
    color: #fff;
}

.admin-bar-notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #dc3545;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 10px;
    line-height: 1;
    min-width: 16px;
    text-align: center;
}

/* User Menu */
.admin-bar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-family: 'Lexend', sans-serif;
}

.admin-bar-user:hover {
    background: #32373c;
}

.admin-bar-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    overflow: hidden;
}

.admin-bar-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-bar-user-name {
    font-size: 13px;
    font-weight: 500;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 992px) {
    .admin-bar-center {
        display: none;
    }
    
    .admin-bar-user-name {
        display: none;
    }
    
    .admin-bar-link span {
        display: none;
    }
    
    .admin-bar-logo span {
        display: none;
    }
    
    .admin-bar-container {
        padding: 0 12px;
    }
}

@media (max-width: 768px) {
    .admin-bar {
        height: 42px;
    }
    
    .admin-bar-spacer {
        height: 42px;
    }
    
    .admin-bar-menu {
        display: none;
    }
    
    .admin-bar-notification-badge {
        font-size: 8px;
        padding: 1px 4px;
    }
}

/* ============================================
   AJUSTE PARA EL NAVBAR DEL FRONTEND
   Solo aplica cuando hay admin bar (usuario autenticado)
============================================ */

/* Cuando hay admin bar (manejado por JS) */
body.has-admin-bar {
    padding-top: 126px !important; /* 46px (admin bar) + 80px (navbar) */
}

body.has-admin-bar .navbar-custom {
    top: 46px !important;
}

body.has-admin-bar .filters-section {
    top: 126px !important; /* admin bar + navbar */
}

/* Responsive cuando hay admin bar */
@media (max-width: 991px) {
    body.has-admin-bar {
        padding-top: 112px !important; /* 42px (admin bar) + 70px (navbar) */
    }
    
    body.has-admin-bar .filters-section {
        top: 112px !important;
    }
}

@media (max-width: 768px) {
    body.has-admin-bar .navbar-custom {
        top: 42px !important;
    }
}

@media (max-width: 576px) {
    body.has-admin-bar {
        padding-top: 102px !important; /* 42px (admin bar) + 60px (navbar) */
    }
    
    body.has-admin-bar .filters-section {
        top: 102px !important;
    }
}
