/*=== CDL PRACTICE TEST - INICIO.CSS ===*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

:root {
    --azul: #0b4f9f;
    --azul2: #1565c0;
    --amarillo: #ffc107;
    --blanco: #fff;
    --gris: #dcdcdc;
    --negro: #101010;
    --overlay: rgba(0,0,0,.58);
    --glass: rgba(255,255,255,.12);
    --radio: 18px;
    --sombra: 0 20px 45px rgba(0,0,0,.35);
    --transicion: .35s;
    --ancho: 1300px
}

html {
    scroll-behavior: smooth
}

body {
    font-family: Poppins,sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden
}

a, button, input, select, .card, .login-card, .top-menu button, #btnComenzar {
    transition: all .35s ease
}

button, input, select {
    font-family: Poppins,sans-serif
}

    input:focus, select:focus {
        transform: scale(1.01)
    }

::selection {
    background: var(--amarillo);
    color: #000
}

/*=== HERO & HEADER ===*/
.hero {
    width: 100%;
    min-height: 100vh;
    position: relative;
    background: url("../SimuladorCDLImagen/Freightliner.jpg") center no-repeat;
    display: flex;
    flex-direction: column
}

.overlay {
    position: absolute;
    inset: 0;
    background: var(--overlay);
    backdrop-filter: blur(2px)
}

header {
    width: 100%;
    max-width: var(--ancho);
    margin: auto;
    padding: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10
}

.logo {
    display: flex;
    align-items: center;
    gap: 18px
}

    .logo i {
        font-size: 50px;
        color: var(--amarillo)
    }

    .logo h1 {
        font-size: 34px;
        font-weight: 800;
        letter-spacing: 2px
    }

    .logo span {
        font-size: 15px;
        color: #ddd;
        letter-spacing: 3px
    }

.top-menu {
    display: flex;
    gap: 15px
}

    .top-menu button {
        padding: 12px 24px;
        border: none;
        border-radius: 40px;
        background: rgba(255,255,255,.15);
        color: #fff;
        cursor: pointer;
        font-size: 15px;
        backdrop-filter: blur(10px)
    }

        .top-menu button:hover {
            background: var(--azul)
        }

/*=== HERO BODY & IZQUIERDA ===*/
.hero-body {
    width: 100%;
    max-width: var(--ancho);
    margin: auto;
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 450px;
    align-items: center;
    gap: 60px;
    flex: 1;
    position: relative;
    z-index: 5
}

.hero-left {
    animation: fadeLeft 1s ease
}

    .hero-left h2 {
        font-size: 72px;
        line-height: 82px;
        font-weight: 800;
        margin-bottom: 30px
    }

    .hero-left span {
        color: var(--amarillo)
    }

    .hero-left p {
        font-size: 22px;
        color: #ececec;
        line-height: 40px;
        max-width: 650px
    }

/*=== LOGIN CARD & CAMPOS ===*/
.login-card {
    width: 100%;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 22px;
    padding: 40px;
    box-shadow: var(--sombra);
    animation: fadeRight 1s ease
}

    .login-card h2 {
        font-size: 34px;
        font-weight: 700;
        margin-bottom: 10px;
        text-align: center
    }

    .login-card p {
        color: #e8e8e8;
        text-align: center;
        margin-bottom: 25px;
        line-height: 28px
    }

    .login-card hr {
        border: none;
        height: 1px;
        background: rgba(255,255,255,.2);
        margin-bottom: 25px
    }

.campo {
    display: flex;
    align-items: center;
    margin-bottom: 22px;
    background: rgba(255,255,255,.12);
    border-radius: 14px;
    padding: 0 18px;
    border: 1px solid transparent
}

    .campo:hover {
        border-color: var(--amarillo)
    }

    .campo i {
        width: 30px;
        font-size: 20px;
        color: var(--amarillo)
    }

    .campo input, .campo select {
        width: 100%;
        height: 55px;
        border: none;
        background: none;
        outline: none;
        color: #fff;
        font-size: 16px
    }

        .campo input::placeholder {
            color: #ddd
        }

    .campo select {
        cursor: pointer
    }

        .campo select option {
            color: #111
        }

/*=== BOTÓN & SEGURIDAD ===*/
#btnComenzar {
    width: 100%;
    height: 60px;
    margin-top: 10px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(90deg,var(--azul),var(--azul2));
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 1px
}

    #btnComenzar i {
        margin-right: 10px
    }

    #btnComenzar:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 30px rgba(0,0,0,.35)
    }

.secure {
    margin-top: 25px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #e8e8e8;
    font-size: 14px;
    line-height: 24px
}

    .secure i {
        color: #5ce65c;
        margin-top: 3px
    }

/*=== FEATURES & FOOTER ===*/
.features {
    width: 100%;
    background: #f5f7fa;
    color: #222;
    padding: 70px 40px;
    animation: aparecer .8s ease
}

.features-container {
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 30px
}

.card {
    background: #fff;
    border-radius: 18px;
    padding: 35px;
    box-shadow: 0 15px 30px rgba(0,0,0,.08);
    text-align: center
}

    .card:hover {
        transform: translateY(-10px)
    }

    .card i {
        font-size: 55px;
        color: var(--azul);
        margin-bottom: 20px
    }

    .card h3 {
        margin-bottom: 15px;
        font-size: 22px
    }

    .card p {
        color: #666;
        line-height: 28px
    }

    .card:nth-child(1) {
        animation: aparecer .8s ease
    }

    .card:nth-child(2) {
        animation: aparecer 1s ease
    }

    .card:nth-child(3) {
        animation: aparecer 1.2s ease
    }

    .card:nth-child(4) {
        animation: aparecer 1.4s ease
    }

footer {
    background: #08192c;
    color: #fff;
    text-align: center;
    padding: 35px
}

    footer h3 {
        margin-bottom: 10px
    }

    footer p {
        color: #bbb;
        line-height: 28px
    }

    footer a {
        color: var(--amarillo);
        text-decoration: none
    }

        footer a:hover {
            text-decoration: underline
        }

/*=== SCROLLBAR & ANIMACIONES ===*/
::-webkit-scrollbar {
    width: 10px
}

::-webkit-scrollbar-track {
    background: #111
}

::-webkit-scrollbar-thumb {
    background: var(--azul);
    border-radius: 20px
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--amarillo)
    }

@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(-70px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

@keyframes fadeRight {
    from {
        opacity: 0;
        transform: translateX(70px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(40px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes popupEntrada {
    from {
        opacity: 0;
        transform: scale(.9) translateY(10px)
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0)
    }
}

/*=== POPUP VALIDACIÓN ===*/
#popupValidacion {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 2147483647 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    margin: 0 !important;
    background: rgba(0,0,0,.72) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important
}

    #popupValidacion .popup-validacion {
        position: relative !important;
        display: block !important;
        width: min(420px,100%) !important;
        margin: 0 !important;
        padding: 30px !important;
        border: 1px solid rgba(255,255,255,.2) !important;
        border-radius: 20px !important;
        background: rgba(255,255,255,.98) !important;
        box-shadow: 0 25px 70px rgba(0,0,0,.55) !important;
        text-align: center !important;
        color: #222 !important;
        animation: popupEntrada .25s ease !important
    }

    #popupValidacion .popup-icono {
        width: 65px !important;
        height: 65px !important;
        margin: 0 auto 18px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 30px !important
    }

        #popupValidacion .popup-icono.warning {
            background: #fff3cd !important;
            color: #d39e00 !important
        }

        #popupValidacion .popup-icono.success {
            background: #d1e7dd !important;
            color: #198754 !important
        }

    #popupValidacion .popup-validacion h2 {
        margin: 0 0 12px !important;
        color: #222 !important;
        font-size: 23px !important;
        font-weight: 700 !important
    }

    #popupValidacion .popup-validacion p {
        margin: 0 auto 25px !important;
        color: #555 !important;
        font-size: 15px !important;
        line-height: 1.6 !important
    }

    #popupValidacion .popup-validacion button {
        min-width: 120px !important;
        padding: 11px 25px !important;
        border: 0 !important;
        border-radius: 10px !important;
        background: linear-gradient(90deg,var(--azul),var(--azul2)) !important;
        color: #fff !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        cursor: pointer !important;
        transition: .25s !important
    }

        #popupValidacion .popup-validacion button:hover {
            transform: translateY(-2px) !important;
            box-shadow: 0 8px 20px rgba(0,0,0,.25) !important
        }

/*=== MEDIA QUERIES ===*/
@media(max-width:1100px) {
    .hero-body {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center
    }

    .hero-left {
        order: 2
    }

        .hero-left h2 {
            font-size: 55px;
            line-height: 65px
        }

        .hero-left p {
            margin: auto
        }

    .login-card {
        max-width: 550px;
        margin: auto;
        order: 1
    }

    .features-container {
        grid-template-columns: repeat(2,1fr)
    }
}

@media(max-width:768px) {
    header {
        flex-direction: column;
        gap: 20px;
        text-align: center
    }

    .top-menu {
        flex-wrap: wrap;
        justify-content: center
    }

    .hero {
        min-height: auto
    }

    .hero-body {
        padding: 25px
    }

    .hero-left h2 {
        font-size: 42px;
        line-height: 50px
    }

    .hero-left p, .card p {
        font-size: 15px
    }

    .hero-left p {
        line-height: 32px
    }

    .login-card {
        padding: 30px
    }

        .login-card h2 {
            font-size: 28px
        }

    .features {
        padding: 50px 20px
    }

    .features-container {
        grid-template-columns: 1fr
    }

    .card, footer {
        padding: 25px
    }

        .card h3 {
            font-size: 20px
        }
}

@media(max-width:480px) {
    .logo h1 {
        font-size: 26px
    }

    .logo span {
        font-size: 12px
    }

    .hero-left h2 {
        font-size: 34px;
        line-height: 42px
    }

    .hero-left p {
        font-size: 16px
    }

    .login-card {
        padding: 22px
    }

    #btnComenzar {
        height: 55px;
        font-size: 16px
    }

    .campo input, .campo select, .popup-validacion button {
        font-size: 15px
    }

    .popup-validacion {
        padding: 25px 20px
    }

        .popup-validacion h2 {
            font-size: 20px
        }

        .popup-validacion p {
            font-size: 14px
        }
}
