/* =========================================
   POPUP REPORTAR PROBLEMA
========================================= */

.report-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 20px;
}

.report-popup.active {
    display: flex;
}


/* Fondo oscuro */

.report-popup__overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.70);

    backdrop-filter: blur(4px);
}


/* Ventana */

.report-popup__content {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 700px;
    max-height: 90vh;

    overflow-y: auto;

    background: #ffffff;

    border-radius: 12px;

    padding: 35px 40px;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.30);

    animation: reportPopupShow 0.3s ease;
}


/* Animación */

@keyframes reportPopupShow {

    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}


/* Botón cerrar */

.report-popup__close {
    position: absolute;

    top: 15px;
    right: 15px;

    width: 38px;
    height: 38px;

    border: 0;
    border-radius: 50%;

    background: #f2f2f2;
    color: #333;

    cursor: pointer;

    font-size: 16px;

    transition: all 0.2s ease;
}

.report-popup__close:hover {
    background: #b91c1c;
    color: #ffffff;
}


/* Encabezado */

.report-popup__header {
    text-align: center;

    margin-bottom: 25px;
}

.report-popup__icon {
    width: 65px;
    height: 65px;

    margin: 0 auto 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #fdf0e8;
    color: #b35a1f;

    font-size: 28px;
}

.report-popup__header h2 {
    margin: 0 0 8px;

    font-size: 30px;
    font-weight: 700;

    color: #1f2937;
}

.report-popup__header p {
    margin: 0 auto;

    max-width: 550px;

    color: #6b7280;

    font-size: 15px;
    line-height: 1.6;
}


/* Formulario */

.report-form__row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;
}

.report-form__group {
    margin-bottom: 18px;
}

.report-form__group label {
    display: block;

    margin-bottom: 7px;

    color: #333333;

    font-size: 14px;
    font-weight: 600;
}

.report-form__group label span {
    color: #c62828;
}

.report-form__group label small {
    color: #888;

    font-weight: 400;
}


/* Inputs */

.report-form__group input,
.report-form__group textarea {

    width: 100%;

    padding: 13px 15px;

    border: 1px solid #dddddd;

    border-radius: 6px;

    background: #ffffff;

    color: #333333;

    font-family: inherit;

    font-size: 14px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.report-form__group input {
    height: 50px;
}

.report-form__group textarea {
    min-height: 130px;

    resize: vertical;
}


/* Focus */

.report-form__group input:focus,
.report-form__group textarea:focus {

    border-color: #b35a1f;

    box-shadow:
        0 0 0 3px rgba(179, 90, 31, 0.10);
}


/* Botones */

.report-form__actions {

    display: flex;

    justify-content: flex-end;

    gap: 12px;

    margin-top: 10px;
}

.report-form__cancel {

    padding: 13px 22px;

    border: 1px solid #ddd;

    border-radius: 5px;

    background: #ffffff;

    color: #555;

    cursor: pointer;

    font-weight: 600;
}

.report-form__cancel:hover {
    background: #f5f5f5;
}

.report-form__submit {

    border: 0;

    cursor: pointer;

    display: inline-flex;

    align-items: center;

    gap: 8px;
}

.report-form__submit:disabled {

    opacity: 0.65;

    cursor: not-allowed;
}


/* Mensajes */

.report-form-message {

    display: none;

    margin-bottom: 20px;

    padding: 13px 15px;

    border-radius: 6px;

    font-size: 14px;

    line-height: 1.5;
}

.report-form-message.success {

    display: block;

    background: #e8f7ee;

    color: #176b3a;

    border: 1px solid #b9e5ca;
}

.report-form-message.error {

    display: block;

    background: #fff0f0;

    color: #a32222;

    border: 1px solid #efbaba;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 767px) {

    .report-popup {
        padding: 10px;
    }

    .report-popup__content {

        max-height: 95vh;

        padding: 30px 20px;

        border-radius: 10px;
    }

    .report-popup__header h2 {
        font-size: 24px;
    }

    .report-form__row {

        grid-template-columns: 1fr;

        gap: 0;
    }

    .report-form__actions {

        flex-direction: column-reverse;
    }

    .report-form__cancel,
    .report-form__submit {

        width: 100%;

        justify-content: center;

        text-align: center;
    }

}
/* Ocultar campo honeypot anti-spam */
.report-form__honeypot {
    display: none !important;
}