/* ==========================================================================
   PALETA DE COLORES MODO OSCURO (CINEMÁTICO)
   ========================================================================== */

/* Estilos generales */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121214; /* Fondo oscuro principal */
    color: #e1e1e6; /* Texto claro principal */
    margin: 0;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    color: #ffffff;
    margin-bottom: 24px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   ESTILOS DE LA TABLA (COMPONENTE PRINCIPAL)
   ========================================================================== */

/* Contenedor para hacer la tabla responsiva */
.tabla-contenedor {
    width: 100%;
    max-width: 800px;
    background-color: #1e1e24; /* Fondo de la tarjeta/tabla */
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    border: 1px solid #2e2e38;
}

/* Estilos de la tabla */
table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th, td {
    padding: 16px;
    border-bottom: 1px solid #2e2e38;
}

th {
    background-color: #0f0f12; /* Encabezado más oscuro */
    color: #00adb5; /* Azul neón para resaltar */
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* Color alternado para las filas */
tbody tr:nth-child(even) {
    background-color: #24242c;
}

/* Efecto al pasar el cursor */
tbody tr:hover {
    background-color: #2d2d38;
    transition: background-color 0.2s ease;
}

/* Estilo para las etiquetas de género */
.genero {
    background-color: rgba(0, 173, 181, 0.15); /* Fondo sutil azul neón */
    color: #00adb5;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

/* ==========================================================================
   NAVEGACIÓN Y DETALLE (SEGUNDA PÁGINA)
   ========================================================================== */

/* Estilo para el enlace en la tabla */
.enlace-pelicula {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
}

.enlace-pelicula:hover {
    color: #00adb5;
    text-decoration: underline;
}

/* Tarjeta contenedora del detalle */
.tarjeta-detalle {
    background-color: #1e1e24;
    max-width: 700px;
    width: 100%;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    margin-top: 20px;
    border: 1px solid #2e2e38;
}

.titulo-pelicula {
    margin: 16px 0 8px 0;
    color: #ffffff;
    font-size: 32px;
}

.anio-subtitulo {
    font-size: 20px;
    color: #8f8f9d;
    font-weight: 400;
}

.meta-info {
    margin-bottom: 24px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.director-tag {
    color: #8f8f9d;
    font-size: 14px;
    font-weight: 500;
}

.sinopsis {
    font-size: 16px;
    line-height: 1.6;
    color: #c9c9d4;
}

/* Botón para regresar */
.boton-volver {
    display: inline-block;
    color: #8f8f9d;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.boton-volver:hover {
    color: #00adb5;
}

/* ==========================================================================
   PANTALLA DE LOGIN
   ========================================================================== */

.tarjeta-login {
    background-color: #1e1e24;
    max-width: 400px;
    width: 100%;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    text-align: center;
    margin-top: 10%;
    border: 1px solid #2e2e38;
}

.tarjeta-login h2 {
    color: #ffffff;
    margin-top: 0;
}

.instrucciones {
    color: #8f8f9d;
    font-size: 14px;
    margin-bottom: 24px;
}

.grupo-input {
    margin-bottom: 20px;
}

.grupo-input input {
    width: 100%;
    padding: 12px;
    background-color: #121214;
    border: 1px solid #3e3e4a;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    color: #ffffff;
}

/* Foco en el input al escribir */
.grupo-input input:focus {
    outline: none;
    border-color: #00adb5;
}

.boton-login {
    width: 100%;
    background-color: #00adb5;
    color: #121214;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.boton-login:hover {
    background-color: #00c2cb;
}

.boton-login:active {
    transform: scale(0.98);
}

/* Manejo del mensaje de error */
.error-oculto {
    display: none;
}

.error-visible {
    display: block;
    color: #ff6b6b;
    font-size: 14px;
    margin-top: 16px;
    font-weight: 500;
}