﻿/* =========================================================
   PARCHE D4 — EXPERIENCIA SAAS DE SHORT STUDIO
   No modifica el motor de grabación.
========================================================= */

/* PÁGINA DE CUENTA INACTIVA */

.account-status-page {
    display: grid;
    place-items: center;

    min-height: 100vh;
    padding: 32px 20px;

    color: #172033;

    background:
        radial-gradient(
            circle at 18% 12%,
            rgba(37, 99, 235, 0.12),
            transparent 32%
        ),
        radial-gradient(
            circle at 82% 86%,
            rgba(14, 165, 233, 0.1),
            transparent 30%
        ),
        #f5f7fb;
}

.account-status-card {
    width: min(540px, 100%);
    padding: 46px 42px;

    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 26px;

    text-align: center;

    background: rgba(255, 255, 255, 0.96);

    box-shadow:
        0 30px 80px rgba(15, 23, 42, 0.13),
        0 8px 26px rgba(37, 99, 235, 0.06);
}

.account-status-icon {
    display: grid;
    place-items: center;

    width: 82px;
    height: 82px;
    margin: 0 auto 22px;

    border-radius: 24px;
}

.account-status-icon-warning {
    color: #b45309;
    background: #fff7ed;
    box-shadow: inset 0 0 0 1px #fed7aa;
}

.account-status-eyebrow {
    display: block;
    margin-bottom: 10px;

    color: #2563eb;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.account-status-card h1 {
    color: #0f172a;

    font-size: clamp(30px, 6vw, 42px);
    font-weight: 820;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.account-status-description {
    max-width: 440px;
    margin: 17px auto 0;

    color: #64748b;

    font-size: 16px;
    line-height: 1.7;
}

.account-status-notice {
    display: flex;
    align-items: flex-start;
    gap: 11px;

    margin-top: 25px;
    padding: 15px 17px;

    border: 1px solid #dbeafe;
    border-radius: 14px;

    color: #1e3a8a;
    text-align: left;

    background: #eff6ff;
}

.account-status-notice > span {
    display: grid;
    place-items: center;

    width: 22px;
    height: 22px;
    flex: 0 0 auto;

    border-radius: 50%;

    color: #ffffff;
    background: #2563eb;

    font-size: 13px;
    font-weight: 800;
}

.account-status-notice p {
    font-size: 14px;
    line-height: 1.55;
}

.account-status-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;

    margin-top: 27px;
}

.account-status-button {
    min-height: 48px;
}

.account-status-email {
    display: inline-block;
    margin-top: 22px;

    color: #64748b;

    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

.account-status-email:hover {
    color: #2563eb;
}

/* MODALES DEL PLAN */

.saas-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9000;

    display: grid;
    place-items: center;

    padding: 20px;

    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(5px);

    animation: saasBackdropIn 160ms ease-out;
}

.saas-modal {
    position: relative;

    width: min(460px, 100%);
    padding: 34px;

    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 24px;

    color: #172033;
    text-align: center;

    background: #ffffff;

    box-shadow:
        0 30px 85px rgba(15, 23, 42, 0.28),
        0 6px 20px rgba(15, 23, 42, 0.08);

    animation: saasModalIn 190ms ease-out;
}

.saas-modal-close {
    position: absolute;
    top: 17px;
    right: 17px;

    display: grid;
    place-items: center;

    width: 36px;
    height: 36px;
    padding: 0;

    border: 0;
    border-radius: 50%;

    color: #64748b;
    background: #f1f5f9;

    font-size: 24px;
    line-height: 1;
}

.saas-modal-close:hover {
    color: #0f172a;
    background: #e2e8f0;
}

.saas-modal-icon {
    display: grid;
    place-items: center;

    width: 66px;
    height: 66px;
    margin: 0 auto 18px;

    border-radius: 19px;

    font-size: 30px;
}

.saas-modal-icon-limit {
    color: #b45309;
    background: #fff7ed;
    box-shadow: inset 0 0 0 1px #fed7aa;
}

.saas-modal-icon-error {
    color: #1d4ed8;
    background: #eff6ff;
    box-shadow: inset 0 0 0 1px #bfdbfe;
}

.saas-modal-label {
    display: block;
    margin-bottom: 7px;

    color: #2563eb;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.saas-modal h2 {
    color: #0f172a;

    font-size: 27px;
    font-weight: 820;
    line-height: 1.18;
    letter-spacing: -0.025em;
}

.saas-modal-description {
    margin-top: 12px;

    color: #64748b;

    font-size: 15px;
    line-height: 1.65;
}

.saas-modal-plan-summary {
    overflow: hidden;

    margin-top: 23px;

    border: 1px solid #e2e8f0;
    border-radius: 15px;

    text-align: left;

    background: #f8fafc;
}

.saas-modal-plan-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;

    padding: 15px 17px;
}

.saas-modal-plan-row + .saas-modal-plan-row {
    border-top: 1px solid #e2e8f0;
}

.saas-modal-plan-row span {
    color: #64748b;
    font-size: 14px;
}

.saas-modal-plan-row strong {
    color: #172033;
    font-size: 15px;
}

.saas-modal-actions {
    display: grid;
    gap: 10px;

    margin-top: 23px;
}

.saas-modal-actions .primary-button,
.saas-modal-actions .secondary-button {
    width: 100%;
    min-height: 46px;
}

body.saas-modal-open {
    overflow: hidden;
}

@keyframes saasBackdropIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes saasModalIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 560px) {
    .account-status-card {
        padding: 36px 22px;
        border-radius: 21px;
    }

    .account-status-actions {
        grid-template-columns: 1fr;
    }

    .saas-modal {
        padding: 32px 21px 23px;
        border-radius: 21px;
    }
}

/* =========================================================
   CONTACTO EN MODAL DE LÍMITE
========================================================= */

.saas-limit-contact-box {
    margin-top: 20px;
    padding: 18px;

    border: 1px solid #fed7aa;
    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 247, 237, 0.96),
            rgba(255, 255, 255, 0.96)
        );
}

.saas-limit-contact-heading {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    gap: 13px;

    text-align: left;
}

.saas-limit-support-icon {
    display: grid;
    place-items: center;

    width: 54px;
    height: 54px;

    border: 1px solid #fed7aa;
    border-radius: 50%;

    color: #c25a06;
    background: #fff7ed;

    font-size: 28px;
    font-weight: 800;
}

.saas-limit-contact-heading strong {
    display: block;

    color: #172033;

    font-size: 16px;
    line-height: 1.3;
}

.saas-limit-contact-heading p {
    margin-top: 5px;

    color: #64748b;

    font-size: 14px;
    line-height: 1.5;
}

.saas-whatsapp-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;

    width: 100%;
    min-height: 48px;
    margin-top: 16px;
    padding: 0 18px;

    border-radius: 12px;

    color: #ffffff;
    background: linear-gradient(
        135deg,
        #22c55e,
        #16a34a
    );

    font-size: 15px;
    font-weight: 800;
    text-decoration: none;

    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.25);

    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}

.saas-whatsapp-button:hover {
    color: #ffffff;
    background: linear-gradient(
        135deg,
        #16a34a,
        #15803d
    );

    box-shadow: 0 11px 24px rgba(22, 163, 74, 0.32);
    transform: translateY(-1px);
}

.saas-whatsapp-number {
    display: inline-block;
    margin-top: 11px;

    color: #16a34a;

    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
}

.saas-whatsapp-number:hover {
    color: #15803d;
    text-decoration: underline;
}

.saas-email-separator {
    display: flex;
    align-items: center;
    gap: 13px;

    margin: 20px 0 13px;

    color: #64748b;

    font-size: 13px;
    white-space: nowrap;
}

.saas-email-separator::before,
.saas-email-separator::after {
    content: "";

    height: 1px;
    flex: 1;

    background: #e2e8f0;
}

.saas-limit-email {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;

    min-height: 46px;
    padding: 10px 16px;

    border: 1px solid #dbe3ee;
    border-radius: 12px;

    color: #2563eb;
    background: #f8fafc;

    font-size: 14px;
    font-weight: 750;
    text-decoration: none;

    overflow-wrap: anywhere;

    transition:
        border-color 160ms ease,
        background 160ms ease,
        transform 160ms ease;
}

.saas-limit-email:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    transform: translateY(-1px);
}

/*
El modal de límite ahora contiene más información.
Se amplía ligeramente sin afectar otros modales.
*/

.saas-modal:has(.saas-limit-contact-box) {
    width: min(500px, 100%);
    max-height: calc(100vh - 30px);
    overflow-y: auto;
}

.saas-modal:has(.saas-limit-contact-box)
.saas-modal-actions {
    margin-top: 18px;
}

.saas-modal:has(.saas-limit-contact-box)
.saas-modal-actions .primary-button {
    color: #24304a;
    background: #edf1f7;
    box-shadow: none;
}

.saas-modal:has(.saas-limit-contact-box)
.saas-modal-actions .primary-button:hover {
    background: #e2e8f0;
    box-shadow: none;
}

@media (max-width: 560px) {
    .saas-limit-contact-heading {
        grid-template-columns: 46px minmax(0, 1fr);
    }

    .saas-limit-support-icon {
        width: 46px;
        height: 46px;
        font-size: 23px;
    }

    .saas-modal:has(.saas-limit-contact-box) {
        padding-right: 18px;
        padding-left: 18px;
    }
}
