.card {
    position: relative;
    width: 325px;
    height: 450px;
    background: #000;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 5px 10px rgba(0, 0, 0, .2);
}

.poster {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.poster::before {
    content: '';
    position: absolute;
    bottom: -45%;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: .3s;
}

.card:hover .poster::before {
    bottom: 0;
}

.poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .3s;
}

.card:hover .poster img {
    transform: scale(1.1);
}

.details {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 99.5%;
    padding: 1.5em 1.5em 2em;
    background: #000a;
    backdrop-filter: blur(16px) saturate(120%);
    transition: .3s;
    color: #fff;
    z-index: 2;
}

.card:hover .details {
    bottom: 0;
}

.details h1,
.details h2 {
    font-weight: 700;
    letter-spacing: normal;
}

.details h1 {
    font-size: 1.5em;
    margin-bottom: 5px;
}

.details h2 {
    font-weight: 300;
    font-size: 1em;
    margin-bottom: 10px;
    opacity: .6;
}
.details p {
    font-size: small;
    margin-bottom: 10px;
}
  
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 20px;
}

.card {
    flex: 1 1 calc(50% - 10px);
    /* 2 por fila en escritorio */
    box-sizing: border-box;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
}

.card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* Mobile: 1 por fila */
@media (max-width: 768px) {
    .card {
        flex: 1 1 100%;
    }
   
}
/* 📱 Responsive para pantallas menores a 600px */

#header nav ul li {
    width: 15vw;
}
#header .corona{
    width: 5vw; 
    margin-top: 1vh;
}
@media (max-width: 600px) {
    #header nav ul li a{
        width: 100%;
    }
    #header nav ul li {
        width: 100% !important;
        text-align: center;
    }
    #header .corona{
        width: 15vw; 
        margin-top: 1vh;
    }
  }
