/* Modal del carrusel - USANDO CLASES ESPECÍFICAS */
.car-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.car-modal.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.car-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.car-header {
    padding: 20px;
    background: linear-gradient(135deg, #1a3a5c 0%, #2c5a8c 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.car-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-family: 'Poppins', sans-serif;
}

.car-close {
    cursor: pointer;
    font-size: 2rem;
    font-weight: bold;
    transition: transform 0.2s ease;
    line-height: 1;
}

.car-close:hover {
    transform: scale(1.2);
}

.car-main {
    position: relative;
    background: #f8f9fa;
}

.car-slide {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.car-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8f9fa;
}

.car-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 20px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.car-prev,
.car-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    padding: 15px 20px;
    font-size: 1.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.car-prev:hover,
.car-next:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.car-prev {
    left: 20px;
}

.car-next {
    right: 20px;
}

.car-thumbnails {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: white;
    overflow-x: auto;
    border-top: 1px solid #e0e0e0;
}

.car-thumbnails img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.car-thumbnails img:hover {
    transform: scale(1.05);
}

.car-thumbnails img.active-thumb {
    border-color: #2c5a8c;
    transform: scale(1.05);
}

.car-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: white;
}

.car-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.car-indicator.active {
    background: #2c5a8c;
    width: 25px;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .car-slide {
        height: 350px;
    }
    
    .car-prev,
    .car-next {
        padding: 10px 15px;
        font-size: 1rem;
    }
    
    .car-thumbnails img {
        width: 60px;
        height: 45px;
    }
    
    .car-header h3 {
        font-size: 1.2rem;
    }
}