* {
    box-sizing: border-box;                               margin: 0;                                            padding: 0;
    font-family: 'Poppins', sans-serif;               }
                                                      body {                                                    background: linear-gradient(rgba(13, 17, 23, 0.85), rgba(13, 17, 23, 0.95)), url('fondo.jpg');
    background-size: cover;
    background-position: center;                          background-attachment: fixed;                         color: #ffffff;                                       overflow-x: hidden;
    padding-bottom: 20px; /* Reducido ya que no hay barra inferior */
}

/* --- HEADER SEMITRANSPARENTE FLOTANTE ("EN EL AIRE") --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(13, 17, 23, 0.25);
    backdrop-filter: blur(4px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    border: none;
    box-shadow: none;
}

.logo {
    display: flex;
    align-items: center;
    flex: 1;
}

/* --- LOGO --- */
.logo img {
    height: 42px !important;
    width: auto !important;
    object-fit: contain;
    display: block;
}

/* Contenedor de la barra de búsqueda a la derecha */
.header-search {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.header-search input {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    padding: 6px 12px;
    border-radius: 0px;
    font-size: 0.85rem;
    outline: none;
    width: 160px;
    transition: width 0.3s, border-color 0.2s;
}

.header-search input:focus {
    width: 220px;
    border-color: #38bdf8;
}

/* Contenedor Principal */
main {
    padding-top: 0;
    padding-bottom: 40px;
}

/* --- BANNER HERO A ANCHO COMPLETO Y PUNTAS CUADRADAS --- */
.hero-banner {
    width: 100%;
    max-width: 100%;
    height: 420px;
    margin: 0 0 25px 0;
    background: linear-gradient(to top, rgba(13,17,23,0.95) 15%, rgba(13,17,23,0.3) 60%, rgba(13,17,23,0.2) 100%), url('fondo.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 0px !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px 40px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.7);
    border: none;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #f8fafc;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.hero-desc {
    font-size: 1rem;
    color: #cbd5e1;
    max-width: 700px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

/* Secciones de Categorías */
.category-section {
    margin: 30px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.category-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #e2e8f0;
}

.category-options {
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    letter-spacing: 2px;
}

/* Carrusel Horizontal de Tarjetas */
.cards-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 15px;
    scroll-behavior: smooth;
}

.cards-container::-webkit-scrollbar {
    height: 6px;
}

.cards-container::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 0px;
}

/* --- TARJETAS CON PUNTAS CUADRADAS --- */
.card {
    min-width: 160px;
    width: 160px;
    background: transparent;
    border-radius: 0px !important;
    flex-shrink: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* Contenedor de la imagen del póster con puntas cuadradas */
.card-img-wrapper {
    width: 100%;
    height: 225px;
    border-radius: 0px !important;
    overflow: hidden;
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.08);
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0px !important;
}

/* Contenedor de los textos inferiores (Título, Fecha, Estrellas) */
.card-info {
    padding-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-date {
    font-size: 0.7rem;
    color: #64748b;
}

.card-stars {
    color: #f59e0b;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

/* --- DISEÑO MÓVIL --- */
@media (max-width: 768px) {
    header {
        padding: 12px 15px;
    }

    .logo img {
        height: 36px !important;
    }

    .header-search input {
        width: 130px;
        border-radius: 0px;
    }

    .header-search input:focus {
        width: 170px;
    }

    .hero-banner {
        height: 300px;
        padding: 20px;
        margin: 0 0 15px 0;
        border-radius: 0px !important;
    }

    .hero-title {
        font-size: 1.4rem;
    }

    .hero-desc {
        font-size: 0.85rem;
    }

    .category-section {
        padding: 0 15px;
    }

    .card {
        min-width: 130px;
        width: 130px;
        border-radius: 0px !important;
    }

    .card-img-wrapper {
        height: 185px;
        border-radius: 0px !important;
    }
}

