/* General */
body {
    background-color: #121212;
    color: #ffffff;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    min-width: 400px; /* Garantiza que el ancho mínimo sea de 400px */
}

/* Encabezado */
header {
    background-color: #1f1f1f;
    padding: 5px 10px;
    display: flex;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.logo h1 {
    text-align: center;
    font-size: 3em;
    color: #e50914;
    font-weight: bold;
}

a {
    text-decoration: none; /* Elimina el subrayado de todos los enlaces */
}

/* Menú */
.menu {
    list-style: none;
    display: flex;
    width: 100%;
    padding-left: 0px;
}

.menu li {
    margin: 0 10px;
}

.menu-link {
    text-decoration: none;
    color: white;
    font-size: 16px;
    text-transform: uppercase;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.menu-link:hover {
    color: #e50914;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

/* Buscador */
.buscador {
    text-align: center;
    margin: 20px 0;
}

.buscador input {
    padding: 10px;
    width: 17%;
    border: 1px solid #e50914;
    border-radius: 5px;
    background-color: #1f1f1f;
    color: #ffffff;
    font-size: 1em;
}

/* Contenedor de tarjetas */
.peliculas, .top, .novedades {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px 0;
}

/* Tarjetas de película */
.tarjeta {
    background-color: #1f1f1f;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    width: 225px;
    text-align: center;
    transition: transform 0.3s;
}

.tarjeta:hover {
    transform: scale(1.05);
}

.tarjeta img {
    width: 100%;
    height: 330px;
    object-fit: cover;
}

.tarjeta h3 {
    margin: 10px 0;
    color: #b20810;
}

/* Página de detalles */
.detalles-pelicula {
    margin: 20px;
    padding: 20px;
    background: linear-gradient(145deg, #202020, #181818); /* Fondo con degradado */
    border-radius: 15px;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.7);
    color: #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detalles-header {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: left;
    align-items: flex-start;
}

.detalles-header img {
    width: 300px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.4);
}

.detalles-header .informacion {
    max-width: 600px;
}

.detalles-header h1 {
    margin-top: auto;
    text-align: left;
    font-size: 2em;
    color: #e50914;
    margin-bottom: 10px;
}

.detalles-header p {
    margin: 10px 0;
    font-size: 1em;
}

.informacion {
    padding: 20px;
    background-color: rgba(30, 30, 30, 0.9);
    border-radius: 10px;
    border: 1px solid #e50914;
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.5);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 10px;
}

.informacion h1 {
    font-size: 2em;
    color: #e50914;
    margin-bottom: 15px;
}

.informacion p {
    margin: 10px 0;
    font-size: 1em;
    color: #cccccc;
}

.informacion .btn-trailer {
    margin-top: 5px;
    margin-left: 40%;
    width: 20%;
    padding: 10px 0;
    text-align: center;
}

.btn-regresar {
    margin-left: 11%;
    display: inline-flex;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #e50914;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn-regresar:hover {
    background-color: #b20810;
}

/* Estilos para el modal de trailer */
.modal {
    display: none; /* Ocultar por defecto */
    position: fixed;
    z-index: 1; /* Asegurarse de que esté por encima de otros elementos */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fondo oscuro */
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-contenido {
    position: relative;
    background-color: #333;
    border-radius: 10px;
    padding: 10px;
    max-width: 100%; /* Tamaño máximo */
    width: 810px; /* Ancho fijo para el reproductor */
    margin: auto;
    text-align: center;
}

.cerrar {
    position: absolute;
    top: 5px;
    right: 15px;
    color: #e50914;
    font-size: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.btn-trailer {
    padding: 10px 20px;
    background-color: #e50914;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.btn-trailer:hover {
    background-color: #b20810;
}

/* Formulario de contacto */
.formulario-contacto h2 {
    text-align: center;
    padding: 10px;
}

.formulario-contacto form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    margin: 20px auto;
}

.formulario-contacto form input,
.formulario-contacto form textarea, .formulario-contacto form button {
    padding: 10px;
    border: none;
    border-radius: 5px;
}

.formulario-contacto form button {
    background-color: #e50914;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
}

/* Scroll to Top */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #333;
    color: #e50914;
    border: none;
    border-radius: 16%;
    padding: 15px;
    font-size: 35px;
    cursor: pointer;
    display: none; /* Inicialmente oculto */
    transition: opacity 0.3s ease;
}

.scroll-to-top:hover {
    background-color: #555;
}

/* Pie de página */
footer {
    background-color: #1f1f1f;
    text-align: center;
    padding: 10px 0;
    color: #d3d3d3;
    font-size: 0.9em;
}
