/* Estilos para el título y las pestañas */
#titulo-peliculas {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 32px 0 0 40px; /* Alinea a la izquierda */
    justify-content: flex-start;
    width: 100%;
}

#titulo-peliculas h1 {
    font-size: 3em;
    font-weight: bold;
    color: #003d82;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

#peliculas-tabs {
    display: flex;
    gap: 32px;
    margin-left: 32px;
}

#peliculas-tabs button {
    background: none;
    border: none;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    color: #003d82;
    border-bottom: 3px solid #dc1e35;
    padding: 0 0 8px 0;
}

#peliculas-tabs button.inactive {
    font-weight: normal;
    color: #222;
    border-bottom: 3px solid transparent;
}

/* Línea divisoria más gruesa y larga */
.linea-divisoria {
    margin: 24px 0 0 0;
    border: 0;
    border-top: 2px solid #e8e8e8;
    width: 100%; /* Solo el ancho del contenedor */
    position: static;
    left: unset;
    right: unset;
    transform: none;
}

/* Estilos para el contenedor principal */
body, html {
    height: 100%;
    margin: 0;
    padding: 0;
}
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%; /* Cambiado de 100vw a 100% para evitar scroll horizontal */
    box-sizing: border-box;
}
.contenedor-central {
    max-width: 1100px; /* Menos ancho */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 100vh;
    width: 100%;
}
#contenedor-principal {
    display: flex;
    gap: 0;
    width: 100%;
    min-height: 600px;
    justify-content: flex-start;
    align-items: flex-start;
}
aside {
    width: 280px;
    background: #fff;
    border-right: 2px solid #e8e8e8;
    min-height: 100%;
    align-self: stretch; /* Cambiado de flex-start a stretch */
    margin-top: 0; /* Sube la barra de filtro */
    /* height: 200vh;  <-- Elimina esta línea */
}

/* Encabezado Filtrar Por */
.filtros-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 16px 20px;
    background: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.1em;
    color: #1a2a4e;
    letter-spacing: 0.3px;
}

.filtros-header i {
    color: #000;
    font-size: 1.2em;
}

section {
    flex: 1;
    padding: 32px 40px 0 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}
/* Filter sidebar styling */
#filtros-peliculas {
    background: #fff; /* Cambiado de #f8f8f8 a #fff */
    padding: 0;
    border-radius: 0;
    margin-bottom: 30px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Details elements (collapsible sections) */
#filtros-peliculas details {
    margin-bottom: 0;
    background: #fff;
    border: none;
    border-bottom: 1px solid #e8e8e8;
    border-radius: 0;
    overflow: hidden;
}

#filtros-peliculas details:last-child {
    border-bottom: none;
}

#filtros-peliculas details:hover {
    box-shadow: none;
}

/* Summary styling (header of collapsible) */
#filtros-peliculas summary {
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 700;
    color: #1a2a4e;
    background: #fff;
    user-select: none;
    transition: background 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.3px;
    list-style: none;
}

#filtros-peliculas summary:hover {
    background: #f5f5f5;
}

#filtros-peliculas summary::marker {
    display: none;
}

#filtros-peliculas summary::-webkit-details-marker {
    display: none;
}

#filtros-peliculas summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.8em;
    color: #999;
    transition: transform 0.3s ease;
}

#filtros-peliculas details[open] > summary::after {
    transform: rotate(-180deg);
}

/* Content inside details */
#filtros-peliculas details > div {
    padding: 12px 20px;
    background: #fff;
    border-top: 1px solid #e8e8e8;
}

/* Label styling for checkboxes */
#filtros-peliculas label {
    display: block;
    padding: 8px 8px;
    cursor: pointer;
    color: #555;
    transition: all 0.2s ease;
    user-select: none;
    margin: 0 -8px;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    letter-spacing: 0.2px;
}

#filtros-peliculas label:hover {
    color: #ff0000;
}

/* Checkbox styling */
#filtros-peliculas input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
    accent-color: #007bff;
    display: none;
}

/* Container for peliculas */
#contenedorPeliculas {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.pelicula-card {
    border: 2px solid #2d2d2d;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    background: #f9f9f9;
    width: 220px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.2s ease;
}

.pelicula-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pelicula-card img {
    width: 180px;
    height: 260px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.pelicula-card h3 {
    margin: 8px 0 6px 0;
    text-align: center;
    font-size: 0.9em;
    font-weight: 600;
    color: #333;
}

.pelicula-card p {
    margin: 4px 0;
    text-align: center;
    font-size: 0.8em;
    color: #666;
}


