/* =========================
   CONTENEDOR GENERAL
========================= */
.bybt-container {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
}


/* =========================
   TABS (ESTILO NUEVO)
========================= */
.bybt-tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    border-bottom: 2px solid rgba(255,255,255,0.3); /* línea inferior */
    padding-bottom: 0px;
    margin-bottom: 30px;
}

/* BOTÓN */
.bybt-tab {
    background: transparent;
    border: none;
    color: #000; /* texto negro */
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase; /* MAYÚSCULAS */
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

/* HOVER */
.bybt-tab:hover {
    background: #90BFBE;
    border-radius: 4px 4px 0 0;
}

/* ACTIVO */
.bybt-tab.active {
    background: #90BFBE; /* color tipo diseño */
    color: #000;
    border-radius: 4px 4px 0 0;
}

/* Línea animada inferior opcional */
.bybt-tab::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 2px;
    background: transparent;
    transition: all 0.3s ease;
}

/* .bybt-tab.active::after {
    background: #ffffff;
} */


/* =========================
   GRID DE POSTS
========================= */
.bybt-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}


/* =========================
   ITEM
========================= */
.bybt-item {
    text-align: center;
}

/* IMAGEN */
.bybt-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

/* HOVER IMAGEN */
.bybt-item:hover img {
    transform: scale(1.05);
}

/* TÍTULO */
.bybt-item h3 {
    margin-top: 10px;
    font-size: 14px;
    background: #a8d0cf;
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    color: #fff;
}


/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
    .bybt-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .bybt-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bybt-tabs {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .bybt-grid {
        grid-template-columns: 1fr;
    }

    .bybt-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 15px;
    }

    .bybt-tab {
        white-space: nowrap;
    }
}

/***Limitar a una linea***/
.by-card h3 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}