@import './estilos.css';

body {
    /* ---- Fondo de imagen con capa oscura para que se lea el texto */
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.95)), url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQszmCmWCfDvAVaPGN8nnImuZxyg1uVoUEUMQ&s');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* ----  El fondo se queda quieto al hacer scroll----- */
    background-repeat: no-repeat;
}

.main-content {
    padding-top: 100px; 
    min-height: 80vh;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.page-subtitle {
    color: #ccc;
    font-size: 1.2rem;
}

/*#contenedor-proximamente {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 250px));
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 0 60px 60px;
    max-width: 1600px;
    margin: 0 auto;
}*/

#contenedor-proximamente {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 0 60px 60px;
    max-width: 1600px;
    margin: 0 auto;
}

#contenedor-proximamente > * {
    flex: 0 0 auto;
    width: 200px;
}

.poster-card {
    background-color: #1f1f1f;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.poster-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.poster-img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
    background-color: #141414;
    transition: all 0.5s ease;
}

.poster-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
}

.poster-card:hover .poster-img {
    filter: blur(4px) brightness(0.5);
    transform: scale(1.1);
}

.poster-card:hover .poster-content {
    opacity: 1;
}

.poster-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 15px 0;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.release-tag {
    font-size: 0.9rem;
    color: #fff;
    /*background-color: #e50914;*/
    background: linear-gradient(135deg, #99027b 0%, #6200c3 100%);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(135, 0, 93, 0.4);
}

.main-content .boton-container{
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-content .boton {
    border: 1px solid #99027b;
    box-sizing: content-box;
    margin-top: 50px;
    margin-left: 20px;
    background: linear-gradient(135deg, #99027b 0%, #6200c3 100%);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 60px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.main-content .boton:hover {
    background: rgba(93, 0, 85, 0.95);
    transform: scale(0.95);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    cursor: pointer;
}


/*====== Generos Películas ==========*/

.genre-title{
    margin: 1.5rem 0.5rem;
}

#generos-container{
    margin-bottom: 2rem;
}

.genre-carousel {
    width: 100%;
    overflow: hidden;
}

.swiper {
    width: 100%;
    padding: 10px 0;
}

.swiper-slide {
    width: 160px !important; 
    flex-shrink: 0;
}

.movie-card {
    width: 100%;
}

.swiper-button-next,
.swiper-button-prev {
    color: #b80093; 
}

@media (max-width: 768px) {
    #contenedor-proximamente {
        padding: 0 0 20px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
        gap: 0rem;
    }

    #contenedor-proximamente > * {
    flex: 0 0 auto;
    width: 85%;
    }

    .poster-card{
        margin-bottom: 1.5rem;
    }

    .page-title { 
        font-size: 2rem; 
    }
}

