.assistente-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.assistente-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.assistente-modal-box {
    position: relative;
    width: 90%;
    max-width: 750px;
    background: linear-gradient(135deg, #e60000 0%, #4d0000 100%);
    border-radius: 30px;
    padding: clamp(40px, 6vw, 60px) clamp(25px, 4vw, 50px);
    color: #ffffff;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transform: scale(0.95) translateY(20px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.assistente-modal-overlay.active .assistente-modal-box {
    transform: scale(1) translateY(0);
}

.assistente-modal-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 77, 77, 0.15) 0%, transparent 60%);
    animation: astRotateBg 15s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes astRotateBg {
    100% { transform: rotate(360deg); }
}

.assistente-close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    font-size: 1.8rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.assistente-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.assistente-step {
    display: none;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    animation: astFadeStep 0.5s ease forwards;
}

.assistente-step.active {
    display: flex;
}

@keyframes astFadeStep {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.ast-icon-glow {
    width: 80px;
    height: 80px;
    background: rgba(255, 77, 77, 0.15);
    color: #ff4d4d;
    font-size: 2.5rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    box-shadow: 0 0 30px rgba(255, 77, 77, 0.4);
    animation: astPulseIcon 2s infinite;
    border: 1px solid rgba(255, 77, 77, 0.3);
}

@keyframes astPulseIcon {
    0% { box-shadow: 0 0 30px rgba(255, 77, 77, 0.4); transform: scale(1); }
    50% { box-shadow: 0 0 50px rgba(255, 77, 77, 0.8); transform: scale(1.05); }
    100% { box-shadow: 0 0 30px rgba(255, 77, 77, 0.4); transform: scale(1); }
}

.assistente-step h2 {
    font-size: clamp(2.2rem, 3.5vw, 3rem);
    font-weight: 900;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.assistente-step h3 {
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    font-weight: 800;
    margin-bottom: 30px;
    line-height: 1.4;
}

.ast-subtitle {
    font-size: clamp(1.1rem, 1.5vw, 1.25rem);
    color: #ffe6e6;
    margin-bottom: 15px;
    line-height: 1.6;
}

.ast-thin {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    margin-bottom: 35px;
}

.ast-btn-start {
    background: #ff4d4d;
    color: #330000;
    border: none;
    padding: 16px 45px;
    font-size: 1.1rem;
    font-weight: 900;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 25px rgba(255, 77, 77, 0.4);
    transition: all 0.3s ease;
}

.ast-btn-start:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 77, 77, 0.6);
    background: #ffffff;
    color: #e60000;
}

.ast-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 600px;
}

.ast-option {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 20px 25px;
    border-radius: 16px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    backdrop-filter: blur(5px);
}

.ast-option:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ff4d4d;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.ast-loader {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.ast-loader i {
    font-size: 2.5rem;
    color: #ff4d4d;
    z-index: 2;
    animation: astGearSpin 3s linear infinite;
}

@keyframes astGearSpin {
    100% { transform: rotate(360deg); }
}

.ast-pulse-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #ff4d4d;
    animation: astRadarPulse 1.5s ease-out infinite;
}

@keyframes astRadarPulse {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

.ast-result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    width: 100%;
    margin: 30px 0;
}

.ast-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 35px 25px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.ideal-card {
    background: rgba(255, 77, 77, 0.1);
    border-color: rgba(255, 77, 77, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), inset 0 0 20px rgba(255, 77, 77, 0.1);
    transform: scale(1.05);
    z-index: 2;
}

.ideal-card:hover {
    transform: scale(1.08);
}

.alt-card:hover {
    transform: translateY(-5px);
}

.ast-badge-ideal, .ast-badge-alt {
    position: absolute;
    top: -15px;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.ast-badge-ideal {
    background: #ff4d4d;
    color: #330000;
    box-shadow: 0 5px 15px rgba(255, 77, 77, 0.4);
}

.ast-badge-alt {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.ast-card h4 {
    font-size: 1.8rem;
    font-weight: 900;
    margin: 10px 0 10px;
    color: #ffffff;
}

.ideal-card h4 {
    color: #ff4d4d;
}

.ast-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #ffe6e6;
    margin-bottom: 25px;
}

.ast-btn-contract {
    background: #ff4d4d;
    color: #330000;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    width: 100%;
}

.ast-btn-contract:hover {
    background: #ffffff;
    color: #e60000;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.ast-btn-alt {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    width: 100%;
}

.ast-btn-alt:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

.ast-btn-restart {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: none;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    transition: color 0.3s ease;
}

.ast-btn-restart:hover {
    color: #ffffff;
}

@media (max-width: 768px) {
    .ast-result-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 40px;
    }

    .ideal-card {
        transform: scale(1);
    }
    
    .ideal-card:hover {
        transform: translateY(-5px);
    }
}