/* ===========================
   RESET GENERAL
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Segoe UI', sans-serif;
}


body{
    background-color:#d1d5db;
    overflow-x:hidden;
}



/* ===========================
   NAVBAR
=========================== */


.navbar{

    background-color:#0f172a;

    display:flex;

    flex-direction:column;

    width:100%;

}



.nav-top{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:25px 50px;

    width:100%;

}



.nav-brand{

    display:flex;

    align-items:center;

    gap:15px;

}



.logo{

    width:130px;

    max-width:100%;

    border-radius:8px;

    border:2px solid #f59e0b;

}



.brand-text{

    display:flex;

    flex-direction:column;

    justify-content:center;

}



.brand-text h1{

    font-size:3.4rem;

    color:#f59e0b;

    line-height:1;

    font-weight:900;

    letter-spacing:.8px;

}



.brand-text p{

    font-size:1.8rem;

    color:white;

    margin-top:7px;

}



/* ===========================
   BOTON LOGIN
=========================== */


.header-right{

    display:flex;

    align-items:center;

    gap:20px;

}



.btn-login{

    background-color:#f59e0b;

    color:#0f172a;

    padding:10px 25px;

    border-radius:8px;

    border:2px solid #f59e0b;

    cursor:pointer;

    font-weight:800;

    transition:.3s;

}



.btn-login:hover{

    background-color:#d97706;

    color:white;

    transform:translateY(-2px);

}



.user-welcome{

    color:white;

    font-size:1.3rem;

    font-weight:500;

}



/* ===========================
   MENU
=========================== */


.nav-links{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:130px;

    padding:18px;

    background:white;

    width:100%;

}



.nav-links a{

    color:#0f172a;

    text-decoration:none;

    font-weight:bold;

    font-size:1.5rem;

    transition:.3s;

}



.nav-links a:hover{

    color:#f59e0b;

}



/* ===========================
   HERO
=========================== */


.hero{

    background:#d1d5db;

    padding:20px 0;

    text-align:center;

}



.hero h1{

    font-size:2.5rem;

    color:#0f172a;

    margin-bottom:10px;

}



.hero p{

    color:#64748b;

    margin-bottom:30px;

}



/* ===========================
   SLIDER
=========================== */


.slider{

    width:90%;

    max-width:1000px;

    height:220px;

    margin:20px auto;

    overflow:hidden;

    border-radius:15px;

}



.slides{

    display:flex;

    width:max-content;

    animation:slide-animation 20s infinite linear;

}



.slide{

    width:400px;

    flex-shrink:0;

}



.slide img{

    width:400px;

    height:220px;

    object-fit:cover;

}



/* ===========================
   ANIMACIÓN SLIDER
=========================== */


@keyframes slide-animation{


    0%{

        margin-left:0;

    }


    15%{

        margin-left:0;

    }


    20%{

        margin-left:-400px;

    }


    35%{

        margin-left:-400px;

    }


    40%{

        margin-left:-800px;

    }


    55%{

        margin-left:-800px;

    }


    60%{

        margin-left:-1200px;

    }


    75%{

        margin-left:-1200px;

    }


    80%{

        margin-left:-1600px;

    }


    95%{

        margin-left:-1600px;

    }


    100%{

        margin-left:0;

    }

}
/* ===========================
   MODAL LOGIN
=========================== */


.modal{

    display:none;

    position:fixed;

    z-index:1000;

    left:0;

    top:0;

    width:100%;

    height:100%;

    background-color:rgba(0,0,0,.4);

    backdrop-filter:blur(5px);

    -webkit-backdrop-filter:blur(5px);

    justify-content:center;

    align-items:center;

}



.modal-content{

    background:white;

    width:90%;

    max-width:750px;

    display:flex;

    border-radius:15px;

    overflow:hidden;

    position:relative;

    box-shadow:0 10px 30px rgba(0,0,0,.3);

}



.modal-left{

    width:40%;

    padding:30px;

    background:#0f172a;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    text-align:center;

    color:white;

}



.modal-right{

    width:60%;

    padding:40px;

    background:white;

}



.close-modal{

    position:absolute;

    top:15px;

    right:20px;

    cursor:pointer;

    font-size:25px;

    color:#d1d5db;

}



.modal-logo-side{

    width:120px;

    margin-bottom:20px;

    border-radius:10px;

}



.input-group{

    margin-bottom:20px;

}



.input-group label{

    display:block;

    color:#475569;

    margin-bottom:5px;

    font-weight:600;

}



.input-modal{

    width:100%;

    padding:12px;

    border:2px solid #e2e8f0;

    border-radius:8px;

    font-size:1rem;

}



.input-modal:focus{

    outline:none;

    border-color:#d97706;

}



.btn-modal{

    width:100%;

    padding:14px;

    background:#d97706;

    color:white;

    border:none;

    border-radius:8px;

    font-weight:bold;

    cursor:pointer;

}



.btn-modal:hover{

    background:#b45309;

}



.recuperar-link{

    display:block;

    text-align:center;

    margin-top:15px;

    color:#64748b;

    text-decoration:none;

}



.recuperar-link:hover{

    color:#d97706;

}



/* ===========================
   FOOTER
=========================== */


footer{

    background:#0f172a;

    color:white;

    padding:50px 20px;

    margin-top:60px;

}



.footer-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));

    gap:40px;

    text-align:center;

    max-width:1200px;

    margin:auto;

}



.footer-grid h3{

    color:#f59e0b;

    margin-bottom:15px;

}



.footer-grid p{

    color:#cbd5e1;

    line-height:1.6;

}



.footer-bottom{

    text-align:center;

    color:#d1d5db;

    margin-top:40px;

    padding-top:20px;

    border-top:1px solid #334155;

}



/* ===========================
   RESPONSIVE TABLET Y CELULAR
=========================== */


@media(max-width:768px){


    body{

        overflow-x:hidden;

    }



    /* HEADER */

    .nav-top{

        flex-direction:column;

        padding:20px;

        gap:20px;

        text-align:center;

    }



    .nav-brand{

        flex-direction:column;

    }



    .logo{

        width:90px;

    }



    .brand-text h1{

        font-size:2rem;

    }



    .brand-text p{

        font-size:1.1rem;

    }



    .header-right{

        flex-direction:column;

        gap:15px;

    }




    /* MENU */

    .nav-links{

        flex-direction:column;

        gap:15px;

        padding:20px;

    }



    .nav-links a{

        font-size:1.1rem;

    }




    /* HERO */

    .hero h1{

        font-size:2rem;

    }




    /* SLIDER */

    .slider{

        width:95%;

        height:180px;

    }


    .slide{

        width:100vw;

    }


    .slide img{

        width:100vw;

        height:180px;

    }


    /* MODAL */

    .modal-content{

        flex-direction:column;

        width:90%;

    }



    .modal-left{

        width:100%;

        padding:25px;

    }



    .modal-right{

        width:100%;

        padding:25px;

    }



    .modal-logo-side{

        width:90px;

    }




    /* FOOTER */

    footer{

        padding:35px 15px;

    }



    .footer-grid{

        grid-template-columns:1fr;

        gap:25px;

    }

}



/* CELULARES PEQUEÑOS */

@media(max-width:480px){


    .brand-text h1{

        font-size:1.7rem;

    }



    .btn-login{

        width:150px;

    }



    .hero h1{

        font-size:1.6rem;

    }



    .hero p{

        font-size:.9rem;

    }



}