* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
}

html {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

select:required:invalid {
    color: rgba(164, 159, 159, 0.6);
}
option[value=""][disabled] {
    display: none;
}
option {
    color: black;
}

/* Animación para el spinner */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Estilos para botones deshabilitados */
.instagram-pagination-simple button:disabled {
    cursor: not-allowed !important;
    opacity: 0.5 !important;
}

.instagram-pagination-simple button:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .instagram-pagination-simple button {
        padding: 0.6rem 1rem !important;
        font-size: 0.8rem !important;
        margin: 0.25rem !important;
    }

    .instagram-pagination-simple>div>div:last-child {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
}

/* Estilos para paginación de vehículos (estilo Instagram) */
.vehicles-nav-buttons {
    text-align: center;
    margin-top: 2rem;
}

.vehicles-nav-buttons .nav-info {
    /*color: rgba(255,255,255,0.8);*/
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.vehicles-nav-buttons .nav-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.vehicles-nav-buttons button {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vehicles-nav-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.vehicles-nav-buttons button.next-btn {
    background: linear-gradient(45deg, #25d366, #20b358);
}

.vehicles-nav-buttons button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.vehicles-nav-buttons button:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Responsive para paginación de vehículos */
@media (max-width: 768px) {
    .vehicles-nav-buttons {
        text-align: center;
        margin-top: 2rem;
        padding: 0 1rem;
    }
    
    .vehicles-nav-buttons .nav-info {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .vehicles-nav-buttons .nav-buttons {
        /*flex-direction: column;*/
        gap: 0.75rem;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .vehicles-nav-buttons button {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        /*width: 100%;*/
        min-width: 110px;
        justify-content: center;
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.2rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.logo img {
    height: 40px;
    width: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.logo img:hover {
    transform: scale(1.05);
}

.logo-text {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #ff6b6b;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff6b6b;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.show {
    opacity: 1;
        display: block;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    z-index: 1000;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-nav.show {
    right: 0;
}

.mobile-nav-header {
    padding: 0.3rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: #f7f5f6;
}

.mobile-nav-header .logo {
    font-size: 1.5rem;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
}

.mobile-nav ul li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-nav ul li a {
    display: block;
    padding: 1rem 2rem;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-nav ul li a:hover {
    background: #f8f9fa;
    color: #ff6b6b;
    padding-left: 2.5rem;
}

.mobile-nav ul li a i {
    margin-right: 0.75rem;
    color: #ff6b6b;
}

.consultar{
    display: inline-block;
    font-size: 16px;
    /*  width: 60px;*/
    line-height: 16px;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(46, 1, 13, 0.7) 0%, rgba(109, 11, 31, 0.7) 100%), url('../img/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23ffffff08" points="0,0 1000,300 1000,1000 0,700"/></svg>');
    background-size: cover;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
    z-index: 2;
    position: relative;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.7s forwards;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    color: white;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
    opacity: 0;
    animation: fadeInUp 1s ease 0.9s forwards;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.4);
}

/* Cars Section */
.cars-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #dedede, #b3b3b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    transition: all 0.3s ease;
}

.cars-grid.grid-1 {
    grid-template-columns: 1fr;
}

.cars-grid.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.cars-grid.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.cars-grid.grid-4 {
    grid-template-columns: repeat(3, 1fr);
}

.cars-grid.grid-linear {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.cars-grid.grid-linear .car-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: 250px;
    min-height: 200px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.cars-grid.grid-linear .car-image {
    width: 400px;
    height: 100%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border-radius: 15px 0 0 15px;
}

.cars-grid.grid-linear .car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cars-grid.grid-linear .car-content {
    flex: 1;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: white;
    border-radius: 0 15px 15px 0;
    position: relative;
}

.cars-grid.grid-linear .car-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.4rem;
    line-height: 1.3;
    color: #333;
    font-weight: 700;
}

.cars-grid.grid-linear .car-details {
    display: grid; /*display: flex;*/
    grid-template-columns: 100px 100px 1fr; /*flex-wrap: wrap;*/
    gap: 1.5rem;
    margin: 0 0 0.75rem 0;
}

.cars-grid.grid-linear .car-details span {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.cars-grid.grid-linear .car-details span i {
    color: #667eea;
}

.cars-grid.grid-linear .price {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 0.75rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cars-grid.grid-linear .car-features {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.cars-grid.grid-linear .car-features .feature {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    background: #f1f3f4;
    border-radius: 12px;
    color: #555;
}

.cars-grid.grid-linear .car-status {
    position: absolute;
    z-index: 3;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
}

.cars-grid.grid-linear .view-details {
    align-self: flex-start;
    margin-top: auto;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 25px;
}

/* View Controls */
.view-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.view-options {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.view-label {
    font-weight: 600;
    color: #666;
    margin-right: 1rem;
    font-size: 0.9rem;
}

.view-btn {
    padding: 0.5rem;
    border: 2px solid #e1e5e9;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #666;
}

.view-btn:hover,
.view-btn.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
}

.view-btn i {
    font-size: 1rem;
}

.results-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.results-info i {
    color: #667eea;
}

/* Hide mobile 1-column option on desktop */
.view-btn.mobile-1-col {
    display: none;
}

/* Image Gallery Modal */
.image-gallery-modal {
    background: white;
    border-radius: 20px;
    max-width: 90vw;
    /*max-height: 90vh;*/
    width: 930px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.gallery-header {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.gallery-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.4rem;
}

.gallery-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.gallery-details-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.gallery-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.gallery-main {
    padding-bottom: 1rem;
}

.main-image-container {
    position: relative;
    margin-bottom: 1rem;
    background: #f8f9fa;
    /*border-radius: 15px;*/
    overflow: hidden;
    /*height: 400px;*/
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-container img {
    /*max-width: 100%;*/
    /*max-height: 100%;*/
    /*object-fit: contain;*/
    /*border-radius: 10px;*/
    width: 100%;
}

.gallery-nav {
    position: absolute;
    bottom: 10%; /*top: 50%;*/
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev {
    left: 20px;
}

.gallery-nav.next {
    right: 20px;
}

.thumbnails-container {
    max-height: 130px;
    /* overflow-y: auto;*/
}

.thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.thumbnail {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #667eea;
    transform: scale(1.05);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.car-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.car-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.05), rgba(102, 126, 234, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.car-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
}

.car-card:hover::before {
    opacity: 1;
}

.car-image {
    height: 250px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.car-image:hover img {
    transform: scale(1.05);
}

.car-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.car-image:hover::before {
    opacity: 1;
}

.car-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    color: rgba(255, 255, 255, 0.6);
    font-size: 3rem;
    backdrop-filter: blur(5px);
}

.car-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.car-status.disponible {
    background: rgba(40, 167, 69, 0.9);
    color: white;
}

.car-status.vendido {
    background: rgba(220, 53, 69, 0.9);
    color: white;
}

.car-status.reservado {
    background: rgba(255, 193, 7, 0.9);
    color: #333;
}

.car-info,
.car-content {
    padding: 1rem;
    width: 100%;
    position: relative;
    z-index: 2;
}

.car-info h3,
.car-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 700;
    line-height: 1.3;
}

.car-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: #666;
}

.price {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    position: relative;
    text-align: right;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.price::before {
    content: '$';
    font-size: 1.2rem;
    vertical-align: super;
}

.car-features {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 0.2rem 0.6rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
}

.feature:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-2px);
}

.car-actions {
        gap: 0.75rem;
}

.details-btn {
    width: 120px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 0.6rem;
    margin: 0 0 15px 10px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    float: right;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(45deg, #764ba2, #667eea);
}

.contact-btn {
    background: linear-gradient(45deg, #25d366, #128c7e);
    color: white;
    width: 120px;
    border: none;
    padding: 0.6rem;
    margin: 0 0 15px 0;
    float: right;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    background: linear-gradient(45deg, #128c7e, #25d366);
}

.details-btn i,
.contact-btn i {
    font-size: 1.1rem;
}

/* Car Details Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.show {
    display: flex;
}

.car-modal {
    background: white;
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    padding: 0.5rem 1rem 0.5rem 2rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-footer {
    padding: 1rem;
    border-top: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 0 0 20px 20px;
}

.contact-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}




.contact-btn.whatsapp {
    background: #25d366;
    color: white;
}

.contact-btn.whatsapp:hover {
    background: #1da851;
    transform: translateY(-2px);
}

.contact-btn.phone {
    background: #ff6b6b;
    color: white;
}

.contact-btn.phone:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

.contact-btn.email {
    background: #4ecdc4;
    color: white;
}

.contact-btn.email:hover {
    background: #44a08d;
    transform: translateY(-2px);
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: #666;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-body {
    padding: 0;
}

.car-details-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    /*min-height: 500px;*/
}

.car-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    /*margin-bottom: 2rem;*/
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.spec-item:hover {
    transform: translateY(-2px);
}

.spec-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.spec-icon.price-detail {
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
}

.spec-icon.year {
    background: linear-gradient(45deg, #667eea, #764ba2);
}

.spec-icon.km {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
}

.spec-icon.transmission {
    background: linear-gradient(45deg, #f093fb, #f5576c);
}

.spec-icon.fuel {
    background: linear-gradient(45deg, #4facfe, #00f2fe);
}

.spec-icon.status {
    background: linear-gradient(45deg, #43e97b, #38f9d7);
}

.spec-details h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-details p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.car-description {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /*margin-top: 1rem;*/
}

.car-description h3 {
    margin: 0 0 1rem 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.car-description p {
    margin: 0;
    line-height: 1.6;
    color: #666;
}

.car-features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.feature-tag {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.car-info-section {
    background: #eeeeee; /*background: #f8f9fa;*/
}

.car-gallery-section {
    background: white;
}

.car-info-section,
.car-gallery-section {
    padding: 1.5rem;
}

.car-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    overflow: hidden;
}

.gallery-image {
    cursor: pointer;
    position: relative;
}

.gallery-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-image:hover img {
    transform: scale(1.02);
}

.gallery-image.main {
    height: 400px;
    grid-column: 1 / -1;
}

/* Large Screens */
@media (max-width: 992px) {
    .spec-icon {
        display:none;
    }
 
}
/* Medium Screens */
@media (max-width: 768px) {
    .gallery-image img {
        height: 300px;
    }

    .gallery-image.main {
        height: 300px;
    }
}
/* Small Screens */
@media (max-width: 576px) {
    .gallery-image img {
        height: 200px;
    }

    .gallery-image.main {
        height: 200px;
    }
}

.no-images {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.no-images i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .details-btn {
        padding: 8px;
        min-width: 80px;
        font-size: 12px;
        width:auto;
    }

    .car-actions {
        /* flex-direction: column;*/
        gap: 0.5rem;
    }
    
    .modal-header {
        /*padding: 1.5rem 1rem 1rem;*/
    }

    .modal-footer {
        padding: 1rem;
    }

    .contact-actions {
        /*flex-direction: column;*/
        gap: 0.75rem;
    }

    .contact-btn {
        padding: 8px;
        min-width: 80px;
        font-size: 12px;
        width:auto;
    }

    /* Image Gallery Mobile */
    .image-gallery-modal {
        width: 95vw;
        /*max-height: 85vh;*/
    }
    
    .gallery-header {
        padding: 0.5rem;
    }

    .gallery-header h3 {
        font-size: 1.2rem;
    }

    .gallery-actions {
        gap: 0.3rem;
    }

    .gallery-details-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .gallery-main {
        padding-bottom: 0.5rem;
    }

    .main-image-container {
        /*height: 250px;*/
        margin-bottom: 0.5rem;
    }

    .gallery-nav.prev {
        left: 10px;
    }

    .gallery-nav.next {
        right: 10px;
    }

    .thumbnail {
        width: 60px;
        height: 45px;
    }
    
    .modal-title {
        font-size: 1.4rem;
    }
    
    .car-details-content {
        grid-template-columns: 1fr;
    }
    
    .car-info-section,
    .car-gallery-section {
        padding: 1rem;
    }
    
    .car-specs {
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }
}

.view-details {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    float: right;
    font-weight: bold;
    margin-bottom: 1rem;
}

.view-details:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.4);
}

/* Services Section */
.services-section {
    padding: 5rem 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    text-align: center;
    padding: 2rem;
    border-radius: 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    transition: all 0.3s ease;
}

.service-card:nth-child(2) {
    background: linear-gradient(135deg, #61adf0 0%, #009aa2 100%);
}

.service-card:nth-child(3) {
    background: linear-gradient(135deg, #4acf76 0%, #209a84 100%);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 4rem;
    /* margin-bottom: 1rem; */
}

/* Instagram Gallery Section */
.instagram-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    color: white;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));*/
    /*  gap: 1rem;*/
    margin-top: 3rem;
}

.instagram-post {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.1);
    /*border-radius: 15px;*/
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.instagram-post:hover {
    transform: scale(1.05);
}

.instagram-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instagram-post:hover .instagram-overlay {
    opacity: 1;
}

.instagram-icon {
    font-size: 2rem;
    color: white;
}

.instagram-link {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    margin-top: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.instagram-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.insta-izquierdo { 
    border-radius: 15px 0 0 15px;
    filter: grayscale(100%);
    opacity: 0.75;
    position: relative;
}

.insta-izquierdo::after {
    content: attr(data-caption);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px;
    font-size: 0.9rem;
    line-height: 1.4;
    /* border-radius: 0 0 15px 0;*/
    max-height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.insta-centro   { 
    /* estilos para el 2º de cada trio */ 
}
.insta-derecho  { 
    border-radius: 0 15px 15px 0;
}

.contact-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.contact-section .section-title h2 {
    color: white;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.map-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    height: 450px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 15px;
    filter: grayscale(20%) contrast(1.1);
}

.location-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
}

.location-info h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: #ffa500;
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(164, 159, 159, 0.6);
    opacity: 0.8;
}

.filter-input::placeholder {
    color: rgba(102, 126, 234, 0.5);
    opacity: 0.8;
}

/* Clase utilitaria para placeholders más transparentes */
.transparent-placeholder::placeholder {
    color: rgba(128, 128, 128, 0.4) !important;
    opacity: 0.6 !important;
}

/* Placeholder para elementos vacíos */
.empty-placeholder {
    background: rgba(240, 240, 240, 0.3);
    color: rgba(128, 128, 128, 0.5);
    border: 2px dashed rgba(200, 200, 200, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    font-style: italic;
}

.empty-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.3;
}

.form-group textarea {
    height: 240px;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-weight: bold;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

/* Footer */
.footer {
    background: #222;
    color: white;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-main {
    flex: 1;
    text-align: left;
}

.footer-main p {
    margin: 0.3rem 0;
    font-size: 0.95rem;
}

.footer-credits {
    flex: 1;
    text-align: right;
}

.footer-credits p {
    margin: 0.3rem 0;
    font-size: 0.9rem;
}

.developer-link {
    color: #4ecdc4;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.developer-link:hover {
    color: #ff6b6b;
    border-bottom: 1px solid #ff6b6b;
    transform: translateY(-1px);
}

.developer-contact {
    color: #bbb;
    font-size: 0.85rem !important;
}

.developer-contact i {
    color: #4ecdc4;
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-main,
    .footer-credits {
        text-align: center;
        flex: none;
    }

    .insta-izquierdo::after {
    content: attr(data-caption);
    position: absolute;
    bottom: 0;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 3px 3px 3px 10px;
    max-height: 100%;
    font-size: 0.85rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Instagram API Integration */
.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #833ab4;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* Catalog Filters */
.catalog-filters {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
}

.filters-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filters-title i {
    color: #ff6b6b;
}

.clear-filters {
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.3);
}

.clear-filters:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.filter-label {
    font-weight: 600;
    color: #555;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-label i {
    color: #667eea;
}

.filter-input {
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.filter-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.price-range {
    display: flex;
    gap: 0.3rem;
    align-items: center;
    width: 100%;
}

.price-range input {
    flex: 1;
    min-width: 0;
    max-width: calc(50% - 0.25rem);
}

.price-separator {
    color: #666;
    font-weight: bold;
}

.search-results {
    padding: 1rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.search-results.show {
    display: block;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /*  .mobile-menu-overlay {
        display: block;
    }*/

    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .cars-grid.grid-1 {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
    }

    .cars-grid.grid-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0;
    }

    .cars-grid.grid-3,
    .cars-grid.grid-4 {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
    }

    .cars-grid.grid-linear {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
    }

    .cars-grid.grid-linear .car-card {
        height: 185px;
        min-height: 160px;
        flex-direction: row;
        align-items: stretch;
        overflow: hidden;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        margin-bottom: 0.5rem;
    }

    .cars-grid.grid-linear .car-image {
        width: 140px;
        height: 100%;
        flex-shrink: 0;
        border-radius: 12px 0 0 12px;
        overflow: hidden;
        position: relative;
    }

    .cars-grid.grid-linear .car-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .cars-grid.grid-linear .car-content {
        padding: 1rem 0.8rem;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        background: white;
        border-radius: 0 12px 12px 0;
        gap: 0.4rem;
        overflow: hidden;
        position: relative;
    }

    .cars-grid.grid-linear .car-content h3 {
        font-size: 1.1rem;
        margin: 0;
        line-height: 1.2;
        color: #333;
        font-weight: 600;
        max-height: 2.4em;
        overflow: hidden;
    }

    .cars-grid.grid-linear .car-details {
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
        margin: 0;
    }

    .cars-grid.grid-linear .car-details span {
        font-size: 0.8rem;
        color: #666;
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }

    .cars-grid.grid-linear .car-details span i {
        color: #667eea;
        font-size: 0.75rem;
    }

    .cars-grid.grid-linear .price {
        font-size: 1.3rem;
        font-weight: 700;
        margin: 0;
        color: #667eea;
    }

    .cars-grid.grid-linear .car-features {
        display: none;
    }

    .cars-grid.grid-linear .car-status {
        position: absolute;
        top: 8px;
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
        border-radius: 15px;
        z-index: 3;
    }

    .cars-grid.grid-linear .view-details {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        margin-top: auto;
        align-self: flex-start;
        border-radius: 20px;
        white-space: nowrap;
    }

    .view-controls {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .view-options {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Hide desktop-only options on mobile */
    .view-btn.desktop-only {
        display: none;
    }

    /* Show mobile 1-column option */
    .view-btn.mobile-1-col {
        display: flex;
    }
    
    .container {
        padding: 0 0.5rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }

    .catalog-filters {
        padding: 1rem;
        margin-bottom: 2rem;
    }

    .filters-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* .filters-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    } */

    .price-range {
        /* flex-direction: column;*/
        gap: 0.5rem;
    }

    /* Instagram: forzar 3 columnas en móvil con imágenes más pequeñas */
    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #25d366, #128c7e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
    background: linear-gradient(45deg, #25d366, #128c7e);
    color: white;
}

.fab i {
    display: block;
}

/* Tincho Styles */
.filters-make-year {
    display: contents;
}
/* Large Screens */
@media (max-width: 992px) {
    .filters-grid {
        display:grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}
/* Medium Screens */
@media (max-width: 768px) {
    .filters-grid {
        display:flow;
    }
    .filters-make-year {
        display: flex;
        gap:1.2rem
    }
    .filter-group {
        margin-top: 15px;
    }
}
/* Small Screens */
@media (max-width: 576px) {
}
/* Extra Small Screens */
@media (max-width: 480px) {
}