/* Reset básico y tipografía global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif; /* Fuente importada de Google Fonts */
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    padding: 20px;
}

/* Estilos del header */
header {
    background: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Navegación */
nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
    background: #34495e;
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease; /* Transición suave */
}

nav a:hover {
    color: #f1c40f; /* Efecto hover */
}

/* Secciones generales */
section {
    background: #fff;
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

h2 {
    margin-bottom: 1rem;
    color: #2c3e50;
    border-left: 5px solid #f1c40f;
    padding-left: 0.8rem;
}

/* Sobre mí */
.sobre-mi-contenido {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap; /* Responsivo */
}

.sobre-mi-contenido img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

/* Tarjetas - Uso de Flexbox */
.tarjetas-container {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tarjeta {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    width: 300px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Transición animada */
}

.tarjeta:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.tarjeta img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
}

/* Lista de habilidades */
.lista-habilidades {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.lista-habilidades li {
    background: #2c3e50;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Formulario */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
}

input, button {
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}

button {
    background: #2c3e50;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease; /* Transición */
}

button:hover {
    background: #f1c40f;
    color: #2c3e50;
}

/* Películas favoritas */
.peliculas-container {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pelicula {
    background: #f4f4f4;
    border-radius: 8px;
    padding: 1rem;
    width: 200px;
    text-align: center;
}

.pelicula img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    background: #2c3e50;
    color: #fff;
    border-radius: 8px;
}

.redes-sociales a {
    color: #f1c40f;
    text-decoration: none;
    margin: 0 0.5rem;
}

.redes-sociales a:hover {
    text-decoration: underline;
}

/* Media Query para dispositivos móviles */
@media (max-width: 768px) {
    .sobre-mi-contenido {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}