.contenedor-tarjetas {
    padding: 0 20px;
    max-width: 1000px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.tarjeta {
    max-width: 300px;
    height: 100%;
    border-radius: 35px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tarjeta img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
    filter: grayscale(100%);
}

.tarjeta-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tarjeta-titulo {
    margin: 0;
    font-family: 'Moranga', serif;
    font-size: var(--fs-400);
    font-weight: 300;
    line-height: 1.1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
    min-height: calc(4 * 1.1em);
}

.tarjeta-separador {
    width: 100%;
    height: 1.5px;
}

.tarjeta-autores {
    margin: 0;
    font-family: 'Elza Text', sans-serif;
    font-size: var(--fs-300);
    font-weight: 500;
    min-height: calc(4 * 1.2em);
}

.tarjeta-autores span {
    display: block;
}

.tarjeta-descripcion {
    margin: 0 0 10px;
    font-family: 'Elza Text', sans-serif;
    font-size: var(--fs-300);
    font-weight: 400;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    overflow: hidden;
    min-height: calc(5 * 1.2em);
}

.tarjeta-boton {
    display: block;
    width: fit-content;
    margin: auto auto 0;
    padding: 10px 20px;
    text-decoration: none;
    font-family: 'Elza Text', sans-serif;
    font-size: var(--fs-200);
    font-weight: 600;
    border-radius: 10px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.tarjeta-boton:hover,
.tarjeta-boton:focus-visible {
    transform: scale(1.1);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tarjeta-boton:active {
    transform: scale(1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.18);
    opacity: 0.5;
}
