/*google fonts*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* general*/

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: 'Poppins', sans-serif;
    background: #f0f2f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: #333;
}

/* nav*/

nav{
    position: fixed;
    top: 20px;
    left: 20px;
}

nav a{
    text-decoration: none;
    background: white;
    color: #2c3e50;
    padding: 12px 18px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: 0.3s;
}

nav a:hover{
    background: #3498db;
    color: white;
}

/* tarjeta*/

.tarjeta{
    background: white;
    width: 100%;
    max-width: 550px;
    padding: 35px;
    border-radius: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    text-align: center;
    transition: 0.4s;
}

/* EFECTO HOVER */

.tarjeta:hover{
    transform: translateY(-5px);
}

/* fotos*/

.tarjeta img{
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #3498db;
    margin-bottom: 20px;
}

/* títulos*/

.tarjeta h1{
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 2.2rem;
}

.tarjeta h2{
    color: #3498db;
    margin-bottom: 12px;
    font-size: 1.3rem;
}

/* bloques*/

.bloque{
    background: #f8fafc;
    margin-top: 25px;
    padding: 20px;
    border-radius: 15px;
    text-align: left;
}

.bloque ul,
.bloque ol{
    margin-left: 20px;
}

.bloque li{
    margin-bottom: 8px;
}

/* botones*/

.botones{
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

button{
    padding: 12px 18px;
    border: none;
    border-radius: 30px;
    background: #3498db;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

button:hover{
    background: #2c3e50;
    transform: scale(1.05);
}

/*Tema oscuro*/

.dark-mode{
    background: #1e293b;
    color: white;
}

.dark-mode .bloque{
    background: #334155;
}

.dark-mode h1,
.dark-mode h2,
.dark-mode p,
.dark-mode li{
    color: white;
}

/* Responsive*/

@media (max-width: 400px){

    body{
        padding: 20px;
    }

    .tarjeta{
        padding: 25px;
    }

    .tarjeta h1{
        font-size: 1.7rem;
    }

    .tarjeta img{
        width: 120px;
        height: 120px;
    }

    .botones{
        flex-direction: column;
    }

}