/* ============================================================ */
/* MODAL CSS — Sub-páginas mágicas                              */
/* ============================================================ */

.magic-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.magic-modal.active {
    opacity: 1;
    pointer-events: auto;
}
.magic-modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    opacity: 0;
    transition: opacity 0.5s ease;
}
.magic-modal.active .magic-modal-bg { opacity: 1; }
.magic-modal-content {
    position: relative;
    width: 90%;
    max-width: 1100px;
    height: 85vh;
    background: linear-gradient(135deg, #0a0a0f 0%, #12121a 100%);
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 24px;
    box-shadow: 
        0 0 60px rgba(0, 245, 255, 0.2),
        0 0 100px rgba(37, 211, 102, 0.1),
        inset 0 0 80px rgba(0, 245, 255, 0.03);
    overflow: hidden;
    transform: scale(0.7) translateY(50px);
    opacity: 0;
    transition: 
        transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.5s ease;
}
.magic-modal.active .magic-modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}
.magic-modal-content::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #00f5ff, #25D366, #00f5ff, #25D366);
    background-size: 300% 300%;
    border-radius: 24px;
    z-index: -1;
    animation: borderGlow 4s ease infinite;
    opacity: 0.5;
}
@keyframes borderGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.magic-modal-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: linear-gradient(180deg, rgba(10,10,15,0.95) 0%, rgba(10,10,15,0.8) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 245, 255, 0.15);
}
.magic-modal-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    color: #00f5ff;
    text-shadow: 0 0 15px rgba(0, 245, 255, 0.5);
    letter-spacing: 1px;
}
.magic-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid rgba(0, 245, 255, 0.3);
    color: #00f5ff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}
.magic-modal-close:hover {
    background: rgba(0, 245, 255, 0.2);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
}
.magic-modal-body {
    height: calc(85vh - 80px);
    overflow-y: auto;
    padding: 40px;
    scrollbar-width: thin;
    scrollbar-color: #00f5ff rgba(0,0,0,0.3);
}
.magic-modal-body::-webkit-scrollbar { width: 8px; }
.magic-modal-body::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.3); }
.magic-modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00f5ff, #25D366);
    border-radius: 4px;
}
.magic-hero {
    text-align: center;
    padding: 20px 0 40px;
    border-bottom: 1px solid rgba(0, 245, 255, 0.1);
    margin-bottom: 40px;
}
.magic-hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 50px;
    color: #ffd700;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.magic-hero h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 2.8rem;
    background: linear-gradient(180deg, #e0e0e0 0%, #f5f5f5 15%, #9e9e9e 40%, #b0b0b0 60%, #757575 80%, #dcdcdc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    margin-bottom: 10px;
}
.magic-hero p {
    color: #00f5ff;
    font-size: 1.1rem;
    font-style: italic;
    opacity: 0.9;
}
.magic-section { margin-bottom: 40px; }
.magic-section h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: #00f5ff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.magic-section h3::before {
    content: "";
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, #00f5ff, #25D366);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.8);
}
.magic-section p { color: #bbb; line-height: 1.8; margin-bottom: 15px; }
.magic-section ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}
.magic-section li {
    color: #ccc;
    padding: 12px 16px;
    background: rgba(0, 245, 255, 0.05);
    border: 1px solid rgba(0, 245, 255, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}
.magic-section li::before { content: "✦"; color: #00f5ff; font-size: 1.1rem; }
.magic-cta {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.05), rgba(37, 211, 102, 0.05));
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 16px;
    margin-top: 30px;
}
.magic-cta h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 20px;
}
.magic-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: #25D366;
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.5);
    transition: all 0.3s ease;
}
.magic-cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(37, 211, 102, 0.8);
}