/* Contenedor principal */
.container {
    padding: 20px;
    color: #fff;
}

/* Filtro */
form {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

form .form-select {
    max-width: 200px;
    border-radius: 8px;
}

/* Tarjetas */
/* Contenedor principal */
.comic-card {
    position: relative;
    width: 100%;
    max-width: 200px; /* Ajusta el tamaño máximo de cada tarjeta */
    margin: 10px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comic-card:hover {
    transform: scale(1.05);
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.3);
}

/* Imagen del cómic */
.comic-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Título del cómic */
.comic-title {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7); /* Fondo translúcido */
    color: #fff;
    font-size: 1rem;
    text-align: center;
    font-weight: bold;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    transition: background 0.3s ease;
}

.comic-card:hover .comic-title {
    background: rgba(0, 0, 0, 0.9);
}

/* Responsividad */
@media (max-width: 768px) {
    .comic-card {
        max-width: 100%;
    }

    .comic-title {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .comic-title {
        font-size: 0.8rem;
        padding: 8px;
    }
}
