/* Estilos para el sistema de reviews (Modal y Botones) */

/* Botón flotante o integrado para escribir review */
.btn-write-review {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: var(--color-bg);
    color: var(--color-primary);
    text-align: center;
    font-weight: 600;
    border: none;
    border-top: 1px solid var(--color-border);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.btn-write-review:hover {
    background-color: var(--color-primary);
    color: #ffffff;
}

/* Modal Styles */
.review-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.review-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.review-modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
    animation: slideUp 0.3s ease-out;
}

.review-modal-header {
    padding: 1.5rem;
    background: var(--color-primary);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.close-modal {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.review-modal-body {
    padding: 1.5rem;
}

.rm-form-group {
    margin-bottom: 1rem;
}

.rm-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text);
    font-size: 0.9rem;
}

.rm-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 1rem;
}

.rm-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* Star Rating Input */
.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.5rem;
}

.star-rating-input input {
    display: none;
}

.star-rating-input label {
    font-size: 1.5rem;
    color: #ddd;
    cursor: pointer;
    margin: 0;
}

.star-rating-input input:checked~label,
.star-rating-input label:hover,
.star-rating-input label:hover~label {
    color: #ffc107;
}

.btn-submit-review {
    width: 100%;
    padding: 0.9rem;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit-review:hover {
    background: #c5a028;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}