body {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

h1,
h2 {
    text-align: center;
    margin-bottom: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    border-bottom: 1px solid #ddd;
    background-color: #f4f4f4;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #0077cc;
}

#sobre-mi p {
    max-width: 40rem;
    margin: 0 auto;
    line-height: 1.6;
}

#sobre-mi img {
    width: 20%;
    max-width: 200px;
    border-radius: 10px;
    display: block;
    margin: 20px auto;
}

#tarjetas {
    padding: 2.5rem;
    text-align: center;
    background-color: #f8f9fa;
}

.contenedor-tarjetas {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.tarjeta {
    width: 25%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.tarjeta img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    border-radius: 6px;
}

table {
    width: 100%;
    max-width: 50rem;
    border-collapse: collapse;
    margin: 20px auto;
}

th,
td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
}

th {
    background-color: #f4f4f4;
}

#contacto {
    padding: 40px;
    text-align: center;
}

.formulario-contacto {
    max-width: 400px;
    margin: auto;
}

.campo {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    text-align: left;
}

.campo label {
    margin-bottom: 5px;
    font-weight: 500;
}

.campo input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
}

button {
    padding: 10px;
    border: none;
    background-color: #333;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #555;
}

#peliculas {
    padding: 2.5rem;
    background-color: #f8f9fa;
}

.contenedor-peliculas {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.pelicula {
    width: 25%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pelicula:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.pelicula img {
    width: 100%;
    height: 28rem;
    object-fit: cover;
    border-radius: 6px;
}

footer {
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #ddd;
    background-color: #f4f4f4;
}

.redes {
    margin-top: 1rem;
}

.redes a {
    margin: 0 1rem;
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.redes a:hover {
    color: #0077cc;
}

@media (max-width: 768px) {

    header {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        gap: 0.8rem;
        margin-top: 1rem;
    }

    #sobre-mi p {
        text-align: center;
    }

    .contenedor-tarjetas {
        flex-direction: column;
        align-items: center;
    }

    .tarjeta {
        width: 90%;
    }

    .contenedor-peliculas {
        flex-direction: column;
        align-items: center;
    }

    .pelicula {
        width: 90%;
    }
}