.tabs {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    /* botones alineados a la izquierda */
    margin: 30px 0;
}


.tabs a {
    text-decoration: none;
    color: #000;
    position: relative;
    padding-bottom: 5px;
}

.tabs a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: black;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* mejor para que se recorran */
    gap: 5%;
    align-items: flex-start;
}


.card {
    position: relative;
    width: 30%;
    cursor: pointer;
    overflow: hidden;
}

.card img {
    display: block;
    width: 100%;
    height: auto;
    /* Mantiene proporción natural */
}

.card-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #7BAA3E;
    color: black;
    padding: 40px;
    box-sizing: border-box;
    text-align: justify;
    opacity: 1;
    transition: opacity 0.3s ease;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Distribuye elementos arriba y abajo */
}


.card:hover .card-content {
    opacity: 0;
    /* Se oculta para mostrar la imagen */
}