/* ===============================================
   CALCULADORA MÓVIL - calculadora-mobile.css
   =============================================== */

/* MENÚ MÓVIL PARA CALCULADORA */
#newMobileHeaderCalc {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: #050A14;
    z-index: 9999;
    display: none;
}

#newMobileHeaderCalc .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
}

#newMobileHeaderCalc .logo-container img {
    height: 40px;
    width: auto;
}

#newMobileMenuBtnCalc {
    width: 30px;
    height: 25px;
    position: relative;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 10001;
}

#newMobileMenuBtnCalc span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #009DFF;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

#newMobileMenuBtnCalc span:nth-child(1) {
    top: 0px;
}

#newMobileMenuBtnCalc span:nth-child(2) {
    top: 10px;
}

#newMobileMenuBtnCalc span:nth-child(3) {
    top: 20px;
}

#newMobileMenuBtnCalc.open span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
    background: #ED267A;
}

#newMobileMenuBtnCalc.open span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

#newMobileMenuBtnCalc.open span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
    background: #ED267A;
}

#newMobileMenuPanelCalc {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 10, 20, 0.98);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#newMobileMenuPanelCalc.open {
    opacity: 1;
    visibility: visible;
}

#newMobileMenuPanelCalc ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

#newMobileMenuPanelCalc li {
    margin: 20px 0;
}

#newMobileMenuPanelCalc a {
    color: #fff;
    text-decoration: none;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s;
    display: inline-block;
}

#newMobileMenuPanelCalc a:hover,
#newMobileMenuPanelCalc a.active {
    color: #009DFF;
    background-color: rgba(0, 157, 255, 0.1);
}

#newMobileMenuPanelCalc .highlight-btn {
    background-color: rgba(237, 38, 122, 0.1);
    border: 1px solid #ED267A;
    color: #ED267A;
    border-radius: 30px;
    padding: 10px 25px;
}

#newMobileMenuPanelCalc .highlight-btn:hover {
    background-color: #ED267A;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(237, 38, 122, 0.3);
}

/* MOSTRAR MENÚ MÓVIL SOLO EN PANTALLAS PEQUEÑAS */
@media screen and (max-width: 992px) {
    #newMobileHeaderCalc {
        display: block;
    }

    /* Empujar contenido hacia abajo */
    body {
        padding-top: 70px;
    }

    /* Ocultar header original */
    .header,
    header:not(#newMobileHeaderCalc) {
        display: none !important;
    }
}

/* OCULTAR SCROLL CUANDO MENÚ ESTÁ ABIERTO */
body.menu-open {
    overflow: hidden;
}

/* ADAPTACIONES MÓVILES PARA TABLETS */
@media screen and (max-width: 992px) {
    /* HERO SECTION MÓVIL */
    .cyber-hero {
        padding: 80px 0 50px !important;
        min-height: auto !important;
    }
    
    .cyber-content-wrap {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 2rem !important;
    }
    
    .cyber-hero-content {
        max-width: 100% !important;
        order: 1 !important;
    }
    
    .cyber-hero-image {
        position: static !important;
        transform: none !important;
        width: 80% !important;
        max-width: 300px !important;
        margin: 0 auto !important;
        order: 2 !important;
    }
    
    .cyber-hero-title {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
    }
    
    .cyber-hero-title .accent {
        font-size: 2.3rem !important;
    }
    
    .cyber-hero-description {
        max-width: 100% !important;
        font-size: 1.1rem !important;
        margin-bottom: 2rem !important;
    }
}

/* ADAPTACIONES MÓVILES PRINCIPALES */
@media screen and (max-width: 768px) {
    /* CALCULADORA PRINCIPAL */
    .risk-calculator-container {
        max-width: 100% !important;
        padding: 15px !important;
        margin: 20px auto !important;
    }

    .calculator-header {
        text-align: center !important;
        margin-bottom: 20px !important;
    }

    .calculator-header h1 {
        font-size: 2rem !important;
        margin-bottom: 15px !important;
    }

    .calculator-header p {
        font-size: 1rem !important;
        padding: 0 10px !important;
        line-height: 1.5 !important;
    }

    /* BARRA DE PROGRESO MÓVIL */
    .progress-container {
        margin: 20px 0 15px !important;
        height: 6px !important;
    }

    .progress-indicator {
        font-size: 0.85rem !important;
        margin-top: 8px !important;
    }

    /* TARJETAS DE PREGUNTA MÓVIL */
    .question-card {
        padding: 20px 15px !important;
        margin-bottom: 15px !important;
        border-radius: 10px !important;
    }

    .question-number {
        font-size: 0.8rem !important;
        margin-bottom: 10px !important;
    }

    .question-text {
        font-size: 1.1rem !important;
        margin-bottom: 20px !important;
        line-height: 1.3 !important;
    }

    /* OPCIONES EN COLUMNA ÚNICA */
    .options-container {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .option-card {
        padding: 18px 15px !important;
        border-radius: 8px !important;
        margin-bottom: 10px !important;
    }

    .option-icon {
        font-size: 2rem !important;
        margin-bottom: 12px !important;
    }

    .option-text {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }

    /* BOTONES DE NAVEGACIÓN MÓVIL */
    .navigation-buttons {
        flex-direction: column !important;
        gap: 10px !important;
        margin-top: 20px !important;
    }

    .navigation-buttons .btn {
        width: 100% !important;
        padding: 14px !important;
        font-size: 1rem !important;
        border-radius: 8px !important;
    }

    /* RESULTADOS MÓVIL */
    .results-container {
        padding: 15px !important;
    }

    .result-header {
        margin-bottom: 25px !important;
        text-align: center !important;
    }

    .result-title {
        font-size: 1.8rem !important;
        margin-bottom: 10px !important;
    }

    .result-subtitle {
        font-size: 1rem !important;
        padding: 0 10px !important;
    }

    /* MEDIDOR DE RIESGO MÓVIL */
    .gauge-container {
        max-width: 300px !important;
        margin: 0 auto 40px !important;
    }

    .gauge-value {
        font-size: 2.2rem !important;
    }

    .risk-level {
        font-size: 1rem !important;
        padding: 6px 20px !important;
        bottom: -35px !important;
    }

    /* RECOMENDACIONES MÓVIL */
    .risk-overview {
        padding: 20px 15px !important;
        margin-bottom: 20px !important;
        border-radius: 10px !important;
    }

    .risk-overview h3 {
        font-size: 1.3rem !important;
        margin-bottom: 15px !important;
        text-align: center !important;
    }

    .recommendations-list {
        margin-bottom: 20px !important;
    }

    .recommendation-item {
        flex-direction: column !important;
        text-align: center !important;
        margin-bottom: 15px !important;
        padding-bottom: 15px !important;
    }

    .recommendation-icon {
        margin: 0 auto 10px !important;
        width: 35px !important;
        height: 35px !important;
    }

    .recommendation-text {
        text-align: center !important;
    }

    .recommendation-text h4 {
        font-size: 1rem !important;
        margin-bottom: 5px !important;
    }

    .recommendation-text p {
        font-size: 0.85rem !important;
        margin: 0 !important;
    }

    /* CTA MÓVIL */
    .cta-container {
        margin-top: 30px !important;
        text-align: center !important;
    }

    .cta-box {
        padding: 20px 15px !important;
        margin: 0 10px !important;
        border-radius: 10px !important;
    }

    .cta-title {
        font-size: 1.3rem !important;
        margin-bottom: 10px !important;
    }

    .cta-text {
        font-size: 0.9rem !important;
        margin-bottom: 15px !important;
        line-height: 1.4 !important;
    }

    .cta-box .btn {
        width: 100% !important;
        padding: 14px !important;
        font-size: 1rem !important;
        border-radius: 8px !important;
    }

    /* FOOTER MÓVIL */
    .footer-content {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 2rem !important;
    }
    
    .footer-social {
        justify-content: center !important;
    }
}

/* MÓVILES MUY PEQUEÑOS */
@media screen and (max-width: 480px) {
    .cyber-hero-title {
        font-size: 1.9rem !important;
    }
    
    .cyber-hero-title .accent {
        font-size: 1.7rem !important;
    }
    
    .cyber-hero-description {
        font-size: 1rem !important;
    }
    
    .calculator-header h1 {
        font-size: 1.8rem !important;
    }
    
    .question-text {
        font-size: 1rem !important;
    }
    
    .option-card {
        padding: 15px 12px !important;
    }
    
    .gauge-container {
        max-width: 250px !important;
    }
    
    .gauge-value {
        font-size: 2rem !important;
    }
    
    .risk-overview {
        padding: 15px 10px !important;
    }
    
    .cta-box {
        padding: 15px 10px !important;
    }
    
    .result-title {
        font-size: 1.5rem !important;
    }
    
    .risk-overview h3 {
        font-size: 1.2rem !important;
    }
}
