html, body {
    margin: 0;
    padding: 0;
    background: white;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    height: 100%;
}

header {
    background: #e6e6e6;
    padding: 10px;
    text-align: center; 
}

header img {
    display: block;
}

.logo {
    text-align: left;
}

.logo img {
    max-width: 100px;
    width: 100%;
    height: auto;
}

nav a {
    margin: 0 10px;
    text-decoration: none;
    color: black;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
}

nav a:hover {
    color: blue;
    text-decoration: underline;
    cursor: pointer;
}

.titulo {
    text-align: center;
    padding: 20px;
}

.cards {
    width: 90%;
    margin: auto;
    text-align: center;
}

.card {
    width: 360px;
    display: inline-block;
    margin: 15px;
    background: #f2f2f2;
    border-radius: 10px;
    text-align: center;
    padding: 10px;
    vertical-align: top;
}

.card img {
    width: 320px;
    height: 450px;
    border-radius: 10px;
}

footer {
    background: #e6e6e6;
    padding: 15px;
    margin-top: 30px;
}

.footer-top {
    text-align: left;
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
}

footer a {
    color: black;
    text-decoration: none;
}

footer a:hover {
    color: blue;
    text-decoration: underline;
    cursor: pointer;
}

.perfil {
    width: 90%;
    margin: 40px auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.perfil img {
    width: 250px;
    border-radius: 10px;
}

.texto {
    flex: 1;
}

.contenedorMapa {
    width: 90%;
    margin: auto;
    text-align: center;
    padding: 20px 0;
}

.contenedorMapa iframe {
    width: 100%;
    height: 600px;
    border: 0;
    border-radius: 10px;
}

.mapa h2 {
    text-align: center;
    margin-bottom: 20px;
}

.contacto {
    width: 90%;
    margin: auto;
    padding: 20px 0;
}

.infoContacto {
    width: 45%;
    display: inline-block;
    vertical-align: top;
}

.formulario {
    width: 45%;
    display: inline-block;
    vertical-align: top;
    text-align: left;
    background: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #dcdcdc;
}

.contacto h2 {
    margin-top: 0;
}

.formulario input[type="text"], .formulario input[type="email"], .formulario textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-top: 5px;
    font-family: Arial, sans-serif;
}

.formulario textarea {
    height: 120px;
    resize: vertical;
}

.formulario input[type="submit"] {
    background: #3b6ef5;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.formulario input[type="submit"]:hover {
    background: #2f57c4;
}

.contenedorPeliculas {
    width: 90%;
    margin: auto;
    padding: 20px 0;
}

.peliculaPrincipal {
    width: 55%;
    display: inline-block;
    vertical-align: top;
    padding-right: 20px;
}

.peliculaPrincipal img {
    width: 100%;
    border-radius: 10px;
}

.peliculaPrincipal h2 {
    margin-top: 15px;
}

.peliculaPrincipal p {
    margin-bottom: 15px;
}

.peliculasSecundarias {
    width: 40%;
    display: inline-block;
    vertical-align: top;
}

.peliculaSecundaria {
    display: flex;
    margin-bottom: 20px;
}

.peliculaSecundaria img {
    width: 120px;
    height: auto;
    border-radius: 8px;
    margin-right: 10px;
}

.peliculaSecundaria h3 {
    margin: 0;
}

.peliculaSecundaria p {
    margin: 5px 0 10px 0;
}

.botonFicha {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 12px;
    background-color: #3b6ef5;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
}

.botonFicha:hover {
    background-color: #2f57c4;
    text-decoration: underline;
}

main {
    width: 90%;
    margin: auto;
    padding: 20px 0;
}

main h1 {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: 28px;
}

.descripcionPelicula {
    display: inline-block;
    width: 100%;
    margin-bottom: 30px;
}

.descripcionPelicula img {
    width: 260px;
    max-width: 100%;
    border-radius: 10px;
    margin-right: 20px;
    vertical-align: top;
    display: inline-block;
}

.descripcionPelicula div {
    display: inline-block;
    width: calc(100% - 300px);
    vertical-align: top;
}

.descripcionPelicula h2 {
    margin-top: 0;
}

.datosTecnicos, .mapaBarcelona, .localizaciones, .galeria, .trailer, .curiosidades, .recomendaciones {
    margin-bottom: 30px;
}

.datosTecnicos h2, .mapaBarcelona h2, .localizaciones h2, .galeria h2, .trailer h2, .curiosidades h2, .recomendaciones h2 {
    margin-bottom: 10px;
}

.datosTecnicos {
    width: 90%;
    margin: 30px auto;
}

.tablaDatosTecnicos {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

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

.tablaDatosTecnicos th {
    background: #e6e6e6;
    width: 25%;
}

.mapaBarcelona iframe, .trailer iframe {
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

.localizaciones .lugar {
    margin-bottom: 20px;
}

.localizaciones .lugar img {
    width: 450px;
    max-width: 100%;
    border-radius: 8px;
    display: block;
    margin: 10px 0;
}

.imagenesGaleria {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.imagenesGaleria img {
    border-radius: 8px;
    max-width: 100%;
}

.volverResultados {
    margin-top: 20px;
}

.volverResultados a {
    text-decoration: none;
    color: #3b6ef5;
}

.volverResultados a:hover {
    text-decoration: underline;
}

.mapaBarcelona {
    width: 90%;
    margin: 0 auto;
    text-align: center;
}

.trailer {
    width: 90%;
    margin: 0 auto;
    text-align: center;
}
