/* ============================================
   GAUDI THEME - Scoped (NO rompe legacy)
   Solo aplica dentro de .gaudi-theme
   ============================================ */

.gaudi-theme {
    background-color: #f4f6f9;
    padding: 40px 15px;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

    /* Card principal */
    .gaudi-theme .gaudi-card {
        max-width: 650px;
        margin: auto;
        padding: 35px;
        background: #ffffff;
        border-radius: 12px;
        box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    }

    /* Títulos */
    .gaudi-theme .gaudi-title {
        color: #003366;
        font-size: 22px;
        font-weight: 600;
        margin-bottom: 15px;
        text-align: center;
    }

    .gaudi-theme .gaudi-subtext {
        font-size: 14px;
        color: #555;
        text-align: center;
        margin-bottom: 25px;
    }

    /* Inputs */
    .gaudi-theme .gaudi-input {
        border-radius: 8px;
        height: 45px;
        border: 1px solid #d9d9d9;
        padding: 8px 12px;
        width: 100%;
        transition: 0.2s ease;
    }

        .gaudi-theme .gaudi-input:focus {
            border-color: #005EA6;
            box-shadow: 0 0 0 2px rgba(0,94,166,0.1);
            outline: none;
        }

    /* Botones */
    .gaudi-theme .gaudi-btn-primary {
        background-color: #005EA6;
        border: none;
        border-radius: 8px;
        padding: 10px 25px;
        font-weight: 500;
        color: white;
    }

        .gaudi-theme .gaudi-btn-primary:hover {
            background-color: #004080;
        }

    .gaudi-theme .gaudi-btn-danger {
        border-radius: 8px;
        padding: 10px 25px;
    }

    /* Caja informativa */
    .gaudi-theme .gaudi-box {
        background-color: #f0f6ff;
        border-left: 4px solid #005EA6;
        padding: 15px;
        border-radius: 8px;
        font-size: 14px;
        margin-top: 15px;
    }

    /* Links */
    .gaudi-theme .gaudi-link {
        color: #005EA6;
        font-weight: 500;
        text-decoration: none;
    }

        .gaudi-theme .gaudi-link:hover {
            text-decoration: underline;
        }

    /* Acciones */
    .gaudi-theme .gaudi-actions {
        margin-top: 30px;
        text-align: center;
    }

/* =========================
   GAUDI MODAL IFRAME
========================= */

.gaudi-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.gaudi-modal-window {
    background: #fff;
    width: 900px;
    max-width: 95%;
    height: 80vh;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: gaudiPop .25s ease;
}

.gaudi-modal-header {
    padding: 14px 18px;
    font-weight: 600;
    background: #0057b8;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gaudi-modal-close {
    cursor: pointer;
    font-size: 20px;
}

.gaudi-modal-body {
    flex: 1;
    background: #f5f6f8;
    padding: 25px;
    overflow-y: auto;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

    

@keyframes gaudiPop {
    from {
        transform: scale(.95);
        opacity: 0;
    }

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

/* =========================
   GAUDI MODAL CONTENT
========================= */

 

.gaudi-modal-section h5 {
    margin-bottom: 6px;
    color: #003366;
    font-size: 16px;
}

.gaudi-modal-section ul {
    padding-left: 18px;
    margin: 0;
}

.gaudi-modal-section li {
    font-size: 14px;
    margin-bottom: 5px;
    color: #444;
}