
/*Estructura del layout*/
main {
    display: flex;
    justify-content: center;
    width: 100%;
    flex: 1; 
    box-sizing: border-box;
}

.convenios-container {
    width: 90%;
    max-width: 1200px;
    margin: 40px 0; 
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    box-sizing: border-box;
}

.convenios-title {
    font-size: 30px;
    font-weight: 600;
    color: #2c3e50;
    border-left: 5px solid #8ca331;
    padding-left: 14px;
    margin-bottom: 25px;
}

.categorias-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}
/*Botones de filtrado */
.categoria-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    background: #f7f8f5;
    color: #555;
    cursor: pointer;
    transition: 0.3s;
    font-size: 18px;
    font-weight: 700;
}

.categoria-btn:hover {
    background: #eef3de;
    color: #8ca331;
}

.categoria-btn.active {
    background: #8ca331;
    color: #fff;
}

.convenios-content {
    max-height: 420px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 14px;
    background: #fafafa;
    box-sizing: border-box;
    padding: 20px;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-items: start;
}
/*Estado vacio del contenedor*/
.empty-state {
    text-align: center;
    color: #666;
    font-weight: 700;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 10px;
}

/*Contenedor de las tarjetas*/
.convenio-card {
    width: 100%;
    display: flex;
    gap: 18px;
    align-items: center;
    background: #ffffff;
    border-radius: 14px;
    padding: 16px;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/*Contenedor de imagen*/
.card-image {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 12px;
}
/*Imagen*/

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/*Información*/
.card-info {
    flex: 1;
    min-width: 0;
}

.filtros-ubicacion {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 18px 0 20px;
    padding: 16px;
    background: #f7f8f5;
    border-radius: 14px;
    border: 1px solid #e2e2e2;
}

.filtros-ubicacion select {
    min-width: 180px;
    padding: 11px 14px;
    border: 1px solid #d6d6d6;
    border-radius: 10px;
    background: #ffffff;
    color: #333;
    font-size: 15px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}

.filtros-ubicacion select:focus {
    border-color: #8ca331;
    box-shadow: 0 0 0 3px rgba(140, 163, 49, 0.18);
}

.filtro-btn {
    padding: 11px 18px;
    border: none;
    border-radius: 10px;
    background: #8ca331;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s ease;
}

.filtro-btn:hover {
    background: #748a28;
}

.filtro-btn.limpiar {
    background: #e9ecef;
    color: #444;
}

.filtro-btn.limpiar:hover {
    background: #d8dde2;
}

/* Responsividad */
@media (max-width: 768px) {
    .convenios-container {
        width: 95%;
        padding: 20px;
        margin: 20px 0;
    }

    .categoria-btn {
        font-size: 14px;
        padding: 10px 18px;
    }

    .convenios-title {
        font-size: 24px;
    }
        .convenios-content {
        grid-template-columns: 1fr;
        max-height: 500px;
    }

    .convenio-card {
        flex-direction: column;
        text-align: center;
    }
}