/* Ajuste para que los navbars fijos no tapen el contenido */
body {
    padding-top: 140px;
    background-color: #f8f9fa;
}

/* Estilos para el sistema de reseñas */
.rating-input-section {
    text-align: center;
    margin-bottom: 20px;
}

.stars-large i {
    font-size: 2rem;
    color: #ccc;
    cursor: pointer;
    display: inline-block;
    transition: transform 0.2s ease, color 0.3s ease;
}

.stars-large i:hover {
    transform: scale(1.2);
}

.stars-large i.activa {
    color: #f1c40f;
    text-shadow: 0 0 10px rgba(241, 196, 15, 0.6);
}

@keyframes starPop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.4); }
    100% { transform: scale(1); }
}

.stars-large i.pop {
    animation: starPop 0.3s ease-out;
}

.textarea-container {
    position: relative;
    background-color: #D9D9D9;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

textarea {
    width: 100%;
    height: 100px;
    border: none;
    resize: none;
    outline: none;
}

.btn-publicar {
    position: absolute;
    bottom: 10px;
    right: 15px;
    background-color: #5DA2D5;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.btn-publicar:hover {
    background-color: #428bca;
}

/* ── Carrusel de reseñas ── */
.carousel-resenas {
    margin-top: 30px;
    position: relative;
}

.carousel-resenas .carousel-item {
    display: none;
}

.carousel-resenas .carousel-item.active {
    display: block;
}

/* Grid — Desktop: 3 columnas, 2 filas = 6 cards */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 20px;
}

/* Tablet (≤768px): 2 columnas, 2 filas = 4 cards visibles */
@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, auto);
        gap: 15px;
    }
}

.review-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.stars-small {
    color: #f1c40f;
    font-size: 0.9rem;
}

.edit-icon {
    float: right;
    cursor: pointer;
    color: #6fb3e0;
    transition: color 0.2s;
}

.edit-icon:hover {
    color: #428bca;
}

/* Indicadores sliding dots */
.carousel-resenas .carousel-indicators {
    position: relative;
    bottom: auto;
    left: auto;
    margin: 20px 0 0 0;
    justify-content: center;
    align-items: center;
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
}

.carousel-indicators li {
    background-color: #5DA2D5;
    border-radius: 50%;
    width: 10px;
    height: 10px;
    cursor: pointer;
    border: none;
    flex-shrink: 0;
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

.carousel-indicators li.active {
    background-color: #428bca;
    transform: scale(1.3);
}
