/* ===== CONTENEDOR PRINCIPAL CARRUSEL ===== */
.spotlight-wrap {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ===== IMAGEN PRINCIPAL CARRUSEL - CUADRADA SIEMPRE ===== */
.main-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1; /* FORZADO - siempre cuadrado */
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #f0f0f0;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* La imagen se recorta para llenar el espacio */
    display: block;
    transition: opacity 0.5s ease;
}

/* ===== CAPTION DE LA IMAGEN ===== */
.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 30px 20px 20px;
    font-size: 1.3rem;
    font-weight: 500;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* ===== CONTADOR DE IMÁGENES ===== */
.image-counter {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 5;
    backdrop-filter: blur(5px);
}

/* ===== FLECHAS DE NAVEGACIÓN ===== */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transicion);
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    color: var(--verde-principal);
}

.nav-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.arrow-left {
    left: 20px;
}

.arrow-right {
    right: 20px;
}

/* ===== FLECHA HACIA ABAJO ===== */
.arrow-down {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transicion);
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    color: var(--verde-principal);
    animation: bounce 2s infinite;
}

.arrow-down:hover {
    background: white;
    transform: translateX(-50%) scale(1.1);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ===== MINIATURAS - CUADRADAS ===== */
.thumbnails-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    padding: 10px 0;
}

.thumbnail {
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transicion);
    opacity: 0.7;
    border: 3px solid transparent;
    position: relative;
    aspect-ratio: 1/1; /* Miniaturas cuadradas */
}

.thumbnail:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.thumbnail.active {
    opacity: 1;
    border-color: var(--amarillo);
    box-shadow: 0 5px 15px rgba(251, 192, 45, 0.4);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumbnail-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px;
    font-size: 0.8rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== RESPONSIVE - SOLO CAMBIA TAMAÑO, NUNCA LA FORMA ===== */
@media (max-width: 1024px) {
    .main-image-container {
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .main-image-container {
        max-width: 500px;
    }
    
    .nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .arrow-left {
        left: 10px;
    }
    
    .arrow-right {
        right: 10px;
    }
    
    .image-caption {
        font-size: 1rem;
        padding: 20px 15px 15px;
    }
    
    .thumbnails-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .main-image-container {
        max-width: 350px;
    }
}