/* ====================================
   REVIEWS PROFESSIONAL
   ==================================== */

.pn-reviews-wrapper {
    max-width: 1000px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-family: "Poppins", sans-serif;
}

.pn-reviews-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

/* -------- MENSAJES -------- */
.pn-success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #c3e6cb;
    font-size: 15px;
    font-weight: 500;
}

/* -------- FORMULARIO DE RESEÑA -------- */
.pn-review-form-section {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 40px;
}

.pn-review-form-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.pn-review-form .pn-form-field {
    margin-bottom: 20px;
}

.pn-review-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.pn-review-form input[type="text"],
.pn-review-form input[type="email"],
.pn-review-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: "Poppins", sans-serif;
    transition: border-color 0.3s;
}

.pn-review-form input[type="text"]:focus,
.pn-review-form input[type="email"]:focus,
.pn-review-form textarea:focus {
    outline: none;
    border-color: #000;
}

.pn-review-form input[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* Rating estrellas (input) */
.pn-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
}

.pn-rating-input input[type="radio"] {
    display: none;
}

.pn-rating-input label {
    font-size: 32px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
    margin-bottom: 0;
}

.pn-rating-input label:hover,
.pn-rating-input label:hover ~ label,
.pn-rating-input input[type="radio"]:checked ~ label {
    color: #ffc107;
}

/* -------- LISTA DE RESEÑAS -------- */
.pn-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.pn-no-reviews {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 16px;
}

.pn-review-item {
    background: #fafafa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e8e8e8;
}

.pn-review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.pn-review-author-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pn-review-author {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.pn-review-date {
    font-size: 13px;
    color: #999;
}

.pn-review-rating {
    display: flex;
    gap: 3px;
}

.pn-star {
    font-size: 20px;
    color: #ddd;
}

.pn-star.filled {
    color: #ffc107;
}

.pn-review-content {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

/* -------- RESPUESTA DEL PROFESIONAL -------- */
.pn-professional-reply {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border-left: 4px solid #000;
}

.pn-reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.pn-reply-header strong {
    font-size: 14px;
    color: #000;
}

.pn-reply-date {
    font-size: 12px;
    color: #999;
}

.pn-reply-content {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

/* -------- BOTONES -------- */
.pn-reply-btn {
    padding: 8px 20px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    font-family: "Poppins", sans-serif;
    margin-top: 10px;
}

.pn-reply-btn:hover {
    background: #333;
}

.pn-submit-btn {
    padding: 12px 30px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    font-family: "Poppins", sans-serif;
}

.pn-submit-btn:hover {
    background: #333;
}

.pn-cancel-btn {
    padding: 12px 30px;
    background: #f0f0f0;
    color: #333;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    font-family: "Poppins", sans-serif;
}

.pn-cancel-btn:hover {
    background: #e0e0e0;
}

/* -------- FORMULARIO DE RESPUESTA -------- */
.pn-reply-form-wrapper {
    margin-top: 15px;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
}

.pn-reply-form .pn-form-field {
    margin-bottom: 15px;
}

.pn-reply-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.pn-reply-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: "Poppins", sans-serif;
    transition: border-color 0.3s;
}

.pn-reply-form textarea:focus {
    outline: none;
    border-color: #000;
}

.pn-form-actions {
    display: flex;
    gap: 10px;
}

/* -------- RESPONSIVE -------- */
@media screen and (max-width: 768px) {
    .pn-reviews-wrapper {
        padding: 20px 15px;
        margin: 20px 10px;
    }

    .pn-reviews-title {
        font-size: 22px;
    }

    .pn-review-form-section {
        padding: 20px 15px;
    }

    .pn-review-header {
        flex-direction: column;
        gap: 10px;
    }

    .pn-rating-input label {
        font-size: 28px;
    }

    .pn-form-actions {
        flex-direction: column;
    }

    .pn-submit-btn,
    .pn-cancel-btn {
        width: 100%;
    }
}
