/* ==========================================================================
   MAS Report Modal — estilos específicos de esta página (Home)
   ========================================================================== */

.mas-report-cta {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.5rem;
    background: linear-gradient(135deg, #1e1b4b, #4f46e5);
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(79, 70, 229, .35);
    transition: transform .15s ease, box-shadow .15s ease;
}

.mas-report-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(79, 70, 229, .45);
    text-decoration: none;
}

.mas-report-cta i {
    font-size: 1.1rem;
}

/* Overlay */
.mas-report-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .65);
    backdrop-filter: blur(2px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.mas-report-modal-overlay.is-open {
    display: flex;
}

/* Contenedor del modal */
.mas-report-modal {
    background: #f8fafc;
    width: 100%;
    max-width: 1300px;
    height: 92vh;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .35);
    animation: mas-report-modal-in .2s ease;
}

@keyframes mas-report-modal-in {
    from { opacity: 0; transform: scale(.97); }
    to   { opacity: 1; transform: scale(1); }
}

.mas-report-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 1.25rem;
    background: #1e1b4b;
    color: #fff;
    flex-shrink: 0;
}

.mas-report-modal__title {
    font-size: .95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.mas-report-modal__actions {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.mas-report-modal__close {
    background: rgba(255, 255, 255, .12);
    border: none;
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background .15s ease;
}

.mas-report-modal__close:hover {
    background: rgba(255, 255, 255, .22);
}

.mas-report-modal__body {
    position: relative;
    flex: 1;
    background: #fff;
}

.mas-report-modal__iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.mas-report-modal__loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    background: #f8fafc;
    color: #64748b;
    font-size: .85rem;
}

.mas-report-modal__spinner {
    width: 34px;
    height: 34px;
    border: 3px solid #e2e8f0;
    border-top-color: #4f46e5;
    border-radius: 50%;
    animation: mas-report-spin .8s linear infinite;
}

@keyframes mas-report-spin {
    to { transform: rotate(360deg); }
}

.mas-report-modal__body.is-loaded .mas-report-modal__loading {
    display: none;
}

body.mas-report-modal-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .mas-report-modal-overlay { padding: 0; }
    .mas-report-modal { height: 100vh; max-width: 100%; border-radius: 0; }
}
