body {
    background: #3C5E8D !important;
    padding: 20px;
    min-height: 100vh;
}

.main {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    min-height: 70vh;
}


.main img {
    height: 180px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.float {
    animation: float 3s ease-in-out infinite;
}


.title {
    font-family: "Anton SC", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 50px;
    margin: 0px;
}

.title-red {
    color: #FF3B3B;
    animation: pulse 2s ease-in-out infinite;
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}


.title-paragraph {
    font-family: "Raleway", sans-serif;
    font-weight: 500;
    line-height: 1.7;
    font-style: normal;
    color: rgba(255, 255, 255, 0.85);
    padding-bottom: 10px;
    padding: 10px 0;
    max-width: 600px;
    font-size: 17px;
    letter-spacing: 1px;
}

.title-cta {
    color: rgba(255, 255, 255, 0.85);
    background: #ef2133;
    text-transform: uppercase;
    border: none;
    border-radius: 50px;
    width: 90%;
    padding: 15px 35px;
    font-size: 1rem;
    letter-spacing: 1px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.title-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(239, 33, 51, 0.6);
}

.pantalla {
    display: none;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.pantalla.activa {
    display: block;
}

.input-container input {
    width: 90%;
    padding: 15px;
    font-family: "Raleway", sans-serif;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 1px;
    border: 2px solid #ddd;
    border-radius: 10px;
    transition: border-color 0.3s;
    margin-bottom: 20px;
}

.input-container input:focus {
    outline: none;
    border-color: #FF3B3B;
}


.contenedor-dark {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    min-height: 50vh;
    background: #212b35;
    color: #e1e8ed;
    border-radius: 20px;
}

.header-form {
    text-align: center;
    margin-bottom: 20px;
}

.header-form h1 {
    font-family: "Anton SC", sans-serif;
    font-size: 2.3rem;
    line-height: 50px;
    letter-spacing: 1px;
    color: #e1e8ed;
    margin-bottom: 20px;
}

.saludo {
    color: #8899a6;
    font-family: "Raleway", sans-serif;
    font-weight: 500;
    font-size: 1.2rem;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

.progreso-barra {
    width: 100%;
    height: 6px;
    background: #1a1f29;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0 10px 0;
}

.progreso-fill {
    height: 100%;
    background: linear-gradient(-225deg, #1D8FE1 0%, #2f6bff 48%, #625EB1 100%);
    transition: width 0.5s ease;
    width: 11.11%;
}

.pregunta-info {
    display: flex;
    text-align: center;
    line-height: 26px;
    justify-content: center;
    font-size: 1rem;
    font-family: "Raleway", sans-serif;
    font-weight: 500;
    letter-spacing: 1px;
    color: #8899a6;
}

.progreso-texto {
    text-align: center;
    color: #8899a6;
    font-size: 1.2rem;
    font-family: "Raleway", sans-serif;
    font-weight: 500;
    margin-top: 20px;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    font-size: 1.4rem;
    font-family: "Raleway", sans-serif;
    margin-bottom: 15px;
    letter-spacing: 1px;
    font-weight: 500;
    margin-bottom: 25px;
}

.input-dark {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    background: #1a1f29;
    border: 2px solid #2a2f3a;
    border-radius: 10px;
    color: #e1e8ed;
    font-family: "Raleway", sans-serif;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.input-dark:focus {
    outline: none;
    border-color: rgba(239, 33, 51, 0.3);
    ;
    background: #1f2430;
}

.input-dark::placeholder {
    color: #8899a6;
}

.btn-group {
    margin-top: 35px;
    display: flex !important;
    gap: 20px;
    vertical-align: middle !important;
    position: none !important;
}

.btn-opcion {
    flex: 1;
    padding: 12px 20px;
    font-size: 1.05rem;
    background: #1a1f29;
    border: 2px solid #414859;
    border-radius: 15px;
    color: #e1e8ed;
    cursor: pointer;
    font-family: "Raleway", sans-serif;
    font-weight: 500;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-opcion:hover {
    background: linear-gradient(-225deg, #1D8FE1 0%, #2f6bff 48%, #625EB1 100%);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(47, 107, 255, 0.35),
        0 2px 6px rgba(29, 143, 225, 0.3);
}

.btn {
    padding: 10px 30px !important;
    font-size: 1rem;
    border: none;
    background-color: #0f1117 !important;
    border: 2px solid #2a2f3a !important;
    color: #e1e8ed !important;
    border-radius: 20px !important;
    cursor: pointer;
    font-family: "Raleway", sans-serif;
    font-weight: 600;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:hover {
    background: linear-gradient(180deg, #151a25 0%, #1b2233 100%) !important;
    border-color: #3f6294 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(63, 98, 148, 0.3);
}

.navegacion-btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.btn-analizar.finalizar {
    border-color: #27c193 !important;
    color: #ffffff !important;
}

.btn-analizar.finalizar:hover {
    border-color: #1fa97a !important;
    box-shadow: 0 6px 14px rgba(39, 193, 147, 0.35);
    transform: translateY(-2px);
}


.resultado-card {
    background: #1a1f29;
    border-radius: 20px;
    padding: 40px;
    margin: 30px 0;
    border: 1px solid #2a2f3a;
}

.resultado {
    font-family: "Anton SC", sans-serif;
    font-size: 2.3rem;
    letter-spacing: 1px;
    color: #e1e8ed;
}

.empresa-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.empresa-icono {
    font-size: 2.1rem;
    line-height: 1;
    display: flex;
    align-items: center;
}

.empresa-header h2 {
    font-family: "Inter", sans-serif;
    font-size: 2.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #e1e8ed;
    margin: 0;
    line-height: 1;
    text-transform: capitalize;
}

.nivel-badge {
    text-align: center;
    padding: 22px 25px;
    border-radius: 18px;
    font-size: 1.4rem;
    text-transform: capitalize;
    font-weight: 700;
    margin: 40px 0 20px 0;
    letter-spacing: 1px;
    backdrop-filter: blur(6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.nivel-bajo {
    background: linear-gradient(135deg, rgba(39, 193, 147, 0.25), rgba(0, 186, 136, 0.15));
    color: #27c193;
    border: 2px solid rgba(39, 193, 147, 0.6);
    box-shadow: 0 0 18px rgba(39, 193, 147, 0.25);
}

.nivel-medio {
    background: linear-gradient(135deg, rgba(255, 193, 77, 0.25), rgba(255, 165, 0, 0.15));
    color: #ffc14d;
    border: 2px solid rgba(255, 193, 77, 0.7);
    box-shadow: 0 0 20px rgba(255, 193, 77, 0.25);
}

.nivel-alto {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.35), rgba(239, 33, 51, 0.2));
    color: #ff4757;
    border: 2px solid #ff4757;
    box-shadow: 0 0 25px rgba(255, 71, 87, 0.4);
}


.nivel-muy-alto {
    background: linear-gradient(135deg, rgba(239, 33, 51, 0.35), rgba(120, 10, 20, 0.4));
    color: #ff3b3b;
    border: 2px solid #ff3b3b;
    box-shadow: 0 0 35px rgba(239, 33, 51, 0.6);
    animation: pulse-danger 2s infinite;
}

.puntos-container {
    margin: 30px 0;
}

.puntos-numero {
    text-align: center;
    font-size: 3.5rem;
    font-family: "Inter", sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ef2133;
    margin-bottom: 18px;

}

.puntos-barra {
    width: 100%;
    height: 12px;
    background: #0f1419;
    border-radius: 10px;
    overflow: hidden;
}

.puntos-fill {
    height: 100%;
    background: linear-gradient(90deg, #27c193 0%, #00ba88 25%, #ffc14d 50%, #ff4757 75%, #ef2133 100%);
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.alertas-section h3 {
    font-size: 1.3rem;
    text-align: center;
    line-height: 30px;
    margin-bottom: 20px;
    color: #e1e8ed;
}

.alerta-item {
    padding: 15px 18px;
    margin: 12px 0;
    border-left: 5px solid transparent;
    background: rgba(15, 20, 25, 0.85);
    border-radius: 12px;
    font-size: 1rem;
    font-family: "Raleway", sans-serif;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.alerta-item:hover {
    transform: translateX(6px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

.alerta-critica {
    border-left-color: #ef2133;
    background: rgba(239, 33, 51, 0.12);
}

.alerta-alta {
    border-left-color: #ff4757;
    background: rgba(255, 71, 87, 0.12);
}


.alerta-media {
    border-left-color: #ffc14d;
    background: rgba(255, 193, 77, 0.12);
}

.alerta-baja {
    border-left-color: #27c193;
    background: rgba(39, 193, 147, 0.12);
}

.text-center {
    text-align: center;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.menu-card {
    appearance: none;
    -webkit-appearance: none;
    background: #1a1f29;
    border: 2px solid #2a2f3a;
    border-radius: 15px;
    padding: 30px;
    cursor: pointer;
    text-align: center;

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.menu-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(180deg, #151a25 0%, #1b2233 100%);
    border-color: #3f6294;
    box-shadow: 0 6px 14px rgba(63, 98, 148, 0.3);
    color: #ffffff;
}

.menu-icono {
    font-size: 3rem;
    margin-bottom: 15px;
}

.menu-card h3 {
    font-size: 1.3rem;
    color: #e1e8ed;
    margin-bottom: 10px;
}

.menu-card p {
    color: #8899a6;
    font-size: 0.95rem;
}

.mb-30 {
    margin-bottom: 30px;
}

.historial-grid {
    display: grid;
    gap: 22px;
    margin-top: 30px;
}

.analisis-card {
    background: #1a1f29;
    border-radius: 20px;
    padding: 25px;
    margin: 5px 0;
    border: 1px solid #2a2f3a
}

.analisis-card:hover {
    transform: translateY(-4px);
    border-color: #3f6294;
    box-shadow: 0 16px 35px rgba(63, 98, 148, 0.35);
}

.analisis-card::after {
    content: "→";
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.6rem;
    color: #8899a6;
    transition: all 0.3s ease;
}


.analisis-card:hover::after {
    transform: translateY(-50%) translateX(6px);
    color: #3f6294;
}

.analisis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.analisis-numero {
    font-family: "Anton SC", sans-serif;
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: #e1e8ed;
}

.analisis-fecha {
    font-size: 0.85rem;
    color: #8899a6;
}

.analisis-empresa {
    font-size: 1.6rem;
    font-weight: 600;
    color: #e1e8ed;
    margin: 12px 0 6px 0;
    text-transform: capitalize;
}

.analisis-puntos {
    font-size: 1.5rem;
    /* antes 2.4 */
    font-weight: 700;
    color: #ef2133;
    margin: 8px 0 4px 0;
}

.badge {
    display: inline-block;
    padding: 7px 18px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 10px;
    backdrop-filter: blur(4px);
}

.badge-bajo {
    background: rgba(39, 193, 147, 0.18);
    color: #27c193;
    border: 1px solid rgba(39, 193, 147, 0.5);
}

.badge-medio {
    background: rgba(255, 193, 77, 0.18);
    color: #ffc14d;
    border: 1px solid rgba(255, 193, 77, 0.6);
}

.badge-alto {
    background: rgba(255, 71, 87, 0.2);
    color: #ff4757;
    border: 1px solid rgba(255, 71, 87, 0.6);
}

.badge-muy-alto {
    background: rgba(239, 33, 51, 0.25);
    color: #ef2133;
    border: 1px solid rgba(239, 33, 51, 0.7);
}

.estadisticas {
    text-align: center;
    color: #8899a6;
    font-family: "Raleway", sans-serif;
    font-weight: 500;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.estadisticas p {
    margin: 14px 0;
    font-size: 1.1rem;
    color: #e1e8ed;
    letter-spacing: 0.5px;
}

.resumen-analisis {
    margin-bottom: 40px;
}

.resumen-total {
    color: #e1e8ed;
    font-family: "Raleway", sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.resumen-alerta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ff4757;
    font-family: "Raleway", sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.mt-30 {
    margin-top: 20px;
}

@keyframes pulse-danger {
    0% {
        box-shadow: 0 0 20px rgba(239, 33, 51, 0.4);
    }

    50% {
        box-shadow: 0 0 40px rgba(239, 33, 51, 0.8);
    }

    100% {
        box-shadow: 0 0 20px rgba(239, 33, 51, 0.4);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.swal2-popup {
    background: #1a1f29 !important;
    border: 1px solid #2a2f3a;
    border-radius: 22px;
    color: #e1e8ed;
    font-family: "Raleway", sans-serif;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
}

.swal2-title {
    font-family: "Anton SC", sans-serif;
    letter-spacing: 1px;
    color: #e1e8ed;
}

.swal2-html-container {
    color: #8899a6;
    font-size: 1.05rem;
    line-height: 1.6;
}

.swal2-icon.swal2-warning {
    border-color: #ef2133;
    color: #ef2133;
}

.swal2-confirm {
    color: rgba(255, 255, 255, 0.85);
    background: #ef2133;
    text-transform: uppercase;
    border: none;
    border-radius: 50px;
    width: 90%;
    padding: 12px 30px;
    font-size: 1rem;
    letter-spacing: 1px;
    font-weight: 600;
    font-family: "Raleway", sans-serif;
    cursor: pointer;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
    animation: pulse-danger 2s infinite;
}

.swal2-confirm:hover {
    background: #ff2e3f;
    transform: translateY(-3px);
    box-shadow:
        0 10px 25px rgba(239, 33, 51, 0.55),
        0 0 18px rgba(239, 33, 51, 0.35);
}

.swal2-cancel {
    font-size: 1rem;
    letter-spacing: 1px;
    font-weight: 600;
    font-family: "Raleway", sans-serif;
    width: 90%;
    text-transform: uppercase;
    background: #2a2f3a !important;
    color: #e1e8ed !important;
    border-radius: 999px !important;
    padding: 12px 30px !important;
    margin-bottom: 20px;
    cursor: pointer;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
    opacity: 0.9;
}

.swal2-cancel:hover {
    background: #323846 !important;
    transform: translateY(-3px); 
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
    opacity: 1;
}

.swal2-backdrop-show {
    backdrop-filter: blur(6px);
    background: rgba(15, 20, 25, 0.75) !important;
}


/*----- Responsive Moviles ------*/
@media (max-width: 571px) {

    .main img {
        height: 160px;
    }

    .no-show {
        display: none;
    }

    .form-group label {
        font-size: 1.2rem;
        display: flex;
        justify-content: center;
        line-height: 32px;
    }


    .navegacion-btns {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        margin-top: 30px !important;
        width: 100%;
    }

    .navegacion-btns .btn {
        padding: 13px 10px !important;
        font-size: 0.9rem !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 0 !important;
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
        text-align: center !important;
    }

    #btnAnterior,
    #btnSiguiente {
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    #btnAnterior::before,
    #btnAnterior::after,
    #btnSiguiente::before,
    #btnSiguiente::after {
        content: none !important;
        display: none !important;
    }

    #btnAnterior span,
    #btnSiguiente span,
    #flechaAnterior,
    #textoAnterior,
    #textoSiguiente,
    #flechaSiguiente {
        display: inline !important;
        line-height: 1 !important;
        vertical-align: middle !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        position: static !important;
    }

    #btnAnterior br,
    #btnSiguiente br {
        display: none !important;
    }


    .btn-group {
        gap: 20px;
    }

    .btn-opcion {
        padding: 12px 20px;
        font-size: 0.9rem;
        letter-spacing: 1px;
        white-space: nowrap;
    }

    .empresa-header {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 20px;
    }

    .empresa-icono {
        font-size: 1.8rem;
    }

    .empresa-header h2 {
        font-size: 1.8rem;
        text-align: center;
        letter-spacing: 0.5px;
    }

    .nivel-badge {
        font-size: 0.85rem;
        padding: 10px 12px;
        margin: 15px 0 12px 0;
        line-height: 1.3;
        text-align: center;
    }

    .puntos-numero {
        font-size: 2.4rem;
        margin-bottom: 12px;
    }

    .puntos-barra {
        height: 8px;
        margin-top: 8px;
    }

    .alertas-section h3 {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 12px;
    }

    .alerta-item {
        font-size: 0.9rem;
        padding: 12px 14px 12px 18px;
        margin-bottom: 10px;
        border-radius: 8px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .alerta-item:hover {
        transform: none;
        box-shadow: none;
    }

    .alerta-item strong {
        font-size: 0.8rem;
        opacity: 0.7;
    }

    .alerta-mensaje {
        font-size: 0.9rem;
        line-height: 1.6;
        word-wrap: break-word;
        flex: 1;
    }

    .alerta-item {
        font-size: 0.9rem;
        padding: 12px 14px 12px 22px;
        margin-bottom: 10px;
        border-radius: 8px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        display: block;
    }

    .alerta-puntos {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        font-size: 0.8rem;
        color: #8899a6;
        font-weight: 500;
        margin-top: 2px;
    }

    .analisis-numero {
        text-align: center;
        margin-bottom: 12px;
    }

    .analisis-header {
        text-align: center;
        flex-direction: column;
        gap: 5px;
        margin-bottom: 15px;
    }

    .analisis-card {
        display: flex;
        flex-direction: column;
        text-align: center;
        padding: 20px 16px;
        position: relative;
        overflow: hidden;
    }

    .analisis-empresa {
        text-align: center;
        font-size: 1.3rem;
        margin: 12px 0;
    }

    .analisis-puntos {
        text-align: center;
        font-size: 1.8rem;
        margin: 15px 0;
        color: #ef2133;
        font-weight: 700;
    }

    .badge {
        display: inline-block;
        padding: 7px 18px;
        border-radius: 999px;
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 1px;
        margin: 10px auto;
        backdrop-filter: blur(4px);
    }

    .analisis-card p {
        text-align: center;
        margin-top: 12px;
    }

    .btn {
        margin-bottom: 30px;
    }

    .analisis-n {
        text-align: center !important;
    }

    .analisis-f {
        text-align: center !important;
    }

}