*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}

body{
    background:#d9d9d9;
}

/* HEADER */

header{
    width:100%;
    height:80px;
    background:#0b3e8f;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 70px;
}

.logo{
    display:flex;
    align-items:center;
    gap:15px;
}

.logo img{
    width:50px;
}

.texto-logo{
    display:flex;
    flex-direction:column;
}

.texto-logo h2{
    color:white;
    font-size:38px;
}

.texto-logo p{
    color:black;
    font-size:18px;
    font-weight:bold;
}

nav a{
    color:white;
    text-decoration:none;
    margin-left:30px;
    transition:.3s;
}

nav a:hover{
    color:#00C2FF;
}

/* PAGINA PRINCIPAL */

.inicio{
    width:100%;
    min-height:calc(100vh - 80px);
    background-image:url("img-fondo.png");
    background-repeat:no-repeat;
    background-position:right center;
    background-size:55%;
    display:flex;
    align-items:center;
    padding-left:80px;
}

.texto{
    width:40%;
}

.texto h1{
    font-size:50px;
    color:#0A1931;
    margin-bottom:20px;
}

.texto p{
    font-size:18px;
    line-height:30px;
    color:#555;
    margin-bottom:35px;
}

button{
    padding:15px 35px;
    border:none;
    border-radius:8px;
    cursor:pointer;
    font-size:17px;
    transition:.3s;
}

#login{
    background:#0b3e8f;
    color:white;
    margin-right:15px;
}

#registro{
    background:#00C2FF;
    color:white;
}

button:hover{
    transform:scale(1.05);
}

footer{
    background:#0A1931;
    color:white;
    text-align:center;
    padding:20px;
}

/* LOGIN Y REGISTRO */

.login-body{
    background:#eef3fa;
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:100vh;
}

.login-container{
    width:900px;
    display:flex;
    background:white;
    border-radius:15px;
    overflow:hidden;
    box-shadow:0 0 25px rgba(0,0,0,.2);
}

.login-left{
    width:40%;
    background:#0b3e8f;
    color:white;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    padding:40px;
    text-align:center;
}

.login-logo{
    width:120px;
    margin-bottom:20px;
}

.login-left h1{
    margin-bottom:20px;
}

.login-left p{
    line-height:28px;
}

.login-right{
    width:60%;
    display:flex;
    justify-content:center;
    align-items:center;
}

.login-right form{
    width:80%;
}

.login-right h2{
    color:#0b3e8f;
    margin-bottom:30px;
}

.login-right input{
    width:100%;
    padding:15px;
    margin-bottom:20px;
    border:1px solid #ccc;
    border-radius:8px;
    font-size:16px;
}

.login-right button{
    width:100%;
    background:#0b3e8f;
    color:white;
}

.enlace{
    text-align:center;
    margin-top:20px;
}

.enlace a{
    text-decoration:none;
    color:#0b3e8f;
    font-weight:bold;
}

.enlace a:hover{
    color:#00C2FF;
}

/* ========================= */
/* PANEL DE INICIO */
/* ========================= */

.dashboard-header{
    width:100%;
    height:80px;
    background:#0b3e8f;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 40px;
}

.dashboard{
    display:flex;
    min-height:calc(100vh - 80px);
}

.menu{
    width:250px;
    background:#0A1931;
    color:white;
    padding:30px 20px;
}

.menu h3{
    margin-bottom:25px;
    text-align:center;
}

.menu a{
    display:block;
    color:white;
    text-decoration:none;
    padding:15px;
    border-radius:8px;
    margin-bottom:10px;
    transition:.3s;
}

.menu a:hover{
    background:#0b3e8f;
}

.contenido{
    flex:1;
    background:#eef3fa;
    padding:40px;
}

.contenido h1{
    color:#0b3e8f;
    margin-bottom:15px;
}

.contenido p{
    color:#555;
    margin-bottom:30px;
}

.tarjetas{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    gap:25px;
    margin-bottom:40px;
}

.card{
    background:white;
    padding:30px;
    border-radius:12px;
    text-align:center;
    box-shadow:0 4px 10px rgba(0,0,0,.15);
}

.card h2{
    color:#0b3e8f;
    font-size:40px;
    margin-bottom:10px;
}

.card p{
    color:#555;
}

.actividad{
    background:white;
    padding:25px;
    border-radius:12px;
    box-shadow:0 4px 10px rgba(0,0,0,.15);
}

.actividad h2{
    color:#0b3e8f;
    margin-bottom:20px;
}

table{
    width:100%;
    border-collapse:collapse;
}

table th{
    background:#0b3e8f;
    color:white;
    padding:15px;
}

table td{
    padding:15px;
    border-bottom:1px solid #ddd;
}

table tr:hover{
    background:#f5f5f5;
}

#cerrarSesion{
    background:#dc3545;
    color:white;
    padding:12px 25px;
    border:none;
    border-radius:8px;
    cursor:pointer;
    transition:.3s;
}

#cerrarSesion:hover{
    background:#bb2d3b;
}

/* ========================= */
/* RESPONSIVE */
/* ========================= */

@media(max-width:900px){

header{
    flex-direction:column;
    height:auto;
    padding:20px;
}

nav{
    margin-top:20px;
}

.inicio{
    background:none;
    padding:40px;
    justify-content:center;
}

.texto{
    width:100%;
    text-align:center;
}

.dashboard{
    flex-direction:column;
}

.menu{
    width:100%;
}

.dashboard-header{
    flex-direction:column;
    height:auto;
    padding:20px;
}

.tarjetas{
    grid-template-columns:1fr;
}

.login-container{
    flex-direction:column;
    width:95%;
}

.login-left,
.login-right{
    width:100%;
}
}