/* global/carrusel/estilos_carrusel.css */

.contenedor-hero-carrusel {
    width: 100%;
    margin-bottom: 50px;
}

/* --- Panel Admin del Carrusel --- */
.admin-carrusel-controles {
    max-width: 1300px;
    margin: 0 auto 20px auto;
    padding: 0 30px;
}

.caja-btn-carrusel {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

.caja-btn-carrusel p {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin: 0;
}

.btn-sincronizar-carrusel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #000;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-sincronizar-carrusel:hover {
    background-color: #333;
}

.alerta-exito-carrusel {
    background-color: #f2f2f2;
    color: #000;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    border-left: 4px solid #000;
}

/* --- El Visor del Carrusel --- */
.carrusel-visor {
    position: relative;
    width: 100%;       /* Ocupa todo el ancho disponible */
    max-width: none;   /* Le quitamos el límite */
    height: 550px;     /* Lo hacemos más alto (antes era 400px) */
    border-radius: 0;  /* Bordes rectos y agresivos para tocar las orillas */
    overflow: hidden;
    background-color: #f2f2f2;
}

.carrusel-pista {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.carrusel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carrusel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recorta la imagen sin deformarla */
    display: block;
}

/* Filtro oscuro para darle elegancia */
.carrusel-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.4));
}

/* --- Botones de Flechas --- */
.carrusel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    color: #000;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.carrusel-btn:hover {
    background-color: #000;
    color: #fff;
}

.prev { left: 20px; }
.next { right: 20px; }

/* --- Puntos Indicadores --- */
.carrusel-indicadores {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicador {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicador.activo, .indicador:hover {
    background-color: #fff;
    transform: scale(1.3);
}

/* Responsivo */
@media (max-width: 768px) {
    .carrusel-visor { height: 350px; } /* Altura perfecta para móvil */
    .carrusel-btn { width: 40px; height: 40px; }
}